/* Contenedor general */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background-color: #f8fafc;
}

/* Tarjeta de login */
.login-card {
  background: white;
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  border: 1px solid #e2e8f0; /* borde sutil para coherencia */
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.06);
  transition: box-shadow 0.25s ease;
}

.login-card:hover {
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.08);
}

/* Encabezado */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  position: relative;
}

.login-header h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pl-brand, #2563eb), var(--pl-accent, #3b82f6));
}

.login-header p {
  font-size: 1rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Formulario */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #334155;
}

.form-group label i {
  color: #64748b;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background-color: #f8fafc;
  color: #0f172a;
  transition: border 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.forgot-password {
  text-align: right;
  margin-bottom: 0.25rem;
}

.forgot-password a {
  font-size: 0.875rem;
  color: #2563eb;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Botón de login (coherente con matricula) */
.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--pl-brand, #2563eb), var(--pl-accent, #3b82f6));
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  width: 100%;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.login-button:focus {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .25), 0 10px 20px rgba(37, 99, 235, 0.18);
}

/* Texto de ayuda */
.help-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #64748b;
}

.help-text a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.help-text a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
  .login-container {
    padding: 2rem 1rem;
  }
  
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.05);
  }
  
  .login-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-height: 700px) {
  .login-container {
    padding: 1rem;
    min-height: 100vh;
  }
}
