/* === Estilos globales === */
html, body {
    height: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom right, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* === Tarjeta de login === */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: visible; /* <-- agrega esto */
}

/* === Encabezado === */
.login-header {
    text-align: center;
    margin-bottom: 1.5rem !important;
}
.login-header h1 {
    font-size: 1.3rem !important;
    font-weight: 600;
    margin: 0.5rem 0;
}
.subtitle {
    font-size: 5rem !important;
    color: #ccc;
}

/* === Inputs === */
.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
}
.input-group i {
    margin-right: 0.5rem;
    color: #ccc;
}
.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
}
.input-group input::placeholder {
    color: #aaa;
}

/* === Mostrar/ocultar contraseña === */
.toggle-password {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    margin-left: 0.5rem;
}
.toggle-password:hover {
    color: #fff;
}

/* === Botón === */
.btn-primary-gradient {
    background: linear-gradient(to right, #0072ff, #00c6ff);
    background-size: 200% auto;
    background-position: left center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-position 0.4s ease-in-out, box-shadow 0.4s ease-in-out, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.3);
}

.btn-primary-gradient:hover {
    background-position: right center;
    box-shadow: 0 0 14px rgba(0, 198, 255, 0.6), 0 0 22px rgba(0, 198, 255, 0.3);
    transform: translateY(-1px);
}

.btn-primary-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 198, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(0, 198, 255, 0.6);
  }
}

.btn-primary-gradient {
    animation: pulseGlow 4s ease-in-out infinite;
}


/* === Error === */
.form-error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    padding: 0.5rem;
    border-left: 4px solid #ff4d4d;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* === Footer === */
.login-footer {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    color: #ccc;
}
.login-footer a {
    color: #ccc;
    text-decoration: underline;
    margin-left: 0.5rem;
}
.login-footer a:hover {
    color: #fff;
}




/* --- Animación de glow y estilos de marca --- */
.brand-logo {
  display: block;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  animation: brandGlowShift 8s ease-in-out infinite;
}

.brand-logo-hero {
  width: min(120px, 42vw) !important;
  height: auto !important;
  margin-top: .15rem;
  margin-bottom: .5rem;
}

.brand-name {
  margin-top: .1rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1.8vw, 1.05rem);
  background: linear-gradient(90deg, #0b2447, #0d6efd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .95;
  position: relative;
}

.brand-name--glow {
  text-shadow:
    0 1px 0 rgba(255,255,255,.4),
    0 6px 14px rgba(13,110,253,.28),
    0 10px 24px rgba(167,139,250,.18),
    0 14px 32px rgba(34,211,238,.14);
  transform: translateZ(0);
}

@keyframes brandGlowShift {
  0% {
    filter:
      drop-shadow(0 0 4px rgba(96,165,250,.70))
      drop-shadow(0 0 8px rgba(167,139,250,.55))
      drop-shadow(0 0 14px rgba(34,211,238,.45))
      drop-shadow(0 0 22px rgba(16,185,129,.35))
      saturate(1.05) brightness(1.02);
  }
  16% {
    filter:
      drop-shadow(0 0 4px rgba(167,139,250,.70))
      drop-shadow(0 0 8px rgba(34,211,238,.55))
      drop-shadow(0 0 14px rgba(96,165,250,.45))
      drop-shadow(0 0 22px rgba(59,130,246,.35))
      saturate(1.06) brightness(1.02);
  }
  33% {
    filter:
      drop-shadow(0 0 4px rgba(34,211,238,.70))
      drop-shadow(0 0 8px rgba(96,165,250,.55))
      drop-shadow(0 0 14px rgba(167,139,250,.45))
      drop-shadow(0 0 22px rgba(14,165,233,.35))
      saturate(1.07) brightness(1.03);
  }
  50% {
    filter:
      drop-shadow(0 0 4px rgba(16,185,129,.70))
      drop-shadow(0 0 8px rgba(56,189,248,.55))
      drop-shadow(0 0 14px rgba(99,102,241,.45))
      drop-shadow(0 0 22px rgba(59,130,246,.35))
      saturate(1.08) brightness(1.03);
  }
  66% {
    filter:
      drop-shadow(0 0 4px rgba(56,189,248,.70))
      drop-shadow(0 0 8px rgba(99,102,241,.55))
      drop-shadow(0 0 14px rgba(16,185,129,.45))
      drop-shadow(0 0 22px rgba(34,211,238,.35))
      saturate(1.06) brightness(1.02);
  }
  83% {
    filter:
      drop-shadow(0 0 4px rgba(99,102,241,.70))
      drop-shadow(0 0 8px rgba(59,130,246,.55))
      drop-shadow(0 0 14px rgba(56,189,248,.45))
      drop-shadow(0 0 22px rgba(96,165,250,.35))
      saturate(1.05) brightness(1.02);
  }
  100% {
    filter:
      drop-shadow(0 0 4px rgba(96,165,250,.70))
      drop-shadow(0 0 8px rgba(167,139,250,.55))
      drop-shadow(0 0 14px rgba(34,211,238,.45))
      drop-shadow(0 0 22px rgba(16,185,129,.35))
      saturate(1.05) brightness(1.02);
  }
}

@keyframes floatTiny {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1px); }
}
.brand-name--glow {
  animation: floatTiny 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; }
  .brand-name--glow { animation: none; }
}




/* Centrado completo del encabezado del login */
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* este ayuda a centrar vertical dentro del bloque */
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}
 .brand-logo {
    display: block;
    margin: 0 auto;
    animation: brandGlowShift 8s ease-in-out infinite;
}

.brand-logo-hero {
    width: min(120px, 42vw) !important;
    height: auto !important;
    margin: 0 auto 0.5rem auto !important;
}



.input-group:focus-within {
    border: 1px solid #00c6ff;
    box-shadow: 0 0 5px rgba(0, 198, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease-in-out;
}

.input-group input:focus {
    outline: none;
}
