/* ===== LOGIN - JUNIOR PARTY RENTALS ===== */

:root {
  /* Colores */
  --azul-principal: #144388;
  --azul-claro: #1976d2;
  --azul-oscuro: #0d2b58;
  --amarillo: #FFD700;
  --amarillo-hover: #FFC107;
  --naranja: #FF6B35;
  --verde: #4CAF50;
  
  /* Tipografía */
  --fuente-titulos: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
  --fuente-cuerpo: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
  
  /* Transiciones */
  --transicion-rebote: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transicion-normal: 0.3s ease;
}

/* ===== ANIMACIONES ===== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(5deg); }
  50% { transform: translateY(-25px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body.login-body {
  font-family: var(--fuente-cuerpo);
  min-height: 100vh;
  background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-oscuro) 50%, #0a1628 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* ===== FONDO ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at top left, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(25, 118, 210, 0.1) 0%, transparent 50%);
}

/* Ocultar elementos decorativos */
.confetti,
.sparkle {
  display: none;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.login-shell {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

/* Shell para formularios de una sola columna (solo panel derecho) */
.login-shell--single {
  max-width: 420px;
  grid-template-columns: 1fr;
}

/* ===== PANEL IZQUIERDO ===== */
.login-panel--left {
  background: linear-gradient(145deg, var(--azul-principal) 0%, var(--azul-oscuro) 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Brand */
.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.brand-mark {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amarillo) 0%, var(--naranja) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fuente-titulos);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--azul-oscuro);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.brand-text h1 {
  font-family: var(--fuente-titulos);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
}

.brand-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Tagline */
.login-tagline {
  margin-bottom: 1rem;
}

.login-tagline h2 {
  font-family: var(--fuente-titulos);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.login-tagline p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* Features list */
.login-features {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: var(--transicion-normal);
}

.login-features li:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateX(5px);
}

.login-features i {
  color: var(--amarillo);
  font-size: 1rem;
}

/* ===== PANEL DERECHO ===== */
.login-panel--right {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ===== TARJETA DE LOGIN ===== */
.login-card {
  width: 100%;
  max-width: 380px;
  padding: 1.5rem;
}

.login-card h2 {
  font-family: var(--fuente-titulos);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--azul-principal);
  margin-bottom: 0.3rem;
  text-align: center;
}

.login-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

/* ===== FORMULARIO ===== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-weight: 600;
  color: var(--azul-principal);
  font-size: 0.85rem;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 2px solid #e0e8f0;
  background: #fff;
  padding: 0 0.8rem;
  transition: var(--transicion-normal);
}

.input-wrapper:focus-within {
  border-color: var(--amarillo);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.input-icon {
  color: var(--azul-claro);
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

.input-wrapper:focus-within .input-icon {
  color: var(--amarillo);
}

.input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 0.65rem 0.4rem;
  font-size: 0.95rem;
  font-family: var(--fuente-cuerpo);
  color: var(--azul-oscuro);
}

.input-wrapper input::placeholder {
  color: #aab;
}

/* ===== BOTÓN DE LOGIN ===== */
.btn-login {
  margin-top: 0.8rem;
  width: 100%;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  font-family: var(--fuente-titulos);
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--amarillo) 0%, var(--naranja) 100%);
  color: var(--azul-oscuro);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
  transition: var(--transicion-normal);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

/* ===== FOOTER DEL LOGIN ===== */
.login-footer {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.login-footer p {
  color: #666;
  font-size: 0.85rem;
}

.login-footer a {
  color: var(--azul-principal);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transicion-normal);
}

.login-footer a:hover {
  color: var(--naranja);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-claro) 100%);
  color: #fff !important;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: var(--transicion-normal);
  box-shadow: 0 4px 15px rgba(20, 67, 136, 0.25);
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 67, 136, 0.35);
}

/* ===== ALERTAS ===== */
.alert {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideInUp 0.4s ease-out;
  font-weight: 500;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border: 2px solid #f87171;
}

.alert-success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
  border: 2px solid #4ade80;
}

.alert i {
  font-size: 1.2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .login-panel--left {
    padding: 1.5rem;
    text-align: center;
  }

  .brand-badge {
    justify-content: center;
  }

  .login-features {
    display: none;
  }

  .login-tagline h2 {
    font-size: 1.4rem;
  }
  
  .login-tagline p {
    font-size: 0.85rem;
  }
}

@media (max-width: 540px) {
  body.login-body {
    padding: 0.8rem;
  }

  .login-shell {
    border-radius: 16px;
  }

  .login-panel--left {
    padding: 1rem;
  }

  .login-card {
    padding: 1rem;
  }

  .login-card h2 {
    font-size: 1.4rem;
  }

  .brand-mark {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .login-tagline h2 {
    font-size: 1.2rem;
  }
  
  .form-group label {
    font-size: 0.8rem;
  }
  
  .input-wrapper input {
    padding: 0.55rem 0.4rem;
    font-size: 0.9rem;
  }
  
  .btn-login {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

