/* Reset básico */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}
.video-bg {
  position: fixed;           /* CLAVE */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

/* Video ajustado */
.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay oscuro */
.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
   pointer-events: none;
}

/* Wrapper centrado */
.login-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Card glass */
.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 35px 30px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  color: #fff;

  animation: card-enter 2s ease-out forwards;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Neon border animado */
.neon-border {
  position: relative;
  isolation: isolate;
}

.neon-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;

  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    #4fc3ff 60deg,
    transparent 120deg,
    #01ffff 180deg,
    transparent 240deg,
    #4fc3ff 300deg,
    transparent 360deg
  );

  animation: neon-run 3.5s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  filter: blur(0.6px);
  z-index: -1;
}

/* Glow externo */
.neon-border::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: rgba(79, 195, 255, 0.25);
  filter: blur(22px);
  opacity: 0.7;
  z-index: -2;
}

/* Animación */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes neon-run {
  to {
    --angle: 360deg;
  }
}


/* Logo */
.login-logo {
  text-align: center;
  margin-bottom: 25px;
   opacity: 0;
    animation: logo-enter 2s ease-out forwards;
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: translateY(-75px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo img {
  max-width: 220px;
}

/* Título */
.login-form h2 {
   opacity: 0;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  margin-bottom: 60px;
    animation: title-enter 2s ease-out forwards;
}

@keyframes title-enter {
  from {
    opacity: 0;
    transform: translateY(75px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inputs floating */
.input-group {
  opacity: 0;
  position: relative;
  margin-bottom: 38px; /* MÁS ESPACIO */
  animation: input-enter 2s ease-out forwards;
}


/* Delay escalonado */
.input-group:nth-of-type(1) {
  animation: input-right 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes input-right {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.input-group:nth-of-type(2) {
  animation: input-left 2s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes input-left {
  from {
    opacity: 0;
    transform: translateX(-90px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



@keyframes input-enter {
  from {
    opacity: 0;
    transform: translateX(90px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Input base */
.input-group input {
  width: 100%;
  padding: 18px 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  outline: none;

  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 15px;

  transition: border 0.25s ease, box-shadow 0.25s ease;
}

/* Neon focus */
.input-group input:focus {
  border: 1px solid #4fc3ff;
  box-shadow: 0 0 12px rgba(79, 195, 255, 0.75);
}

/* Label flotante */
.input-group label {
  position: absolute;
  top: 50%;
  left: 46px;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
  transition: 0.25s ease;
  background: transparent;
}

/* Label activo (focus O con texto) */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 12px;
  color: #4fc3ff;
}

/* Icono izquierdo */
.left-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.85);
}

/* Icono ojo */
.toggle-password {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #fff;
}



/* Botón */
.login-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #0a3b6f, #052a51);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;


   opacity: 0;
  animation: btn-up 2s ease-out forwards;
  animation-delay: 1s;
}

@keyframes btn-up {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.login-error {
  color: #ff4d4d;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
}



.forgot-password-btn{
  width:100%;
  background:none;
  border:none;
  color:#4fc3ff;
  cursor:pointer;
  font-size:14px;
  transition:0.2s ease;
}

.forgot-password-btn:hover{
  opacity:1;

  text-decoration:underline;

  transform:translateY(-2px);

  text-shadow:
    0 0 8px rgba(79,195,255,0.8);
}
/* =========================================
   ANIMACION FORGOT PASSWORD
========================================= */

.forgot-password-btn{
  opacity:0;

  animation:
    forgot-password-enter 1s ease-out forwards;

  animation-delay:0.95s;
}

@keyframes forgot-password-enter{

  from{
    opacity:0;
    transform:translateY(25px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}