/* The sign-in card: centred, one click per provider. Brand rules: Google's G on white with a grey outline,
   Apple's black button with the white mark. Drawn inline, no external requests. */
body { background: #fff; }
.as-header { display: none; }
.as-main { max-width: none; margin: 0; padding: 0 16px; min-height: 100vh; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.as-messages { position: absolute; top: 16px; left: 16px; right: 16px; margin: 0 auto; max-width: 360px; padding: 0; list-style: none; text-align: center; font-size: 14px; color: #b3261e; }
.si-card { width: 100%; max-width: 360px; box-sizing: border-box; padding: 36px 28px 32px; border: 1px solid #e4e4e7; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.si-mark { color: #0a0a0a; text-decoration: none; font-weight: 600; font-size: 16px; }
.si-mark span { letter-spacing: .12em; }
.si-card h1 { margin: 8px 0 12px; font-family: var(--as-serif, 'Source Serif 4', serif); font-weight: 600; font-size: 28px; color: #0a0a0a; }
.si-card form { margin: 0; }
.si-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; box-sizing: border-box; padding: 0 16px; border-radius: 4px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; }
.si-btn svg { flex: none; }
.si-btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.si-btn-google:hover { background: #f8f9fa; }
.si-btn-apple { background: #000; color: #fff; border: 1px solid #000; }
.si-btn-apple:hover { background: #1a1a1a; }
.si-btn-ms { background: #fff; color: #0a0a0a; border: 1px solid #e4e4e7; }
.si-staff { margin-top: 8px; }
.si-link { border: 0; background: none; padding: 4px; font: inherit; font-size: 13px; color: #71717a; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.si-link:hover { color: #0a0a0a; }
.si-empty { margin: 0; color: #71717a; font-size: 14px; }
/* Messages sit inside the card (account/snow_card.html); the base layout's list is not used here. */
.as-messages { display: none; }
.si-messages { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.si-msg { padding: 10px 12px; border-radius: 4px; font-size: 14px; line-height: 1.4; background: #f4f4f5; color: #27272a; text-align: left; }
.si-msg-error { background: #fdecea; color: #8c1d18; }
.si-msg-success { background: #ecf6ef; color: #1c3326; }
.si-lede { margin: -6px 0 6px; color: #52525b; font-size: 14px; line-height: 1.45; }
.si-note { margin: 0; color: #71717a; font-size: 13px; }
.si-or { display: flex; align-items: center; gap: 10px; margin: 4px 0; color: #a1a1aa; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.si-or::before, .si-or::after { content: ""; flex: 1; border-top: 1px solid #e4e4e7; }
.si-email { display: flex; flex-direction: column; gap: 8px; }
.si-email input { height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid #a1a1aa; border-radius: 4px; font: inherit; font-size: 16px; }
.si-email input:focus { outline: 2px solid #1c3326; outline-offset: 1px; }
.si-code { text-align: center; letter-spacing: .25em; font-family: 'Geist Mono', ui-monospace, monospace; text-transform: uppercase; }
.si-btn-email { background: #1c3326; color: #fff; border: 1px solid #1c3326; }
.si-btn-email:hover { background: #24412f; }
.si-err { margin: 0; color: #8c1d18; font-size: 13px; text-align: left; }
.si-legal { margin: 8px 0 0; color: #a1a1aa; font-size: 12px; line-height: 1.4; }
.si-legal a { color: inherit; }
.si-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The new look (Romain, 6 Nov 2026): the weather over where you are behind one glass card; Apple, Google, or email. */
body { background: #eef2f6; }
.si-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(900px 560px at 20% 0%, #fff, rgba(255,255,255,0) 62%), linear-gradient(180deg, #f4f7fa, #e4eaf0); }
.si-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.si-map.on { opacity: 1; }
.as-main { position: relative; z-index: 1; }
/* More glass (Romain, 9 Nov 2026: "more translucent and glassy so you can see the map moving in the back"): a thin white
   tint and a light blur, so the weather reads through; a bright rim and an inner sheen keep it a pane, the text stays dark. */
.si-card { max-width: 380px; padding: 34px 26px 26px; border: 1px solid rgba(255,255,255,.75); border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.52), rgba(255,255,255,.26) 55%, rgba(255,255,255,.36));
  -webkit-backdrop-filter: blur(9px) saturate(1.6) brightness(1.06); backdrop-filter: blur(9px) saturate(1.6) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -18px 36px rgba(255,255,255,.12), 0 2px 6px rgba(20,30,40,.08), 0 24px 60px rgba(20,30,40,.18); }
.si-unset { cursor: not-allowed; opacity: .45; filter: grayscale(1); pointer-events: none; }  /* greyed: no keys yet (Romain, 10 Nov 2026) */
.si-mark { display: block; margin-bottom: 4px; color: #111; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.si-card h1 { margin: 14px 0 6px; font-family: var(--font); font-weight: 600; font-size: 28px; letter-spacing: -.03em; color: #111; }
.si-lede { margin: 0 0 12px; color: #56625b; font-size: 14.5px; }
.si-card > form + form, .si-card > form + .si-or, .si-card > .si-or + form { margin-top: 10px; }
.si-btn { height: 48px; border-radius: 12px; font-size: 15px; font-weight: 500; margin-bottom: 10px; transition: transform .12s ease, background .15s ease; }
.si-btn:active { transform: scale(.985); }
.si-btn-apple { background: #111; border-color: #111; }
.si-btn-apple:hover { background: #2a2d30; }
.si-btn-google { background: rgba(255,255,255,.92); border: 1px solid rgba(17,17,17,.14); color: #111; }
.si-btn-google:hover { background: #fff; }
.si-btn-email { background: rgba(255,255,255,.4); border: 1px solid rgba(17,17,17,.14); color: #111; margin-bottom: 0; }
.si-btn-email:hover { background: rgba(255,255,255,.9); }
.si-or { margin: 6px 0 12px; color: #8d8d89; }
.si-or::before, .si-or::after { border-top-color: rgba(17,17,17,.1); }
.si-email { gap: 10px; }
.si-email input { height: 48px; border-radius: 12px; border: 1px solid rgba(17,17,17,.18); background: rgba(255,255,255,.7); font-family: var(--font); }
.si-email input:focus { outline: 2px solid #111; outline-offset: 1px; }
.si-link { color: #56625b; }
.si-legal { margin-top: 14px; color: #8d8d89; }
@media (prefers-reduced-motion: reduce) { .si-map { transition: none; } .si-btn { transition: none; } }

/* The name over the map, top left: the shared logo (theme.css .ps-logo, Romain 11 Nov 2026 B2); the card starts with its heading. */
.si-card h1 { margin-top: 0; }
.si-card[aria-busy="true"] { opacity: .75; transition: opacity .15s; }
.si-email input { text-align: center; } /* the address, its placeholder and the code sit in the middle (Romain, 9 Nov 2026) */

/* A smaller card (Romain, 9 Nov 2026: "so it doesn't take up so much of the iPhone"): narrower, tighter, smaller type; more map. */
.si-card { max-width: 320px; padding: 22px 18px 16px; gap: 8px; border-radius: 20px; }
.si-card h1 { font-size: 22px; margin-bottom: 4px; }
.si-lede { font-size: 13px; margin-bottom: 6px; }
.si-btn { height: 40px; border-radius: 10px; font-size: 14px; margin-bottom: 6px; }
.si-card > form + form, .si-card > form + .si-or, .si-card > .si-or + form { margin-top: 4px; }
.si-email { gap: 6px; }
.si-email input { height: 40px; border-radius: 10px; font-size: 14px; }
.si-note { font-size: 11px; line-height: 1.35; }
.si-legal { margin-top: 6px; font-size: 11px; }
@media (max-width: 600px) { .si-card { max-width: 300px; } }
/* The two tick boxes at the bottom of the card sit in one column: same left edge, same box, same gap as .si-agree-l (Romain, 13 Nov 2026). */
.si-remember { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 2px 0 0; color: #56625b; font-size: 12.5px; text-align: left; cursor: pointer; }
.si-remember input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: #111; }
/* The box is inside the email form, so the email field's rule (.si-email input: side padding 12px, border, round corners, ground) reached it. Safari on the iPhone keeps that
   padding, so the box was 26px wide and its text started 10px after the terms row's text (Romain's iPhone picture, 13 Nov 2026 evening). The box goes back to the browser's own
   tick box, as the terms box is. */
.si-email .si-remember input { padding: 0; border: revert; border-radius: revert; background: revert; }
/* localhost only: the "Skip sign-in" link (snow/auth_flow.py dev_signin) */
.si-dev-skip{display:flex;align-items:center;justify-content:center;text-decoration:none;border-style:dashed;color:#8a5a00;margin-bottom:8px}
/* Phone review 11 Nov 2026: tap areas of about 40 px. A see-through ::after widens what a finger can hit; the drawn button keeps its size. */
.si-link{position:relative}.si-link::after{content:'';position:absolute;inset:-8px -4px}
/* the terms tick box (login.html): a plain row above the buttons; the message shows only when someone tries to continue without it */
.si-agree { margin: 14px 0 0; text-align: left; }
.si-agree-l { display: flex; align-items: flex-start; gap: 8px; color: #3f4a44; font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.si-agree-l input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #111; }
.si-agree-l a { color: inherit; text-underline-offset: 2px; }
.si-agree-msg { margin: 6px 0 0; padding: 7px 10px; border-radius: 8px; background: #fdecea; color: #8c1d18; font-size: 12.5px; line-height: 1.35; }
.si-agree-msg[hidden] { display: none; }

/* G1 (13 Nov 2026): the sign-in page inside the small window over the map (static/snow/signin_window.js, frame name "snowsignin"): no background map, no name, no page chrome */
html.si-win .si-bg, html.si-win .ps-logo, html.si-win .as-header, html.si-win .as-footer { display: none !important; }
html.si-win, html.si-win body { background: #fff; min-height: 0; }
html.si-win .si-card { border: 0; box-shadow: none; background: transparent; margin: 0 auto; }

/* G2 (13 Nov 2026, "can't see label on black button", Saved Trips signed out): a key-less provider button (.si-unset) was faded twice (theme_arc.css
   `[aria-disabled=true]{opacity:.4}` beat .si-unset's .45, plus grayscale), so the white label on the black Apple button sat at ~2.5:1 on the light card.
   Disabled stays grey and unclickable, but the label keeps full contrast: solid colours, no opacity, in every state and on every page that loads this sheet. */
.si-card .si-btn.si-unset[aria-disabled] { opacity: 1; filter: none; }
.si-card .si-btn-apple.si-unset[aria-disabled], .si-card .si-btn-apple.si-unset[aria-disabled]:hover, .si-card .si-btn-apple.si-unset[aria-disabled]:focus-visible { background: #5f6368; border-color: #5f6368; color: #fff; }
.si-card .si-btn-google.si-unset[aria-disabled], .si-card .si-btn-ms.si-unset[aria-disabled] { background: #e4e4e2; border-color: #c9c9c6; color: #3c4043; }

/* The X that leaves the sign-in page (account/snow_card.html): top right, a 44 px target, above the card and the map; not in the sheet over the map (it closes by Escape or a click outside). */
.si-close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 20; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: .5px solid rgba(255,255,255,.75); border-radius: 8px; background: rgba(255,255,255,.6); color: #111; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(20,30,40,.12); }
.si-close:hover { background: rgba(255,255,255,.85); }
.si-close:focus-visible { outline: 2px solid #1c3326; outline-offset: 2px; }
html.si-win .si-close { display: none !important; }
