/* Sign in, Choose your password and the error pages (desk and staff), v2.1 (u3-today-files). Prefix si-.
   The first screen anyone sees: the lit cross and "Spectrum CrossCheck", one paper card on the porcelain canvas over a
   faint wash of the Kochi map (decorative). Signed in, an error page keeps the desk shell and shows the same card.
   Page layout only, in @layer pages. Tokens only. */
@layer pages {

/* the ground: signed out there is no bar; the map lies faint under the canvas, clear of the card */
.si-page .bar, .si-page .mtab { display: none; }
.si-page::after { content: none; }          /* the bar's band (components.css): no bar here, and it hid the brand on a phone */
.si-page .page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 56px; }
.si-wash { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 520px at 50% -10%, rgba(255, 255, 255, .7), transparent 70%), var(--canvas); }
.si-wash img { position: absolute; left: 50%; top: 50%; width: max(1600px, 118vw); height: auto; max-width: none; transform: translate(-46%, -50%);
  opacity: .55; -webkit-mask-image: radial-gradient(closest-side, black 52%, transparent 100%); mask-image: radial-gradient(closest-side, black 52%, transparent 100%); }
.si-credit { position: fixed; right: 14px; bottom: 8px; margin: 0; font-size: 11.5px; }
.si-credit a { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-3); text-decoration: none; }
.si-credit a:hover { color: var(--ink); text-decoration: underline; }

/* the brand over the card */
.si-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 22px; font-size: 22px; letter-spacing: -.012em; color: var(--ink); }
.si-brand b { font-weight: 660; font-stretch: 104%; }
.si-brand span { color: var(--ink-3); font-weight: 480; }
.si-cross { width: 34px; height: 34px; flex: none; }

/* the card */
.si-wrap { width: 100%; max-width: 432px; margin: 0 auto; }
.si-card { background: var(--paper); border-radius: 26px; box-shadow: var(--sh-3); padding: 32px 34px 30px; }
.si-card h1 { font-size: 27px; line-height: 1.15; font-weight: 640; letter-spacing: -.02em; font-stretch: 103%; text-wrap: balance; }
.si-sub { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.si-form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.si-form .field input:not([type=checkbox]) { min-height: 46px; font-size: 16px; border-radius: 13px; }
.si-alert { margin: 0; }
.si-remember { display: flex; flex-direction: column; gap: 2px; }
.si-check { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 560; color: var(--ink); cursor: pointer; }
.si-check input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.si-remember .hint { font-size: 12.5px; color: var(--ink-3); padding-left: 32px; line-height: 1.4; }
.si-go { margin-top: 4px; }
.si-go .icon { width: 18px; height: 18px; }
.si-help { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--ink-3); text-wrap: balance; }

/* the error pages: the mark over the words, one way out */
.si-error .si-card { text-align: center; }
.si-gone { display: flex; justify-content: center; margin-bottom: 14px; }
.si-gone .mark--xl { width: 40px; height: 40px; }
.si-error .si-go { margin-top: 22px; }
.page:not(.si-page .page) > .page-main > .si-error { margin-top: 64px; }

/* the staff app's error page (/c/): the way back under the thumb */
.si-staff { max-width: 480px; margin: 0 auto; padding-top: var(--sp-6); text-align: left; }
.si-staff .si-gone { justify-content: flex-start; }
.si-staff-go { margin-top: var(--sp-6); min-height: 60px; }
.si-staff-head { display: flex; align-items: center; min-height: 52px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper); }
.si-staff-head .logo { min-height: 44px; }

/* the 500 page is one file for both: the browser shows the staff half under /c/ */
.si-staff-only { display: none; }
.si-is-staff .si-staff-only { display: block; }
.si-is-staff .si-staff-head.si-staff-only { display: flex; }
.si-is-staff .si-desk-only { display: none; }
.si-is-staff .page { padding: var(--sp-5) var(--gutter); min-height: 0; display: block; }

/* a phone (Daniel signs in on his): the card full width, 52 px controls, 16 px+ text so the phone never zooms */
@media (max-width: 600px) {
  .si-page .page { justify-content: flex-start; padding-top: 28px; }
  .si-brand { font-size: 20px; margin-bottom: 18px; }
  .si-cross { width: 30px; height: 30px; }
  .si-card { padding: 24px 20px 22px; border-radius: 22px; }
  .si-card h1 { font-size: 24px; }
  .si-form .field input:not([type=checkbox]) { min-height: 52px; }
  .si-check { min-height: 48px; }
  .si-go { min-height: 54px; font-size: 17px; }
  .si-wash img { width: 1100px; transform: translate(-50%, -38%); opacity: .42; }
  .si-credit { position: static; text-align: center; margin-top: 14px; }
}
}

/* the invite flow (ops/invites.py): Forgot password? under the password, the locked email, a second way out */
@layer pages {
.si-forgot { margin: -8px 0 0; text-align: right; font-size: 14px; }
.si-forgot a, .si-help a, .si-alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 560; }
.si-alt { margin-top: 6px; text-align: center; font-size: 14px; }
.si-note { margin-top: 18px; }
.si-form .field input.si-locked { background: var(--paper-2); color: var(--ink-2); box-shadow: none; cursor: default; }
}
