/* The sign-in pages (5 Dec 2026).

   The rules down to the marked line are the design handed over on 2 Dec 2026
   (docs/Design system preference form.zip: login.html, login-code.html and
   welcome.html, which share one stylesheet), unchanged except that the two
   fonts are loaded from this folder. Nothing is loaded from another site
   (rule 11). The fonts are Source Serif 4 and Source Sans 3, SIL Open Font
   License; see vendor/VENDOR.md.

   Below the line are the few rules the design did not need: the page where an
   authenticator app is enrolled, and a page that only says something. */
@font-face{font-family:"Source Serif 4";src:url("fonts/SourceSerif4-Variable.woff2") format("woff2");font-weight:200 900;font-display:swap;}
@font-face{font-family:"Source Sans 3";src:url("fonts/SourceSans3-Variable.woff2") format("woff2");font-weight:200 900;font-display:swap;}
:root{
  --bg:#fbfbfa;--text:#1c1b19;--muted:#6b6862;--line:#e3e0da;--card:#ffffff;
  --accent:#2456b8;--accent-hover:#1d4797;--on-accent:#ffffff;--input-line:#8f8a82;
  --red:#b3261e;--red-bg:#fbefed;--red-line:#e6b4ae;
  --brand:#1b3a5c;--brand-text:#f3f1ec;--brand-muted:#bccadb;--track:#2c4c70;--bar:#d3deea;--mark:#f3f1ec;
  --serif:"Source Serif 4","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --sans:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --space-1:8px;--space-2:14px;--space-3:22px;--space-4:32px;--space-5:64px;--radius:4px;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#171614;--text:#eae7e1;--muted:#98938a;--line:#322f2b;--card:#1f1d1b;
  --accent:#8ab4f8;--accent-hover:#a8c8fa;--on-accent:#10192a;--input-line:#6e6961;
  --red:#f2837b;--red-bg:#2a1d1b;--red-line:#5a302c;
  --brand:#111b26;--brand-text:#eae7e1;--brand-muted:#a3b2c4;--track:#22344b;--bar:#8ab4f8;--mark:#eae7e1;
}}
*{box-sizing:border-box;}
html,body{margin:0;height:100%;}
body{background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;}
.page{display:flex;min-height:100vh;}
.brand{flex:0 0 min(560px,39%);background:var(--brand);color:var(--brand-text);display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-5) var(--space-5) 72px;}
.brand-mark{display:flex;align-items:center;gap:var(--space-2);}
.brand-mark svg{width:40px;height:40px;flex:none;}
.brand-name{font-family:var(--serif);font-size:30px;font-weight:500;letter-spacing:-0.01em;line-height:1.1;margin:0;}
.brand-line{margin:0;color:var(--brand-muted);font-size:16px;}
.brand-art{flex:1;display:flex;align-items:flex-end;}
.brand-art svg{width:100%;max-width:400px;display:block;}
.main{flex:1;display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-5) clamp(24px,7vw,96px) 40px;}
.main-inner{flex:1;display:flex;align-items:center;justify-content:center;}
form{width:100%;max-width:380px;display:flex;flex-direction:column;gap:var(--space-3);margin:0;}
h1{margin:0;font-family:var(--serif);font-weight:500;font-size:34px;letter-spacing:-0.01em;line-height:1.15;}
.intro{display:flex;flex-direction:column;gap:10px;}
.intro p,.quiet{margin:0;color:var(--muted);}
.quiet{font-size:15px;}
.field{display:flex;flex-direction:column;gap:var(--space-1);}
label{font-size:15px;font-weight:500;}
.hint{font-size:14px;color:var(--muted);}
input[type=email],input[type=password],input[type=text]{height:46px;padding:0 12px;font:inherit;font-size:16px;color:var(--text);background:var(--card);border:1px solid var(--input-line);border-radius:var(--radius);width:100%;}
input.code{height:56px;font-size:24px;letter-spacing:.35em;font-variant-numeric:tabular-nums;padding:0 14px;}
input:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent);}
.check{display:flex;align-items:center;gap:10px;font-weight:400;cursor:pointer;}
.check input{width:18px;height:18px;margin:0;accent-color:var(--accent);}
.check input:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
button{height:48px;border:0;border-radius:var(--radius);background:var(--accent);color:var(--on-accent);font:inherit;font-size:16px;font-weight:600;cursor:pointer;}
button:hover{background:var(--accent-hover);}
button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
a{color:var(--accent);text-underline-offset:3px;}
a:hover{color:var(--accent-hover);}
a:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:2px;}
.back{align-self:flex-start;font-size:15px;}
.alert{border:1px solid var(--red-line);background:var(--red-bg);color:var(--red);padding:12px 14px;border-radius:var(--radius);font-size:15px;}
.alert.neutral{border-color:var(--line);background:var(--card);color:var(--text);}
.alert:empty{display:none;}
footer{border-top:1px solid var(--line);padding-top:16px;font-size:13px;line-height:1.5;color:var(--muted);text-wrap:pretty;}
@media (max-width:860px){
  .page{flex-direction:column;}
  .brand{flex:none;padding:24px 24px 22px;gap:8px;}
  .brand-mark svg{width:30px;height:30px;}
  .brand-name{font-size:22px;}
  .brand-line{font-size:14px;}
  .brand-art{align-items:flex-start;}
  .brand-art svg{max-width:150px;}
  .main{padding:32px 24px 28px;}
  .main-inner{align-items:flex-start;}
}

/* ------------------------------------------------ added to the design, 5 Dec 2026 */
form.wide{max-width:440px;}
.steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;color:var(--text);}
.steps li{padding-left:4px;}
.steps .hint{display:block;margin-top:2px;}
.key{display:block;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,monospace;font-size:17px;letter-spacing:.06em;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;
  overflow-wrap:anywhere;user-select:all;}
.said{width:100%;max-width:440px;display:flex;flex-direction:column;gap:var(--space-3);}
.said p{margin:0;color:var(--muted);}
.alert.good{border-color:var(--line);background:var(--card);color:var(--text);}
