/* The code step ("Enter verification code"): the site's own mark in a tile, one wide glowing field, Verify, the inbox button.
   Served twice: baked (/code.css, the fallback) and live (https://live.prismwide.com/pw/accounts-code.css, wins when it loads), so a style change is
   `node scripts/push-live.mjs file accounts-code.css services/accounts/public/code.css`, never a deploy. Colours come from the site's own tokens (--accent --ink --void --line). */
:root {
  --cs-tile: 64px; --cs-tile-r: 20px; --cs-field-h: 64px; --cs-field-r: 16px; --cs-glow: 40%;
  --cs-off-bg: color-mix(in oklch, var(--ink, #fff) 9%, var(--void, #05080e)); --cs-off-ink: color-mix(in oklch, var(--ink, #fff) 38%, transparent);
}
.cs-head { text-align: center; }
html:not([data-login=split]) body:has(.cs-head) .signin-brand { display: none; } /* one mark: the tile below is the site's logo */
.cs-tile { display: grid; place-items: center; width: var(--cs-tile); height: var(--cs-tile); margin: 0 auto 14px; border-radius: var(--cs-tile-r); overflow: hidden; color: var(--accent, #3cd2ff); background: color-mix(in oklch, var(--ink, #fff) 6%, var(--void, #05080e)); border: 1px solid var(--line, rgba(255, 255, 255, .14)); box-shadow: 0 18px 40px -22px color-mix(in oklch, var(--accent, #3cd2ff) 70%, transparent); animation: sx-pop .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.cs-tile img, .cs-tile svg { width: 40px; height: 40px; object-fit: contain; }
html[data-login] .signin-card .cs-head h1 { font-size: 28px !important; font-weight: 800; line-height: 1.15 !important; letter-spacing: -.02em; text-wrap: balance; }
.cs-head .signin-lede { margin: 8px auto 0; max-width: 36ch; overflow-wrap: anywhere; }
.cs-head .signin-lede b { color: var(--ink, #fff); font-weight: 700; }
.cs-code { position: relative; width: 100%; justify-self: stretch; }
.cs-code[hidden] { display: none; }
/* the six digits sit where the six placeholder zeros are (left aligned, the group centred), so the caret of an empty field is at the first zero, not mid-field */
.signin .cs-code input { display: block; width: 100%; height: var(--cs-field-h); min-height: var(--cs-field-h); padding: 0 16px 0 max(16px, calc(50% - 3.3em)); box-sizing: border-box; text-align: left; border-radius: var(--cs-field-r); background: color-mix(in oklch, var(--ink, #fff) 6%, var(--void, #05080e)); border: 1.5px solid var(--line, rgba(255, 255, 255, .14)); color: var(--ink, #fff); caret-color: var(--accent, #3cd2ff); font: 600 clamp(1.6rem, 8vw, 2rem) / 1 ui-monospace, "SF Mono", "Geist Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .5em; outline: none; box-shadow: 0 0 28px -8px color-mix(in oklch, var(--accent, #3cd2ff) var(--cs-glow), transparent); transition: border-color .15s, box-shadow .25s, background-color .2s, opacity .2s; }
.signin .cs-code input::placeholder { color: color-mix(in oklch, var(--ink, #fff) 24%, transparent); }
.signin .cs-code input:focus { border-color: var(--accent, #3cd2ff); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent, #3cd2ff) 24%, transparent), 0 0 36px -6px color-mix(in oklch, var(--accent, #3cd2ff) 55%, transparent); }
.cs-code input::selection { background: transparent; color: transparent; }
.cs-code[data-s="wait"] input { opacity: .6; }
.cs-code[data-s="bad"] input { border-color: var(--sx-bad, #ff6b7a); box-shadow: 0 0 0 3px color-mix(in oklch, var(--sx-bad, #ff6b7a) 18%, transparent); animation: sx-shake .45s cubic-bezier(.36, .07, .19, .97); }
.cs-code[data-s="ok"] input { border-color: var(--sx-good, #3ddc97); background: color-mix(in oklch, var(--sx-good, #3ddc97) 16%, var(--void, #05080e)); }
/* Verify: a flat grey, dashed-out look until six digits are in, then the site's accent */
.signin-card .btn.pri.lg { transition: background-color .25s, color .25s, border-color .25s, transform .16s cubic-bezier(.2, .8, .2, 1), filter .2s, box-shadow .25s; }
.signin-card .btn.pri.lg:disabled:not(:has(.sp)) { opacity: 1; filter: none; box-shadow: none; background: var(--cs-off-bg); color: var(--cs-off-ink); border: 1.5px dashed var(--line, rgba(255, 255, 255, .2)); cursor: not-allowed; }
.cs-inbox { display: flex !important; align-items: center; justify-content: center; gap: 10px; text-decoration: none; background: transparent !important; color: var(--ink, #fff) !important; border: 1.5px solid var(--line, rgba(255, 255, 255, .14)) !important; }
.cs-inbox svg { flex: none; }
.cs-inbox i { font-style: normal; transition: transform .2s; }
@media (hover: hover) { .cs-inbox:hover { border-color: var(--accent, #3cd2ff) !important; } .cs-inbox:hover i { transform: translateX(3px); } }
.cs-alt, .cs-terms { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: color-mix(in oklch, var(--ink, #fff) 66%, transparent); }
.cs-terms { font-size: 12px; color: color-mix(in oklch, var(--ink, #fff) 50%, transparent); text-wrap: balance; }
.cs-terms a { color: inherit; text-underline-offset: 3px; }
.cs-alt .lnk { font-size: 14px; }
/* the fixed sound button owns the bottom-right corner: the page keeps clear of it, and the foot line ends before it */
.signin { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.signin-foot { padding-inline-end: 64px !important; }
