/* The sign-in page (index.html) and the app's Continue page (app/index.html), over the site's own
   theme.css, type.css and styles.css (the landing page's, linked from ../). A class here must not be one
   styles.css has already (.shot, .foot, .logo, .halo, .caret…): theirs would apply too. */
body { min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; }
.i { width: 16px; height: 16px; flex: none; }
button { font-family: inherit; } /* the site's .cta are links, which inherit; a button doesn't */

/* The card in the window's middle, both ways (the user, 2026-12-04). The 60px above equals the foot's 40px
   and the 20px below, so the middle is the window's own. */
.auth { position: relative; z-index: 1; flex: 1; display: flex; justify-content: center; align-items: center;
  padding: var(--bar-h) var(--gutter) calc(var(--bar-h) - 40px); }

/* The card, as Home's (crates/ui/src/home.rs): the content on the raised ground 4 in; the quiet line under it
   on the card's wash (half the hover layer), no line between; corners = inner + 4. */
.card { width: 100%; max-width: 416px; padding: 4px; border-radius: 20px; background: color-mix(in oklab, var(--surface-hover) 50%, transparent); }
.in { position: relative; padding: 36px 32px 32px; border-radius: 16px; background: var(--surface-card);
  box-shadow: 0 1px 2px var(--shadow-color); display: flex; flex-direction: column; }
.cfoot { margin: 0; padding: 14px 16px 10px; text-align: center; color: var(--text-tertiary); }
.cfoot a, .cfoot button { all: unset; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-default); cursor: pointer; }
.cfoot a:focus-visible, .cfoot button:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; border-radius: 2px; }

/* The app's own icon, as it is (crates/desktop/resources/icon.png at 168px: Indigo's plate, the white mark,
   its squircle), at the card's top centre, going home. */
.app-icon { align-self: center; display: block; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 12px; }
.app-icon img { display: block; width: 100%; height: 100%; }
.app-icon:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

.in h1 { margin: 0; text-align: center; font-size: 24px; line-height: 32px; letter-spacing: -0.02em; font-weight: 600; color: var(--text-primary); text-wrap: balance; overflow-wrap: anywhere; }
.in .sub { margin: 6px 0 0; text-align: center; color: var(--text-tertiary); text-wrap: balance; }
.in .sub strong { color: var(--text-secondary); font-weight: 500; overflow-wrap: anywhere; }
.spin { animation: spin 900ms linear infinite; } @keyframes spin { to { rotate: 1turn; } }
.wait { align-self: center; margin-top: 16px; color: var(--text-tertiary); }
/* While the page asks Yard whether it was opened from a link: nothing for a moment, then the spinner. */
.late { animation: appear 0s 400ms both; } @keyframes appear { from { opacity: 0; } }

.form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.fi { position: relative; display: block; }
.fi .i { position: absolute; left: 12px; top: 12px; color: var(--text-tertiary); pointer-events: none; }
.field { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 0; border-radius: var(--radius-md); background: var(--surface-field); box-shadow: inset 0 0 0 1px var(--border-subtle);
  color: var(--text-primary); font: inherit; font-size: var(--text-paragraph-sm); letter-spacing: var(--text-paragraph-sm--letter-spacing); font-weight: 400; }
.field::placeholder { color: var(--text-subtle); }
.field:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent-primary), 0 0 0 3px var(--accent-halo); }

/* The code's cells, as the app's Otp (crates/ui/src/primitives/otp.rs, shadcn's InputOTP): cells sharing their
   edges in fours, as the mail groups the code, each group's ends rounded, a short dash between; the cell to fill
   next takes the focus edge, with a blinking caret while it's empty; a wrong code turns the edges red. One real
   input lies over them (input-otp's way, which shadcn's is built on), so typing, a paste, the phone's code
   suggestion and a screen reader all meet a plain field. */
.otp { position: relative; display: flex; justify-content: center; --edge: var(--border-default); --ring: var(--accent-primary); }
.otp.wrong { --edge: var(--danger); --ring: var(--danger); }
.otp-in { position: absolute; inset: 0; z-index: 2; width: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; cursor: text; }
/* 40 a cell, the column's width at eight; narrower where the column is (a phone). */
.cells { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; }
.grp { display: flex; flex: 0 1 160px; min-width: 0; }
.cell { position: relative; flex: 1 1 0; min-width: 0; height: 40px; display: grid; place-items: center; background: var(--surface-field);
  border: 1px solid var(--edge); border-left-width: 0; color: var(--text-primary); font-size: var(--text-paragraph-sm); }
.cell:first-child { border-left-width: 1px; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.cell:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.cell.on::after { content: ''; position: absolute; inset: -1px; z-index: 1; border: 1px solid var(--ring); border-radius: inherit; }
.otp-caret { width: 1px; height: 16px; background: var(--text-primary); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dash { flex: none; width: 8px; height: 1px; background: var(--border-strong); }
/* The app's danger.fg for Indigo (Tokens::new(Indigo, scheme).danger.fg, dumped from crates/ui 2026-12-01, as
   dev/mockups/sign-in.html has it). theme.css doesn't carry it yet: crates/ui/examples/web_theme.rs would. */
[data-scheme="light"] { --danger: rgb(184 46 48); } [data-scheme="dark"] { --danger: rgb(241 103 97); }

.cta.wide { width: 100%; height: 40px; }
.cta[disabled] { opacity: .6; pointer-events: none; }
/* Google: our standing button, the G in its own colours (Google's don'ts: no monochrome G, no coloured fill behind
   it, no "Google" alone; a light, dark or neutral fill is theirs to allow). */
.cta .g { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-subtle); font-size: var(--text-label-xs); line-height: 16px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border-faint); }
.help { margin: 0; color: var(--text-tertiary); font-size: var(--text-paragraph-xs); line-height: 16px; text-align: center; text-wrap: balance; }
.help.again { color: var(--text-secondary); font-size: var(--text-paragraph-sm); line-height: 20px; }

/* A refusal, in the page's words: the app's quiet frame, no new colour. */
.note { margin-top: 20px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-control);
  box-shadow: inset 0 0 0 1px var(--border-faint); color: var(--text-secondary); text-align: left; }
.note .i { margin-top: 2px; color: var(--text-tertiary); }

.sfoot { position: relative; z-index: 1; padding: 0 var(--gutter) 24px; max-width: var(--page); width: 100%; margin: 0 auto;
  font-size: var(--text-paragraph-xs); line-height: 16px; color: var(--text-tertiary); }

/* A phone: no card. The content on the page itself, the quiet line under it (the user, 2026-12-04: "on mobile u
   dont need the card"). */
@media (max-width: 640px) {
  .card, .in { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .cfoot { padding: 20px 0 0; } }
