/* POC Check sign-in page, in the Scoreboard look (DESIGN_SYSTEM.md): navy board, pale blue page, white 8px cards,
   Archivo display, Public Sans body, IBM Plex Mono labels. Light only: no theme toggle before sign-in. */
:root {
  --navy: #09315D; --blue: #0F54AA; --teal: #3BC1C6; --teal-ink: #0B6F75; --page: #E6EDF5; --card: #FFFFFF;
  --ink: #09315D; --ink2: #3A5677; --muted: #51657F; --line: #D5DFEA; --line2: #BACADC; --board-muted: #A9C0DA;
  --bad: #A42222; --bad-bg: #FBE6E3; --good: #1D7444; --r: 8px; --r-sm: 6px;
  --display: 'Archivo', 'Arial Narrow', sans-serif; --body: 'Public Sans', 'Segoe UI', Arial, sans-serif; --mono: 'IBM Plex Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; cursor: default; }
button { cursor: pointer; }
.shell { display: grid; grid-template-columns: minmax(300px, 42%) 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 44px 48px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 4px solid var(--teal); }
.word { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--display); font-stretch: 88%; font-size: 38px; font-weight: 800; letter-spacing: -.01em; }
.word .mark { width: 56px; height: 56px; border-radius: 12px; background: #fff; padding: 4px; display: block; }
.tag { margin: 18px 0 0; max-width: 360px; font-size: 17px; line-height: 26px; color: var(--board-muted); }
.scale-cap { margin: 0 0 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--board-muted); }
.tiles { display: flex; gap: 10px; }
.t { width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; }
.g-A, .g-B { background: #A4D16D; color: var(--navy); }
.g-C { background: #F2B33D; color: var(--navy); }
.g-D, .g-F { background: #D9473F; color: #fff; }
.scale-note { margin: 12px 0 0; font-size: 13px; color: var(--board-muted); }
.foot { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--board-muted); }
.paper { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.panel { width: 100%; max-width: 410px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; box-shadow: 0 1px 2px rgba(9,49,93,.06), 0 8px 24px rgba(9,49,93,.08); }
.kicker { margin: 0 0 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
h2 { margin: 0 0 6px; font-family: var(--display); font-stretch: 88%; font-size: 30px; line-height: 34px; font-weight: 700; color: var(--navy); }
.lead { margin: 0 0 20px; font-size: 15px; line-height: 22px; color: var(--ink2); }
.field { display: block; margin: 0 0 16px; }
.field > span { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field > span .linkish { text-transform: none; letter-spacing: 0; font-size: 13px; }
.field input { width: 100%; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line2); border-radius: var(--r-sm); cursor: text; }
.field input:hover { border-color: var(--ink2); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 84, 170, .18); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.caps { display: block; margin-top: 6px; font-size: 12px; color: var(--bad); }
.go { position: relative; width: 100%; margin-top: 4px; padding: 12px 16px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--navy); border: 0; border-radius: var(--r-sm); cursor: pointer; }
.go:hover:not(:disabled) { background: var(--blue); }
.go:focus-visible { outline: 3px solid rgba(59, 193, 198, .6); outline-offset: 2px; }
.go:disabled { opacity: .55; cursor: not-allowed; }
.go.busy span { visibility: hidden; }
.go.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--blue); background: none; border: 0; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.linkish:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.under { display: block; margin: 16px auto 0; }
.alert { margin: 0 0 16px; padding: 10px 12px; font-size: 14px; color: var(--bad); background: var(--bad-bg); border-radius: var(--r-sm); }
.note { margin: 0 0 16px; padding: 10px 12px; font-size: 14px; color: var(--navy); background: var(--page); border-radius: var(--r-sm); }
.help { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.otp { display: flex; gap: 8px; margin: 0 0 16px; }
.otp input { width: 44px; height: 52px; text-align: center; font-size: 22px; font-family: var(--mono); color: var(--ink); border: 1px solid var(--line2); border-radius: var(--r-sm); cursor: text; }
.otp input:nth-child(4) { margin-left: 8px; }
.otp input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 84, 170, .18); }
.otp.bad input { border-color: var(--bad); }
.rules { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.rules li::before { content: '\25CB'; margin-right: 6px; }
.rules li.ok { color: var(--good); }
.rules li.ok::before { content: '\2713'; }
.qr-wrap { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 16px; }
.qr { width: 128px; height: 128px; flex: none; }
.qr img, .qr canvas { width: 128px !important; height: 128px !important; }
.key { font-size: 13px; color: var(--muted); }
.key span { display: block; margin-bottom: 4px; }
.key code { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 13px; color: var(--ink); word-break: break-all; }
@media (prefers-reduced-motion: reduce) { .go.busy::after { animation-duration: 2s; } }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { padding: 22px 16px; border-right: 0; border-bottom: 4px solid var(--teal); }
  .tag, .foot, .scale { display: none; }
  .paper { padding: 24px 16px; }
  .panel { padding: 24px 20px; }
}
