/* Teacher sign-in, school picker and renewal: the app's own tokens, inputs and buttons. */
.teacher-auth{box-sizing:border-box;width:100%;max-width:440px;margin:0 auto;padding:32px 4px 48px;display:flex;flex-direction:column;gap:20px}
.teacher-auth-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.teacher-auth-mark{width:72px;height:48px;display:block;object-fit:contain}
[data-theme=night] .teacher-auth-mark{filter:invert(1)}
.teacher-auth-hero h1{margin:6px 0 0;font-size:30px;line-height:1.15;color:var(--ink)}
.teacher-auth-hint,.teacher-auth-message{margin:0;color:var(--muted);font-size:15px;line-height:1.45;text-align:center}
.teacher-auth-message{color:var(--ink);font-size:16px}
.teacher-auth-form{display:flex;flex-direction:column;gap:0;padding:24px 20px 20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--card-radius)}
.teacher-auth-form label{display:block;font-size:15px;font-weight:600;margin-bottom:10px;color:var(--ink)}
.teacher-auth-form input{box-sizing:border-box;display:block;width:100%;min-height:56px;border:2px solid rgb(var(--brand-rgb)/.33333);border-radius:12px;padding:12px 14px;background:var(--surface);color:var(--ink);font:inherit;font-size:19px}
.teacher-auth-form input:focus{outline:2px solid var(--brand);outline-offset:2px}
.teacher-auth-form input[aria-invalid=true]{border-color:var(--danger)}
.teacher-auth-form .teacher-auth-code{text-align:center;letter-spacing:.4em;font-size:24px;font-variant-numeric:tabular-nums}
.teacher-auth-form input+button{margin-top:16px}
.teacher-auth-form>button+button{margin-top:12px}
.teacher-auth-form>button,.teacher-auth-actions>button{width:100%;max-width:none}
.teacher-auth-schools{display:flex;flex-direction:column;gap:12px}
.teacher-auth-hero h1:focus{outline:none}
.teacher-auth-school .class-symbol{display:grid;place-items:center}
.teacher-auth-school.is-ended .subject{color:var(--danger)}
.teacher-auth-actions{display:flex;flex-direction:column;gap:12px}
/* Account entries in the app menu (phone header and desktop profile menu). */
.teacher-app-menu>.teacher-auth-menu-school{margin:6px 0 0;padding:12px 12px 4px;border-top:1px solid var(--border);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
body.compact-journey-app .teacher-app-menu>button.teacher-auth-entry{text-transform:uppercase}
body.compact-journey-app .teacher-app-menu>button.teacher-auth-danger{color:var(--danger)}
/* A past year's class: looked at, never changed. */
.teacher-auth-past{margin-left:6px}
body.teacher-past-year :is(.create-test-tile,.delete-test,#live-action-dock,.capture-add-camera,.live-review-field,.save-doubt,.doubt-choice,.continue-doubts){display:none!important}
body.teacher-past-year .capture-empty{pointer-events:none;opacity:.45}
/* Signing in, choosing a school or renewing: a plain page, without the app's header, menu,
 * sidebar or dock. They return once the teacher is in. */
body.teacher-auth-screen:not(#_) :is(.topbar,.desktop-sidebar,.desktop-breadcrumbs,.collapsed-title-bar,#live-action-dock,.test-journey){display:none!important}
body.teacher-auth-screen.desktop-app:not(#_) main{left:0!important}
body.teacher-auth-screen:not(#_) main{padding-top:0!important}
body.teacher-auth-screen .teacher-auth{min-height:100dvh;justify-content:center;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(48px,env(safe-area-inset-bottom))}

body.teacher-auth-screen:not(#_) > main:has(> .teacher-auth-sign-in) {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  background: #fff;
}

body.teacher-auth-screen .teacher-auth.teacher-auth-sign-in {
  --ink: #111;
  --surface: #fff;
  --muted: #3a3a3a;
  box-sizing: border-box;
  display: block;
  justify-content: initial;
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 0 max(32px, env(safe-area-inset-bottom));
  background: #fff;
  color: #111;
}

.teacher-auth-sign-in .sign-in-banner {
  box-sizing: border-box;
  aspect-ratio: 1424 / 1105;
  padding: max(28px, env(safe-area-inset-top)) clamp(20px, 6vw, 30px) 0;
  background: #191919 url("assets/brand/sign-in-banner.png") center / cover no-repeat;
}

.teacher-auth-sign-in .sign-in-wordmark {
  display: block;
  width: min(46%, 172px);
  height: auto;
  filter: brightness(0) invert(1);
}

.teacher-auth-sign-in .teacher-auth-hero,
.teacher-auth-sign-in .teacher-auth-form {
  padding-inline: clamp(20px, 6vw, 30px);
}

.teacher-auth-sign-in .teacher-auth-hero {
  align-items: stretch;
  padding-top: 26px;
  gap: 10px;
}

.teacher-auth-sign-in .teacher-auth-mark {
  display: none;
}

body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in :is(h1, .teacher-auth-hint, label, .sign-in-submit) {
  text-align: left !important;
}

.teacher-auth-sign-in .teacher-auth-hero h1 {
  margin: 0;
  font-size: clamp(38px, 11vw, 52px);
  line-height: 1;
  letter-spacing: -.045em;
}

.teacher-auth-sign-in .teacher-auth-hint {
  max-width: 31ch;
  font-size: 16px;
}

.teacher-auth-sign-in .teacher-auth-form {
  margin: 0;
  padding-top: 30px;
  padding-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.teacher-auth-sign-in .teacher-auth-form input {
  border: 1px solid #707070;
  color: #111;
  background: #fff;
  font-size: 16px;
}

.teacher-auth-sign-in .teacher-auth-form input[aria-invalid=true] {
  border: 2px solid #111;
}

body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .sign-in-submit {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid #111;
  border-radius: 12px;
  background: #111;
  color: #fff;
  box-shadow: none;
  font: inherit;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
}

.teacher-auth-sign-in .sign-in-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.teacher-auth-sign-in :is(input, .sign-in-submit):focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

/* The hidden header leaves no space above the sign-in pages; the wordmark keeps its own
 * transparent background so the white filter draws only its letters. */
body.teacher-auth-screen:not(#_){padding-top:0!important}
body.teacher-auth-screen:not(#_) .teacher-auth-sign-in .sign-in-wordmark{background:transparent!important}
body.teacher-auth-screen:not(#_) .teacher-auth-sign-in .teacher-auth-form input{text-align:left!important}
/* The engine's message floats over the banner instead of pushing it down. */
body.teacher-auth-screen:not(#_) .shell-toast{position:fixed!important;top:max(12px,env(safe-area-inset-top))!important;left:16px;right:16px;margin:0 auto;z-index:40}

/* The code, school picker and renewal steps share the monochrome sign-in look. */
.teacher-auth-sign-in :is(.teacher-auth-schools,.teacher-auth-actions,.teacher-auth-message){padding-inline:clamp(20px,6vw,30px)}
.teacher-auth-sign-in .teacher-auth-schools{margin-top:28px;gap:10px}
.teacher-auth-sign-in .teacher-auth-actions{margin-top:20px;gap:0}
.teacher-auth-sign-in .teacher-auth-message{margin-top:12px;max-width:34ch;color:#3a3a3a;text-align:left}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in :is(.sign-in-submit,.sign-in-secondary){box-sizing:border-box;width:100%;max-width:none}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .sign-in-secondary{display:flex;align-items:center;justify-content:center;min-height:54px;margin-top:12px;padding:0 18px;border:1px solid #111;border-radius:12px;background:#fff;color:#111;box-shadow:none;font:inherit;font-weight:700;text-transform:none;letter-spacing:normal;cursor:pointer}
.teacher-auth-sign-in .teacher-auth-actions .sign-in-secondary:first-child{margin-top:0}
.teacher-auth-sign-in .sign-in-secondary:focus-visible{outline:2px solid #111;outline-offset:3px}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;margin:0;padding:12px 14px;border:1px solid #d6d6d6;border-radius:12px;background:#fff;color:#111;box-shadow:none;text-align:left;transform:none}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school .class-symbol{flex:none;width:44px;height:44px;border-radius:10px;background:#f2f2f2;color:#111;box-shadow:none}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school .class-copy{flex:1;align-items:flex-start;text-align:left}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school .class-name{font-size:17px;text-transform:none;letter-spacing:-.01em;text-align:left}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school .subject{margin-top:2px;padding:0;border:0;background:none;color:#3a3a3a;font-size:13px;font-weight:500;text-transform:none;letter-spacing:normal}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school.is-ended .subject{color:#3a3a3a;text-decoration:none}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school.is-ended .class-name{color:#707070}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school>svg{flex:none;width:20px;height:20px;color:#111}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in :is(.teacher-auth-school,.teacher-auth-school *,.teacher-auth-message){text-align:left!important}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school .class-copy{display:flex;flex-direction:column}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school{display:grid!important;grid-template-columns:44px minmax(0,1fr) 20px!important;column-gap:14px!important}
body.teacher-auth-screen:not(#_) > main .teacher-auth-sign-in .teacher-auth-school .subject{margin:2px 0 0!important;justify-content:flex-start!important;align-self:flex-start!important}

/* Inside the app: the open school under "Your Classes", and the in-app school list. */
.live-school-line{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:6px}
.live-school-name{font-size:14px;font-weight:600;color:var(--muted)}
.live-school-switch{min-height:32px;padding:0 14px;border:1px solid rgb(var(--ink-rgb)/.2);border-radius:999px;background:var(--surface);color:var(--ink);font:600 13px/1 var(--font);cursor:pointer}
.live-school-switch:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.teacher-auth-in-app{display:flex;flex-direction:column;gap:12px}
.teacher-auth-in-app .teacher-auth-school .class-symbol{display:grid;place-items:center}
.teacher-auth-in-app .teacher-auth-school.is-ended .class-name{opacity:.6}
body:not(#_) main .teacher-auth-in-app{margin-top:8px}
body:not(#_) main .teacher-auth-in-app .teacher-auth-school{display:grid!important;grid-template-columns:44px minmax(0,1fr) 20px!important;column-gap:14px!important;align-items:center;width:100%;min-height:72px;margin:0;padding:12px 14px;border:1px solid rgb(var(--ink-rgb)/.12);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:none;transform:none}
body:not(#_) main .teacher-auth-in-app .teacher-auth-school.is-current{border-color:var(--ink)}
body:not(#_) main .teacher-auth-in-app .teacher-auth-school .class-symbol{width:44px;height:44px;border-radius:10px;background:rgb(var(--ink-rgb)/.05);box-shadow:none}
body:not(#_) main .teacher-auth-in-app .teacher-auth-school .class-copy{display:flex;flex-direction:column;align-items:flex-start}
body:not(#_) main .teacher-auth-in-app :is(.teacher-auth-school,.teacher-auth-school *){text-align:left!important}
body:not(#_) main .teacher-auth-in-app .teacher-auth-school .class-name{font-size:17px;text-transform:none;letter-spacing:-.01em}
body:not(#_) main .teacher-auth-in-app .teacher-auth-school .subject{margin:2px 0 0!important;padding:0;border:0;background:none;color:var(--muted);font-size:13px;font-weight:500;text-transform:none;letter-spacing:normal}
body:not(#_) main .teacher-auth-in-app .teacher-auth-school.is-ended .class-name{opacity:.55}
.live-school-line{margin-bottom:10px}
