/* login/static/login/css/login.css */

/* Fuentes y reset básico */
.login-page {
  min-height: 100vh;
  /* Lato para textos funcionales */
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* ===== FONDO CINEMÁTICO (Igual que Hero Home) ===== */
.login-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Imagen de fondo */
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}

/* Capa Oscura (Legibilidad) */
.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* ✅ DEGRADADO DE MARCA (Amarillo -> Naranja -> Rojo) */
.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.8), rgba(249, 115, 22, 0.8), rgba(220, 38, 38, 0.8));
  opacity: 0.6;
  mix-blend-mode: overlay;
  z-index: 2;
}

/* ===== WRAPPER & CARD ===== */
.login-wrapper {
  position: relative;
  z-index: 3; /* Encima de todo */
  width: 100%;
  max-width: 450px;
  padding: 20px;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Header de Marca */
.login-brand {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
  margin-bottom: 0;
}

.login-subtitle {
  font-family: 'Cinzel', serif;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* Tarjeta Glassmorphism */
.login-card {
  background: rgba(255, 255, 255, 0.95); /* Casi sólido para legibilidad */
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-top: 20px;
}

.card-title {
  font-family: 'Cinzel', serif;
  color: #9a3412; /* Naranja oscuro */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== INPUTS MODERNOS ===== */
.input-group {
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  border-radius: 14px;
  overflow: hidden;
}

.input-group-text {
  background: #fff7ed; /* Cream tint */
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-right: none;
  color: #f97316;
  padding-left: 18px;
}

.form-control {
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-left: none;
  padding: 12px 15px;
  font-size: 1rem;
  color: #4b5563;
}

.form-control:focus {
  box-shadow: none;
  border-color: #f97316;
  background: #fff;
}

/* Fix para el borde del input group al hacer focus */
.input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
  border-radius: 14px;
}

/* Botón Toggle Password */
.btn-toggle-pass {
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-left: none;
  background: #fff;
  color: #f97316;
  z-index: 10 !important; /* Asegurar que quede encima */
}
.btn-toggle-pass:hover {
  background: #fff;
  color: #f97316;
}

/* ===== BOTÓN PRINCIPAL (Gradiente Marca) ===== */
.btn-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  
  /* ESTADO NORMAL */
  background-color: #ffffff;
  color: #ea580c; 
  border: 2px solid #ea580c; 
  
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-rose:hover {
  background-image: linear-gradient(90deg, #facc15, #f97316, #dc2626);
  background-size: 200% auto;
  background-position: center; 
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
  /* transform: translateY(-3px); */
  opacity: 0.8;
}

/* Footer */
.login-footer {
  color: rgba(255,255,255,0.7);
  margin-top: 25px;
  font-size: 0.85rem;
}