* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===== BODY ===== */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #777 url('/assets/img/fondo-login-estudiantes.webp') no-repeat center center;
  background-size: cover;
  position: relative;
  padding: 15px;
}

/* Overlay oscuro */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* ===== CONTENEDOR ===== */
.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 35px 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.6s ease;
}

.login-container h2 {
  margin-bottom: 20px;
  font-size: 26px;
}

/* ===== FORM ===== */
.login-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: 0.3s;
}

.login-form input:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

/* ===== CHECKBOX ===== */
.password-field,
.login-form label {
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== BOTÓN ===== */
.login-form button {
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #007BFF;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.login-form button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* ===== LINKS ===== */
.forgot-password,
.create-account {
  margin-top: 10px;
}

.forgot-password a,
.create-account a {
  font-size: 14px;
  color: #007BFF;
  text-decoration: none;
}

.forgot-password a:hover,
.create-account a:hover {
  text-decoration: underline;
}

/* ===== BOTÓN EXTRA ===== */
.google-btn {
  margin-top: 15px;
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  border: none;
  background: #28a745;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.google-btn:hover {
  background: #1e7e34;
}

/* ===== ALERTA ===== */
.alerta {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff4d4d;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  z-index: 999;
  width: 90%;
  max-width: 350px;
  text-align: center;
}

.alerta-content {
  position: relative;
}

.close-alert {
  position: absolute;
  top: -10px;
  right: -10px;
  cursor: pointer;
  font-size: 20px;
}

/* ===== MODALES ===== */
.modal-olvido-contrasena,
.modal-soporte {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content-olvido-contrasena,
.modal-content-soporte {
  background: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  position: relative;
}

.modal-content-olvido-contrasena img,
.modal-content-soporte img {
  width: 80px;
  margin-top: 10px;
}

.close-btn-olvido-contrasena,
.close-btn-soporte {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
}

/* ===== ANIMACIÓN ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  .login-container h2 {
    font-size: 22px;
  }

  .login-form input {
    font-size: 16px;
    padding: 15px;
  }

  .login-form button {
    font-size: 16px;
    padding: 15px;
  }
}

.login-user-help{display:block;margin:-8px 0 10px;color:#6b7280;font-size:12px;line-height:1.35;}
.login-brand {
  margin-bottom: 22px;
}

.login-logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}