.auth-login__tra-notice {
  margin: 0.85rem 0 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(14, 165, 233, 0.08));
  color: #78350f;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 14px 26px rgba(120, 53, 15, 0.12);
}

.auth-login__tra-notice strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-login__tra-notice span {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.38;
}

.auth-login__register-cta {
  margin-top: 1rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.66);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-login__register-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}

.auth-login__submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-login__submit:hover,
.auth-login__submit:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
  filter: saturate(1.04);
}

.auth-login__register-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  min-height: 2.35rem;
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #1d4ed8;
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth-login__register-button:hover,
.auth-login__register-button:focus-visible {
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(239, 246, 255, 0.95);
}

.auth-form__links--login {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.auth-login__forgot-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.15rem;
  border-radius: 6px;
  background: transparent;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  box-shadow: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-form__links a.auth-login__forgot-button {
  color: #1d4ed8;
}

.auth-login__forgot-button:hover,
.auth-login__forgot-button:focus-visible {
  color: #1e40af;
  background: rgba(239, 246, 255, 0.86);
}

.auth-page--school-login {
  align-items: stretch;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.auth-page--school-login .auth-card {
  flex: 0 1 420px;
}

.auth-page--school-login .auth-card__eyebrow,
.auth-page--school-login .auth-login__register-kicker {
  color: var(--school-brand-primary, var(--accent-primary));
}

.auth-page--school-login .auth-form button[type="submit"],
.auth-page--school-login .auth-login__submit {
  background: linear-gradient(135deg, var(--school-brand-primary, #1d4ed8), var(--school-brand-secondary, #2563eb));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--school-brand-primary, #1d4ed8) 24%, transparent);
}

.auth-page--school-login .auth-form button[type="submit"]:hover,
.auth-page--school-login .auth-form button[type="submit"]:focus-visible,
.auth-page--school-login .auth-login__submit:hover,
.auth-page--school-login .auth-login__submit:focus-visible {
  color: #ffffff;
}

.auth-page--school-login .auth-login__register-button {
  background: rgba(255, 255, 255, 0.86);
  border-color: color-mix(in srgb, var(--school-brand-primary, #1d4ed8) 28%, transparent);
  color: var(--school-brand-primary, #1d4ed8);
}

.auth-page--school-login .auth-login__forgot-button,
.auth-page--school-login .auth-form__links a.auth-login__forgot-button {
  color: var(--school-brand-primary, #1d4ed8);
}

.auth-school-brand {
  flex: 1 1 430px;
  min-height: 100%;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--school-brand-primary, #0f766e) 24%, transparent);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--school-brand-accent, #38bdf8) 24%, transparent), transparent 36%),
    linear-gradient(135deg, var(--school-brand-header-bg, #0f172a), color-mix(in srgb, var(--school-brand-primary, #0f766e) 70%, #020617));
  color: var(--school-brand-header-text, #ffffff);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  overflow: hidden;
  position: relative;
}

.auth-school-brand::after {
  content: "";
  position: absolute;
  inset: auto -16% -28% 20%;
  height: 58%;
  border: 18px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.auth-school-brand__logo {
  width: min(100%, 310px);
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.auth-school-brand__logo img {
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}

.auth-school-brand__logo span {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
}

.auth-school-brand > div:last-child {
  position: relative;
  z-index: 1;
}

.auth-school-brand__eyebrow {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: color-mix(in srgb, var(--school-brand-header-text, #ffffff) 76%, var(--school-brand-accent, #38bdf8));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-school-brand h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.auth-school-brand p {
  max-width: 34rem;
  margin: 0.8rem 0 0;
  color: color-mix(in srgb, var(--school-brand-header-text, #ffffff) 84%, transparent);
  font-size: 1rem;
  line-height: 1.55;
}

body.dark-mode .auth-login__tra-notice {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(14, 165, 233, 0.1));
  color: #fde68a;
}

body.dark-mode .auth-login__register-cta {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.64);
}

body.dark-mode .auth-login__register-kicker {
  color: #cbd5e1;
}

body.dark-mode .auth-login__register-button {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(96, 165, 250, 0.34);
  color: #93c5fd;
}

body.dark-mode .auth-login__register-button:hover,
body.dark-mode .auth-login__register-button:focus-visible {
  background: rgba(30, 41, 59, 0.94);
  color: #bfdbfe;
}

body.dark-mode .auth-login__forgot-button,
body.dark-mode .auth-form__links a.auth-login__forgot-button {
  color: #93c5fd;
}

body.dark-mode .auth-login__forgot-button:hover,
body.dark-mode .auth-login__forgot-button:focus-visible {
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.78);
}

@media (max-width: 860px) {
  .auth-page--school-login {
    flex-direction: column;
  }

  .auth-school-brand {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .auth-login__register-cta {
    padding: 0.9rem;
  }

  .auth-login__register-button {
    width: 100%;
  }

  .auth-login__forgot-button {
    width: 100%;
  }

  .auth-school-brand {
    padding: 1rem;
  }

  .auth-school-brand__logo {
    min-height: 86px;
  }

  .auth-school-brand h1 {
    font-size: 2rem;
  }
}
