/* ===== ANIMACIÓN PROFESIONAL DE HIPERESPACIO Y CANDADO ESTELAR ===== */

@keyframes entrarPantallaLogin {
  0% { opacity: 0; transform: scale(0.7) translateY(50px); filter: blur(25px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes salirPantallaLogin {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.25); filter: blur(35px); }
}

/* Efecto de explosión y destello estelar (Pop) en el candado */
@keyframes candadoSuperPop {
  0% { transform: scale(0.1) rotate(-30deg); opacity: 0; filter: drop-shadow(0 0 0px var(--cyan)); }
  50% { transform: scale(1.35) rotate(8deg); opacity: 1; filter: drop-shadow(0 0 35px var(--cyan)) drop-shadow(0 0 60px var(--pink)); }
  75% { transform: scale(0.9) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; filter: drop-shadow(0 0 18px var(--cyan)); }
}

#login-overlay {
  background: radial-gradient(130% 90% at 50% 125%, #1a103c 0%, #08061a 50%, #010206 100%) fixed !important;
  animation: entrarPantallaLogin 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

#login-overlay.animando-salida {
  animation: salirPantallaLogin 0.7s cubic-bezier(0.7, 0, 0.84, 0) forwards !important;
}

#login-overlay .card {
  animation: entrarPantallaLogin 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  z-index: 5;
  background: rgba(18, 14, 50, 0.75) !important;
  backdrop-filter: blur(25px) saturate(1.8);
  -webkit-backdrop-filter: blur(25px) saturate(1.8);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

#login-candado-icon {
  animation: candadoSuperPop 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.4) 0.1s both;
  display: inline-block;
}

/* Lienzo de estrellas dinámicas en el fondo del login */
#canvas-estrellas-login {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}