/* estilos-login.css */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Fuerza que ocupe toda la pantalla */
  padding: 20px;
  font-family: monospace;
  background-color: transparent;
}

.login-container {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 40px;
  border-radius: 15px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.7s ease-in-out;
  transition: transform 0.3s, box-shadow 0.3s;
}
.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.login-outer {
  display: inline-block;
  padding: 5px; /* Grosor del borde */
  border-radius: 20px;
  background: linear-gradient(90deg, #ffdd57, rgb(212, 14, 230), rgb(18, 236, 102), rgb(2, 39, 119));
  background-size: 300%;
  animation: border-rotate 3s linear infinite;
}

.welcome-message {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ffdd57;
  font-weight: 600;
}

@keyframes border-rotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Estilos adicionales para formularios y botones dentro del login */
.form-control:focus {
  box-shadow: none;
  border-color: #ffdd57;
}

.btn-custom {
  background-color: #05582A;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  width: 100%;
  border-radius: 30px;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.2s;
  font-weight: 600;
}

.btn-custom:hover {
  background-color: #e6c843;
  transform: scale(1.05);
}

.input-group-text {
  background-color: rgba(255, 221, 87, 0.1);
  border: none;
  color: #ffdd57;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 576px) {
  .login-container {
      padding: 30px;
  }
  .btn-custom {
      padding: 10px 18px;
      font-size: 14px;
  }
  .welcome-message {
    font-size: 24px;
  }
}

/* Mejoras Adicionales */
.form-label {
  font-weight: bold;
  color: #343a40;
}
.form-control {
  border-radius: 10px;
}
.btn-primary {
  background-color: #28a745;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #218838;
}

/* Animación para el cambio de ícono */
@keyframes iconFade {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.toggle-icon-animated {
  animation: iconFade 0.3s ease;
}
/* Modal estilizado */
.modal-content {
  border-radius: 1.25rem;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  font-weight: 600;
}

.modal-footer {
  justify-content: center;
}

.modal-title i {
  color: #fff;
}
/* Animación de gradiente para SweetAlert2 */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.swal2-popup.animate-gradient {
  /* Gradiente con los mismos colores que usas en JS */
  background: linear-gradient(
    135deg,
    #ffdd57,
    #d40ee6,
    #0faa4b,
    #02277a,
    #ffdd57
  );
  background-size: 300% 300%;      /* Hace el “movimiento” más suave */
  animation: gradientMove 12s ease infinite;
  border-radius: 1rem;              /* rounded-4 equivale a 1rem */
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.2);
  color: #fff;                      /* Asegura texto blanco */
}
.swal2-popup.animate-gradient {
  pointer-events: auto;
  /* resto de tu animación… */
}

/* Cambiar tipografía y color al título "Login" */
.login-container h2 {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff; /* o cualquier otro color que prefieras */
  font-weight: 700;
  font-size: 2rem;
}

/* Cambiar tipografía y color del input DNI */
#dni {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff; /* Texto dentro del input */
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cambiar tipografía y color del input Contraseña */
#password {
  font-family: 'Montserrat', sans-serif;
  color: #999711;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Opcional: cambiar el placeholder también */
#dni::placeholder,
#password::placeholder {
  color: #cccccc;
  font-family: 'Montserrat', sans-serif;
}
.toggle-icon-animated {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.form-reset {
  max-width: 480px;
  margin: 2rem auto;
}

/* 2) Contenedor absoluto para la imagen */
.login-image-wrapper {
  position: absolute;
  top: 20px;                   /* ajusta la distancia a tu gusto */
  left: 50%;
  transform: translateX(-50%);
  width: auto;                 /* ancho según tu imagen */
  height: auto;                /* alto según tu imagen */
  z-index: 999;
  pointer-events: none;        /* para que no interfiera con clicks */
}

/* 3) Imagen sin recorte circular */
.login-image-floating {
  display: block;
  max-width: 200px;            /* o el tamaño que necesites */
  width: 100%;
  height: auto;
  border-radius: 0;            /* quitar borde redondo */
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: opacity 0.6s ease-out,
              transform 0.6s ease-out;
}

/* 4) Animación al cargar */
body.loaded .login-image-floating {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 5) Asegúrate de no haber puesto margin-top en login-section */
.login-section {
  margin-top: 0 !important;
}

/* Tipografía Poppins ya está cargada */
.remember-label {
  color: #fafbfc;               /* Azul, cámbialo por tu hexadecimal */
  font-size: 1.1rem;            /* Ej: 1.1 rem = 17.6px si base es 16px */
  font-family: 'Poppins', sans-serif;
  /* Opcional: más estilos */
  /* font-weight: 600; */
  /* letter-spacing: 0.5px; */
}