/* The sign-in pages (sign in, sign up, reset, verify, invitations). 13 Nov 2026 (Ollie: "sign in is bad. its old
   fonts. renew. we want to look professional"). 19 Nov 2026, from two designs Ollie was shown ("b taps / a sky but the
   border around the mascot doesnt look good", "i don't want it in glass"): one white card on a soft light sky, the flat
   orb floating free above it with a soft shadow on the "floor", tappable (orb-tap.css/js: each tap reacts, quick taps
   heat it up, the sixth sets it alight); a Sign in / Create account switch whose pill glides between the two pages;
   white fields with their icon; the main button with a lit edge and a soft two-layer shadow. Light only. Colours are
   DESIGN.md's. app.css's form pieces take these values through the tokens set on .si. */
.si {
  --paper: #FFFFFF; --sheet: #FFFFFF; --raised: #FFFFFF; --ink: #18181B; --ink-2: #52525B; --ink-3: #71717A;
  --rule: #E4E4E7; --rule-soft: #F1F1F3; --rule-strong: #D4D4D8; --tint: #F4F4F5; --accent: #2563EB; --ring: rgba(37, 99, 235, .22);
  --critical: #A1261F; --display: "Geist", ui-sans-serif, system-ui, sans-serif; --text: "Geist", ui-sans-serif, system-ui, sans-serif;
  --si-field: #FFFFFF; --si-field-on: #FFFFFF; --si-btn: #18181B; --si-btn-hover: #3F3F46; --si-btn-ink: #FFFFFF; --si-icon: #A1A1AA;
  --si-card: #FFFFFF; --si-on-scene: #18181B; --si-on-scene-2: #52525B;
  color-scheme: light; position: relative; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100dvh;
  color: var(--ink); font: 400 15px/1.5 var(--text); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased;
}
body.si-body { margin: 0; background: #FFFFFF; }
/* the sky: Atlas's accent tint at the top fading to white, with soft white clouds low on either side */
.si::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 14% 82%, #FFFFFF 0 38%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(48% 36% at 88% 72%, #FFFFFF 0 34%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(36% 26% at 72% 20%, rgba(255, 255, 255, .85) 0 28%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(37, 99, 235, .16) 0%, #EEF3FF 42%, #FAFAFA 100%); }
.si-top { padding: 24px clamp(20px, 4vw, 40px); }
.si-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--si-on-scene); text-decoration: none; font: 600 17px/1 var(--display); letter-spacing: -0.02em; width: max-content; min-height: 40px; }
.si-brand svg { width: 22px; height: 22px; }
.si-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 8px 16px 32px; min-width: 0; }

/* the card */
.si-card { width: 100%; max-width: 420px; padding: 24px 36px 32px; border-radius: 24px; background: var(--si-card); text-align: center;
  box-shadow: 0 0 0 1px rgba(24, 24, 27, .04), 0 1px 2px rgba(24, 24, 27, .04), 0 12px 24px -8px rgba(37, 99, 235, .12), 0 40px 80px -24px rgba(37, 99, 235, .28);
  view-transition-name: si-card; animation: si-fly 640ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes si-fly { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.si-card h1 { font: 600 26px/1.15 var(--display); letter-spacing: -0.03em; margin: 0 0 6px; color: var(--ink); }
.si .auth-sub { color: var(--ink-2); font-size: 14px; margin: 0 0 24px; text-wrap: balance; }
.si .auth-sub a, .si .auth-form a:not(.btn), .si .auth-foot a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.si .auth-sub a:hover, .si .auth-form a:not(.btn):hover, .si .auth-foot a:hover { text-decoration-color: var(--ink); }
.si-card > p, .si-card .auth-form { text-align: left; }
.si-card > .auth-sub, .si-card > h1 + p { text-align: center; }

/* Sign in / Create account: the pill glides between the two pages (a view transition between documents) */
.si-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 24px; padding: 4px; border-radius: 14px; background: #F4F4F5; }
.si-switch a { position: relative; z-index: 1; display: grid; place-items: center; min-height: 40px; border-radius: 10px; color: var(--ink-2); font: 500 14px var(--text); text-decoration: none; transition: color .18s var(--ease); }
.si-switch a:hover { color: var(--ink); }
.si-switch a[aria-current="page"] { color: var(--ink); }
.si-switch a[aria-current="page"]::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 10px; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(24, 24, 27, .06), 0 1px 2px rgba(24, 24, 27, .08), 0 2px 6px -2px rgba(24, 24, 27, .12); view-transition-name: si-pill; }
.si-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the orb, floating free above the card with a soft shadow under it. Its look and tap game are orb-tap.css/js. */
.si-orb-stage { position: relative; display: grid; place-items: center; height: 116px; margin-bottom: -6px; animation: si-pop 560ms cubic-bezier(.34, 1.4, .64, 1) 120ms both; }
.si-orb-stage::after { content: ""; position: absolute; z-index: -1; bottom: 10px; left: 50%; width: 76px; height: 12px; margin-left: -38px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .24), rgba(37, 99, 235, 0)); animation: si-shadow 4.6s ease-in-out infinite; }
.si-orb-stage .si-hi, .si-orb-stage .si-hi .atlas-bot { --s: 84px; }
.si-orb-stage .si-hi { background: none; border: 0; box-shadow: none; min-height: 0; padding: 0; margin: 0; font: inherit; color: inherit; border-radius: 50%; animation: si-float 4.6s ease-in-out infinite; }
.si-orb-stage .si-hi:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
@keyframes si-pop { from { opacity: 0; transform: scale(.6) translateY(12px); } }
@keyframes si-float { 50% { transform: translateY(-6px); } }
@keyframes si-shadow { 50% { transform: scale(.82); opacity: .7; } }
.si-orb-stage .si-hi.bot-fire, .si-orb-stage .si-hi[data-heat] { animation: none; }
.si-hi.si-fail .atlas-bot { animation: si-shake 420ms cubic-bezier(.36, .07, .19, .97) 300ms both; }
@keyframes si-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* fields: white with a hairline and their icon; a blue ring when typing */
.si .auth-form { gap: 6px; }
.si .auth-form label { font-size: 13px; font-weight: 500; color: var(--ink); margin-top: 10px; }
.si .label-row { margin-top: 10px; }
.si .label-row label { margin-top: 0; }
.si .label-row .small { font-size: 13px; }
.si .auth-form input:not([type="hidden"]):not([type="checkbox"]), .si .auth-form select { min-height: 46px; border-radius: 12px; border: 1px solid #E4E4E7; background-color: var(--si-field); color: var(--ink);
  font: 400 15px var(--text); padding: 0 14px; box-shadow: 0 1px 2px rgba(24, 24, 27, .04); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease); }
