/* Sign-in (approved by AC, 4 November 2026): Atlys teal across the page, the welcome centred in the open space,
   and a raised teal card on the right, clearly separate from the background. Always this look: no theme switch.
   On a phone: the logo, then the card, and no other words. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/brand/fonts/dm-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/brand/fonts/dm-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 700; font-display: swap; src: url('/brand/fonts/spectral-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/brand/fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); }

:root {
  --ink: #EEF5F3; --muted: #A8C2BE; --soft: #D3E3E0; --cream: #F3E9D2; --gold: #C99A3F; --line: rgba(255,255,255,.28);
  --bad: #F6B3A3;
  --display: 'Spectral', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #15303A; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
p { margin: 0; }

.page {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  background: radial-gradient(1100px 760px at 0% 0%, #2B5A63 0%, rgba(43,90,99,0) 62%), linear-gradient(160deg, #1F434B 0%, #15303A 100%);
}

/* The welcome, centred in the space left of the card */
.brand { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 56px 40px 80px; text-align: center; }
.brand .inner { display: grid; justify-items: center; gap: 22px; max-width: 560px; }
.brand .logo { display: block; width: clamp(190px, 18vw, 250px); height: auto; }
.brand .rule { width: 56px; height: 3px; border-radius: 3px; background: var(--gold); margin-top: 6px; }
.brand h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1.12; margin: 0; text-wrap: balance; }
.brand .inner p { color: var(--muted); font-size: 1.05rem; max-width: 44ch; }
.brand .copy { position: absolute; left: 0; right: 0; bottom: 26px; font-size: .8rem; color: var(--muted); }
.brand .copy a { color: var(--muted); }

/* The card: solid raised teal with a light border, a faint ring and a deep shadow */
.side { padding: 32px clamp(24px, 5vw, 80px) 32px 0; }
.box {
  width: 360px; display: grid; gap: 13px; padding: 30px 28px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 100%), #21505A;
  border: 1px solid rgba(255,255,255,.3);
  outline: 6px solid rgba(255,255,255,.05);
  box-shadow: 0 34px 90px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.14);
}
.box h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 0; line-height: 1.2; color: #FFFFFF; }
.box .sub { margin: -8px 0 4px; color: var(--soft); }
.box label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: #FFFFFF; }
.box input { font: inherit; font-size: 1rem; padding: 11px 12px; border-radius: 9px; border: 1px solid transparent; background: #FFFFFF; color: #142A30; width: 100%; }
.box input::placeholder { color: #6B7E83; }
.box input.code { font-family: var(--mono); font-size: 1.45rem; letter-spacing: .35em; text-align: center; }
.box input:focus-visible, .btn:focus-visible, .linkbtn:focus-visible, a:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.btn { font: inherit; font-weight: 600; font-size: .98rem; padding: 12px 14px; border-radius: 9px; border: 0; background: var(--cream); color: #142A30; cursor: pointer; width: 100%; text-align: center; text-decoration: none; display: block; }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: rgba(255,255,255,.06); color: #FFFFFF; border: 1px solid rgba(255,255,255,.6); }
.btn.ghost:hover { border-color: var(--cream); filter: none; }
.linkbtn { font: inherit; font-weight: 600; font-size: .9rem; border: 0; background: transparent; color: var(--cream); cursor: pointer; padding: 2px 0; justify-self: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: .82rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.help { font-size: .72rem; color: var(--soft); text-align: center; white-space: nowrap; }
.help a { color: var(--cream); font-weight: 600; }
.notes { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.notes div { display: grid; gap: 2px; }
.notes b { font-size: .88rem; }
.notes p { font-size: .84rem; color: var(--soft); }
.err { color: var(--bad); font-size: .88rem; }
.fine { font-size: .84rem; color: var(--soft); }
.stack { display: grid; gap: 10px; }
.mono { font-family: var(--mono); }
.qr { display: grid; place-items: center; background: #FFFFFF; border-radius: 10px; padding: 10px; justify-self: center; }
.qr img { display: block; image-rendering: pixelated; }
.codes { columns: 2; margin: 0; padding-left: 1.4em; font-size: 1rem; line-height: 1.9; }

/* Phone: the logo, then the card. No other words. */
@media (max-width: 760px) {
  .page { grid-template-columns: 1fr; align-items: start; align-content: start; }
  .brand { min-height: 0; padding: 32px 16px 18px; }
  .brand .inner { gap: 0; }
  .brand .rule, .brand h1, .brand .inner p, .brand .copy { display: none; }
  .brand .logo { width: 150px; }
  .side { padding: 0 16px 40px; }
  .box { width: 100%; }
  .notes { display: none; }
  .help { white-space: normal; }
}
