:root {
  --auth-navy: #102b57;
  --auth-blue: #1b66ae;
  --auth-red: #c9473d;
  --auth-ink: #172033;
  --auth-muted: #657087;
  --auth-line: #dce4ec;
  --auth-surface: #f5f8fb;
}

.auth-page {
  min-height: 100vh;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 610px);
}

.auth-aside {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(10, 32, 68, .97) 0%, rgba(16, 43, 87, .93) 48%, rgba(15, 41, 79, .89) 100%),
    url("assets/circuit.jpg") center / cover no-repeat;
}

.auth-aside::after {
  position: absolute;
  right: -190px;
  bottom: -240px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .035), 0 0 0 96px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
}

.auth-brand img {
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.auth-brand span { display: grid; line-height: 1.1; }
.auth-brand strong { font: 700 21px Georgia, serif; }
.auth-brand small { margin-top: 6px; color: #d3e2f5; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.auth-aside-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 70px 0;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: #c5dbf5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-eyebrow::before { width: 28px; height: 2px; background: #ef7664; content: ""; }
.auth-aside h1 { max-width: 540px; margin: 0; font: 400 clamp(44px, 5.3vw, 76px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.auth-aside h1 em { color: #9dc6f3; font-weight: 400; }
.auth-aside-copy > p:last-child { max-width: 450px; margin: 26px 0 0; color: #d2deed; font-size: 16px; line-height: 1.75; }
.auth-aside-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #d2deed; font-size: 13px; }
.auth-aside-foot span { color: #9dc6f3; font-size: 18px; }

.auth-main {
  display: grid;
  place-items: center;
  padding: 56px clamp(28px, 7vw, 96px);
  background: #fff;
}

.auth-card { width: min(100%, 430px); }
.auth-mobile-brand { display: none; }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.auth-back { color: var(--auth-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.auth-back:hover { color: var(--auth-navy); }
.prototype-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #f1d7d1; border-radius: 999px; background: #fff8f6; color: #9c3d34; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.prototype-pill::before { width: 6px; height: 6px; border-radius: 50%; background: var(--auth-red); content: ""; }
.staff-access-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #d5e6f4; border-radius: 999px; background: #f3f8fc; color: var(--auth-navy); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.staff-access-pill::before { width: 6px; height: 6px; border-radius: 50%; background: #3a8b68; content: ""; }
.student-access-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #d5e6f4; border-radius: 999px; background: #f3f8fc; color: var(--auth-navy); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.student-access-pill::before { width: 6px; height: 6px; border-radius: 50%; background: #3a8b68; content: ""; }
.auth-card .auth-eyebrow { margin-bottom: 12px; color: var(--auth-red); }
.auth-card .auth-eyebrow::before { display: none; }
.auth-card h2 { margin: 0; color: var(--auth-navy); font: 400 clamp(37px, 4vw, 48px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.auth-intro { margin: 14px 0 30px; color: var(--auth-muted); font-size: 15px; line-height: 1.65; }

.auth-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { color: #29364d; font-size: 13px; font-weight: 800; }
.input-wrap { position: relative; }
.auth-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-input::placeholder { color: #9aa5b5; }
.auth-input:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 4px rgba(27, 102, 174, .11); }
.auth-input.has-toggle { padding-right: 54px; }
.password-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 38px; height: 38px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: #68768b; cursor: pointer; }
.password-toggle:hover { background: #f1f5f9; color: var(--auth-navy); }
.password-toggle svg { width: 19px; height: 19px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -1px; }
.remember-option { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-muted); font-size: 13px; }
.remember-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--auth-navy); }
.auth-help { color: var(--auth-blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.auth-help:hover { text-decoration: underline; }
.auth-submit { min-height: 54px; margin-top: 3px; border: 0; border-radius: 8px; background: var(--auth-navy); box-shadow: 0 10px 24px rgba(16, 43, 87, .16); color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 850; transition: background .18s ease, transform .18s ease; }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.auth-submit:hover { transform: translateY(-1px); background: #0b2145; }
.auth-submit span { margin-left: 8px; font-size: 17px; }
.portal-actions { display: grid; gap: 12px; }
.auth-notice { display: flex; gap: 10px; margin: 22px 0 0; padding: 13px 14px; border: 1px solid #e6edf4; border-radius: 8px; background: #f7fafc; color: #647087; font-size: 11px; line-height: 1.55; }
.auth-notice svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; color: var(--auth-blue); }
.auth-feedback { display: none; margin: 16px 0 0; padding: 12px 14px; border: 1px solid #d5e6f4; border-radius: 8px; background: #f1f8fd; color: var(--auth-navy); font-size: 13px; line-height: 1.5; }
.auth-feedback.visible { display: block; }
.auth-switch { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #edf0f4; color: var(--auth-muted); font-size: 13px; text-align: center; }
.auth-switch a { margin-left: 4px; color: var(--auth-blue); font-weight: 850; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-legal { margin: 35px 0 0; color: #8a95a5; font-size: 11px; text-align: center; }
.auth-legal a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid #e5a642; outline-offset: 3px; }

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: minmax(280px, .8fr) minmax(380px, 1fr); }
  .auth-aside { padding: 36px; }
  .auth-main { padding: 42px 32px; }
  .auth-card-top { margin-bottom: 36px; }
}

@media (max-width: 680px) {
  .auth-layout { min-height: 100vh; display: block; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; display: block; padding: 26px 22px 34px; }
  .auth-card { width: min(100%, 440px); margin: 0 auto; }
  .auth-mobile-brand { display: flex; margin-bottom: 35px; }
  .auth-mobile-brand .auth-brand { color: var(--auth-navy); }
  .auth-mobile-brand .auth-brand img { width: 48px; height: 48px; border: 1px solid #e4e9ef; }
  .auth-mobile-brand .auth-brand small { color: var(--auth-red); }
  .auth-card-top { margin-bottom: 35px; }
  .auth-card h2 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
