.lms-page-shell {
  min-height: 100vh;
}
.lms-login-hero {
  isolation: isolate;
}
.lms-login-copy {
  position: relative;
  z-index: 2;
}
.lms-mini-stat {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1.4rem;
  background: rgba(255,255,255,0.09);
  padding: 1rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.14);
  backdrop-filter: blur(16px);
}
.lms-mini-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}
.lms-mini-stat span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(219,234,254,0.84);
  font-size: 0.83rem;
  font-weight: 800;
}
.student-login-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 2rem;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 30px 100px rgba(0,0,0,0.28), 0 0 54px rgba(37,137,245,0.18);
  padding: clamp(1.35rem, 3vw, 2.25rem);
  color: var(--dark);
}
.student-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(37,137,245,0.18), transparent 28%),
    linear-gradient(120deg, transparent, rgba(37,137,245,0.08), transparent);
}
.student-login-card__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.65rem;
}
.student-login-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 38px rgba(37,137,245,0.28);
  font-size: 1.35rem;
}
.student-login-card__eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.student-login-card h2 {
  margin-top: 0.25rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}
.student-login-form {
  position: relative;
}
.student-login-form .form-group {
  margin-top: 1.1rem;
}
.student-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.55rem;
  border: 1px solid rgba(229,231,235,0.95);
  border-radius: 1.1rem;
  background: #fff;
  padding: 0 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.student-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,137,245,0.14);
  transform: translateY(-1px);
}
.student-input-wrap > i {
  color: var(--blue);
}
.student-input-wrap input {
  width: 100%;
  min-height: 3.35rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dark);
  font-weight: 700;
}
.password-toggle {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}
.password-toggle:hover {
  color: var(--blue);
  background: rgba(37,137,245,0.08);
}
.field-error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.35rem;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
}
.student-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
}
.student-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
}
.student-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
}
.student-login-options a {
  color: var(--blue);
}
.student-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  padding: 1rem 1.4rem;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(37,137,245,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.student-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(37,137,245,0.35);
}
.student-login-status {
  min-height: 1.4rem;
  margin-top: 1rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}
.student-login-help {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  margin-top: 1.1rem;
  border: 1px solid rgba(37,137,245,0.14);
  border-radius: 1.1rem;
  background: rgba(37,137,245,0.07);
  padding: 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.6;
}
.student-login-help i {
  margin-top: 0.2rem;
  color: var(--blue);
}
html[data-theme="dark"] .student-login-card {
  border-color: rgba(103,232,249,0.16);
  background: rgba(17,24,47,0.9);
  color: #fff;
}
html[data-theme="dark"] .student-input-wrap {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
html[data-theme="dark"] .student-input-wrap input {
  color: #f8fafc;
}
html[data-theme="dark"] .student-remember,
html[data-theme="dark"] .student-login-help {
  color: rgba(226,232,240,0.76);
}
html[data-theme="dark"] .student-login-help {
  border-color: rgba(103,232,249,0.16);
  background: rgba(37,137,245,0.10);
}
@media (max-width: 640px) {
  .student-login-options {
    align-items: flex-start;
    flex-direction: column;
  }
  .lms-mini-stat {
    padding: 0.9rem;
  }
}

/* Fix: keep LMS login fields as one clean field in dark mode.
   The global .form-group input dark rules were adding a second inner box. */
.student-login-form .student-input-wrap input,
.student-login-form .student-input-wrap input:focus,
html[data-theme="dark"] .student-login-form .student-input-wrap input,
html[data-theme="dark"] .student-login-form .student-input-wrap input:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  transform: none !important;
}

.student-login-form .student-input-wrap input:-webkit-autofill,
.student-login-form .student-input-wrap input:-webkit-autofill:hover,
.student-login-form .student-input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--dark) !important;
  transition: background-color 9999s ease-in-out 0s !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
}

html[data-theme="dark"] .student-login-form .student-input-wrap input:-webkit-autofill,
html[data-theme="dark"] .student-login-form .student-input-wrap input:-webkit-autofill:hover,
html[data-theme="dark"] .student-login-form .student-input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
}