.si .si-card .auth-form input[type="email"]:not([type="hidden"]), .si .si-card .auth-form input[type="password"]:not([type="hidden"]), .si .si-card .auth-form input[name="name"]:not([type="hidden"]), .si .si-card .auth-form input[name="workspace"]:not([type="hidden"]) {
  padding-left: 42px; background-repeat: no-repeat; background-position: 14px center; background-size: 16px 16px; }
.si .auth-form input[type="email"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A1A1AA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3.5' width='12' height='9' rx='2'/%3E%3Cpath d='m2.5 4.5 5.5 4 5.5-4'/%3E%3C/svg%3E"); }
.si .auth-form input[type="password"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A1A1AA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='10' height='7' rx='2'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2'/%3E%3C/svg%3E"); }
.si .auth-form input[name="name"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A1A1AA' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='5.5' r='2.75'/%3E%3Cpath d='M2.75 14c.6-2.6 2.7-4 5.25-4s4.65 1.4 5.25 4'/%3E%3C/svg%3E"); }
.si .auth-form input[name="workspace"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A1A1AA' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5 3.5 3h9l1 3.5'/%3E%3Cpath d='M3 6.5V13h10V6.5'/%3E%3Cpath d='M2.5 6.5h11'/%3E%3C/svg%3E"); }
.si .auth-form input:not([type="hidden"]):not([type="checkbox"]):hover, .si .auth-form select:hover { border-color: #D4D4D8; }
.si .auth-form input:not([type="checkbox"]):focus, .si .auth-form select:focus { outline: none; background-color: var(--si-field-on); border-color: var(--accent); box-shadow: 0 0 0 4px #EEF3FF; }
.si .auth-form input::placeholder { color: #A1A1AA; }
.si .pw-toggle { background: transparent; color: var(--ink-2); border: 0; border-radius: 8px; font: 500 13px var(--text); }
.si .pw-toggle:hover { background: #F4F4F5; color: var(--ink); }

/* buttons: the main one lit and lifted; the others quiet */
.si .auth-form button.wide, .si .auth-form a.btn.wide, .si .si-card form > button, .si .si-card a.btn { min-height: 46px; border-radius: 12px; font: 500 14px var(--text); letter-spacing: 0;
  background: var(--si-btn); color: var(--si-btn-ink); border: 1px solid var(--si-btn); transition: background-color .18s var(--ease), transform .16s var(--ease), box-shadow .18s var(--ease); }
.si .auth-form button.wide:not(.secondary), .si .si-card form > button:not(.secondary) { margin-top: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(24, 24, 27, .2), 0 8px 18px -8px rgba(24, 24, 27, .5); }
.si .auth-form button.wide:hover, .si .si-card form > button:hover, .si .si-card a.btn:hover { background: var(--si-btn-hover); border-color: var(--si-btn-hover); }
.si .auth-form button.wide:active, .si .si-card a.btn:active { transform: scale(.98); }
.si .auth-form button.secondary, .si .si-card a.btn.secondary { background: #FFFFFF; color: var(--ink); border-color: var(--rule); box-shadow: 0 1px 2px rgba(24, 24, 27, .04); }
.si .auth-form button.secondary:hover, .si .si-card a.btn.secondary:hover { background: #FAFAFA; border-color: var(--rule-strong); }
.si .auth-form a.btn.wide { text-decoration: none; display: grid; place-items: center; }
.si-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.si .auth-form .si-alt > button, .si .auth-form .si-alt > a.btn { margin: 0; min-height: 42px; height: 100%; font-size: 13.5px; padding: 0 12px; white-space: nowrap; }
@media (max-width: 400px) { .si-alt { grid-template-columns: 1fr; } }
.si .auth-form .small.quiet, .si .auth-form p.small { color: var(--ink-3); font-size: 12.5px; margin: 6px 0 0; }
.si .si-alt-note { text-align: center; }
.si .auth-form button.busy { position: relative; pointer-events: none; }
.si .auth-form button.busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: si-spin 700ms linear infinite; }
@keyframes si-spin { to { transform: rotate(360deg); } }
.si .or { margin: 20px 0 6px; color: var(--ink-3); font-size: 12.5px; }
.si .banner { border-radius: 12px; font-size: 14px; text-align: left; }
.si .auth-icon { background: #EEF3FF; color: var(--accent); border-radius: 14px; margin-left: auto; margin-right: auto; }
.si .auth-foot { font-size: 14px; color: var(--ink-2); text-align: center; }
.si .check { text-align: left; }

/* sign up: currency and time zone folded into one line */
.si-where { margin-top: 12px; font-size: 13px; color: #52525B; }
.si-where summary { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 13.5px; line-height: 1.4; cursor: pointer; list-style: none; }
.si-where summary::-webkit-details-marker { display: none; }
.si-where summary b { font-weight: 500; color: #18181B; }
.si-where summary .si-change { margin-left: auto; font-weight: 500; color: #2563EB; }
.si-where summary:hover .si-change { color: #1D4ED8; }
.si-where[open] summary .si-change { display: none; }
.si-where .two-fields { margin-top: 4px; }

/* Continue with Google (off for now, main.ts SOCIAL_SIGN_IN) */
.si-social { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 12px; background: #FFFFFF; color: #18181B;
  font: 500 14px var(--text); text-decoration: none; box-shadow: 0 0 0 1px #E4E4E7, 0 1px 2px rgba(24, 24, 27, .06), 0 2px 6px -2px rgba(24, 24, 27, .08); }
.si-social .bm, .si-as .bm { width: 18px; height: 18px; } .si-social .bm svg, .si-as .bm svg { width: 18px; height: 18px; }
.si .si-or { margin: 18px 0 2px; }
.si-as { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #F7F7F8; box-shadow: 0 0 0 1px #EDEDEF; font-size: 14px; color: #52525B; }
.si-as b { font-weight: 500; color: #18181B; word-break: break-all; } .si-as a { margin-left: auto; font-size: 13px; }

/* an invitation's "what happens next", a second card under the first */
.si-aside { width: 100%; max-width: 420px; }
.si-aside .auth-pitch { padding: 24px; border-radius: 20px; background: var(--si-card); color: #18181B; box-shadow: 0 0 0 1px rgba(24, 24, 27, .05), 0 16px 32px -12px rgba(30, 21, 17, .32); }
.si-aside .auth-pitch :is(p, li) { color: #52525B; }

.si-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 16px 20px 24px; font-size: 12.5px; color: var(--si-on-scene-2); }
.si-legal a { color: var(--si-on-scene-2); text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.si-legal a:hover { color: var(--si-on-scene); text-decoration: underline; text-underline-offset: 3px; }
.si ::selection { background: rgba(37, 99, 235, .18); color: var(--ink); }
.si { caret-color: var(--accent); }

/* moving between sign in and sign up: the card and the orb hold still, the pill glides (si.js marks the arrival) */
.si-again .si-card, .si-again .si-orb-stage { animation: none; }
::view-transition-group(si-pill) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-group(si-card) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

@media (max-width: 640px) {
  .si-top { padding: 16px; }
  .si-main { justify-content: flex-start; padding: 0 16px 24px; }
  .si-card { padding: 20px 20px 24px; border-radius: 22px; }
  .si-orb-stage { height: 92px; } .si-orb-stage .si-hi, .si-orb-stage .si-hi .atlas-bot { --s: 64px; }
  .si-card h1 { font-size: 24px; }
  .si .pw-toggle { min-height: 40px; }
  .si .label-row .small { display: inline-flex; align-items: center; min-height: 40px; }
  .si-legal a { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .si-card, .si-orb-stage, .si-orb-stage::after, .si-orb-stage .si-hi, .si-hi.si-fail .atlas-bot { animation: none; } .si * { transition: none !important; } .si .auth-form button.busy::before { animation: none; } }
.si-pg { margin-top: 12px; text-align: left; }
