/* Cortana account screens (tv/auth.js): sign in, create account, waitlist, access code, pair a TV.
   Same tokens as the site (site/assets/cortana.css): night, paper, lamp, screen. Solid colours only (TV rule), sized in em
   from one clamp so the same markup reads on a phone and from the couch. The site's account page adds .inpage. */
@font-face { font-family: "Mona Sans"; src: url("/assets/fonts/mona-sans.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
#auth { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 1.2em; overflow: auto;
  background: #070a18; color: #f4f1ea; font-family: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: clamp(16px, 1.15vw, 26px); line-height: 1.5; -webkit-font-smoothing: antialiased; }
#auth[hidden] { display: none; }
#auth.inpage { position: static; inset: auto; z-index: auto; padding: 0; overflow: visible; background: none; font-size: 17px; display: block; }
#auth .abox { width: 100%; max-width: 25em; background: #0b0f22; border: 1px solid #171d3d; border-radius: 1.5em; padding: 2.2em 2.2em 1.8em; box-shadow: 0 2em 5em #02030c; }
#auth.inpage .abox { max-width: none; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
#auth.wide .abox { max-width: 46em; padding: 3em 3em 2.4em; text-align: center; }
#auth .abrand { display: flex; align-items: center; gap: .5em; font-size: 1.05em; font-weight: 650; font-stretch: 122%; letter-spacing: -.02em; color: #f4f1ea; margin-bottom: 1.8em; }
#auth .abrand svg { width: 1.45em; height: 1.45em; flex: none; }
#auth.wide .abrand { justify-content: center; }
#auth.inpage .abrand { display: none; }
#auth h1 { font-size: 2.1em; line-height: 1.02; font-weight: 720; font-stretch: 112%; letter-spacing: -.035em; margin: 0 0 .4em; }
#auth.wide h1 { font-size: 2.9em; }
#auth.inpage h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.25rem); }
#auth .asub { color: #aeb7dc; margin: 0 0 1.6em; }
#auth .asub strong { color: #f4f1ea; font-weight: 650; }
#auth .aform { display: flex; flex-direction: column; gap: 1em; }
#auth label { display: flex; flex-direction: column; gap: .4em; font-size: .88em; font-weight: 600; color: #f4f1ea; }
#auth input { font: inherit; font-size: 1.14em; font-weight: 500; color: #f4f1ea; background: #070a18; border: 1px solid #2a3445; border-radius: .8em; padding: .7em .9em; min-height: 2.9em; width: 100%; outline: none; }
#auth input::placeholder { color: #6a73a3; }
#auth input:hover { border-color: #3a475c; }
#auth input:focus { border-color: #8fa5ff; box-shadow: 0 0 0 .18em #1b3a57; }
#auth .acode { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; text-align: center; font-size: 1.35em; }
#auth .ahint { font-weight: 400; color: #838dbb; font-size: .92em; }
#auth .amsg { min-height: 0; margin: 0; color: #ff6b81; font-size: .92em; }
#auth .amsg.good { color: #4be3a8; }
#auth .abtn { display: flex; align-items: center; justify-content: center; min-height: 3em; padding: 0 1.3em; border-radius: 99em; border: 1px solid #2a3463; background: #121832; color: #f4f1ea;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .12s ease, transform .12s ease; -webkit-appearance: none; appearance: none; }
#auth .abtn:hover { background: #1c2448; }
#auth .abtn:focus-visible, #auth .alink:focus-visible { outline: .16em solid #8fa5ff; outline-offset: .16em; }
#auth .abtn:active { transform: scale(.98); }
#auth .abtn.primary { background: #f4f1ea; border-color: #f4f1ea; color: #070a18; }
#auth .abtn.primary:hover { background: #ffffff; }
#auth .abtn:disabled { opacity: .55; cursor: default; }
#auth .aor { display: flex; align-items: center; gap: .9em; margin: 1.1em 0 .9em; color: #838dbb; font-size: .86em; }
#auth .aor::before, #auth .aor::after { content: ""; flex: 1; height: 1px; background: #171d3d; }
#auth .aalt { display: flex; flex-direction: column; gap: .6em; }
#auth .aalt:empty, #auth .aalt:empty + * { margin-top: 0; }
#auth .afoot { margin: 1.5em 0 0; color: #aeb7dc; font-size: .9em; text-align: center; }
#auth .afoot + .afoot { margin-top: .1em; }
#auth.inpage .afoot { text-align: left; }
#auth .alink { background: none; border: 0; padding: .5em .1em; min-height: 2.75em; color: #8fa5ff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: .06em; display: inline-flex; align-items: center; }
#auth .alink:hover { color: #bcc9ff; }
#auth .apair { display: flex; justify-content: center; gap: .2em; margin: .6em 0 .8em; font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: 4.4em; line-height: 1; }
#auth .apair span { display: flex; align-items: center; justify-content: center; width: 1.2em; height: 1.55em; background: #070a18; border: 2px solid #2a3463; border-radius: .16em; color: #f4f1ea; }
#auth .aqr { width: 9.5em; height: 9.5em; margin: 0 auto 1em; border-radius: .7em; overflow: hidden; background: #f4f1ea; }
#auth .aqr:empty { display: none; }
#auth .aqr svg { display: block; width: 100%; height: 100%; }
@media (max-width: 900px) {
  #auth { align-items: flex-start; padding: max(1em, env(safe-area-inset-top)) 1em 1em; font-size: 17px; }
  #auth .abox { margin: auto 0; padding: 1.7em 1.4em 1.4em; }
  #auth.inpage { padding: 0; } #auth.inpage .abox { padding: 0; }
  #auth .apair { font-size: 2.5em; }
}
@media (prefers-reduced-motion: reduce) { #auth .abtn { transition: none; } }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

#auth .amsg:empty { display: none; }
