/* Signing in and your account: the door (templates/partials/sign_in_page.html),
   the pages drawn before the page frame; two-step sign-in's own parts, on
   the door and on Your account; and Your account's layout. Kit tokens only. */

/* The door. Left, the page itself: the tool's mark small at the top, the
   company's name with at most one sentence under it, and behind them the
   emblem, far larger than the side and faint. Right, the page's own area,
   the whole height, with its panel floating over it as a sheet. */
.si-bar { position: fixed; z-index: 3; inset: 0 0 auto; height: 2px; }
.si { display: grid; grid-template-columns: minmax(0, 7fr) minmax(480px, 5fr); min-height: 100vh; }
.si-brand { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-40); padding: var(--space-56); }
.si-mark { display: block; width: 132px; line-height: 0; color: var(--ink); }
.si-mark svg { display: block; width: 100%; height: auto; }
.si-hello { display: flex; flex-direction: column; gap: var(--space-8); max-width: 520px; }
.si-powered { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-6); }
/* the vendor's mark, 16px high, in the line's muted ink */
.si-powered-mark { display: inline-flex; line-height: 0; color: var(--ink3); }
.si-powered-mark svg { display: block; height: 16px; width: auto; }

/* The emblem's box keeps the emblem's own proportions (1319 by 821) and is
   more than twice as wide as the side it lies behind, centred on it, so the
   emblem's middle shows and the rest runs off the side's four edges. The
   emblem is drawn faint; the piece over it catches the pointer's light and
   is cut to the emblem's four shapes, so the light falls on the emblem and
   not on the page around it. The cut stands in for the kit, whose light
   falls on a whole piece and is not cut to a shape. */
.si-art { position: absolute; z-index: -1; top: 50%; left: 50%; width: 230%; aspect-ratio: 1319 / 821; translate: -50% -50%; pointer-events: none; }
.si-emblem { display: block; width: 100%; height: 100%; color: var(--g-hover); }
.si-emblem-light { position: absolute; inset: 0;
  clip-path: polygon(35.927% 61.892%, 35.927% 100%, 0.307% 100%, 35.927% 61.892%, 0.152% 61.892%, 0.152% 25.072%, 35.927% 25.072%, 59.324% 0%, 59.324% 36.94%, 35.927% 61.892%,
    64.28% 61.892%, 64.28% 25.072%, 99.846% 25.072%, 99.846% 61.892%, 64.28% 61.892%, 99.899% 100%, 64.28% 100%, 64.28% 61.892%); }

.si-panel { --ground: var(--g1); background-color: var(--ground); display: flex; align-items: center; justify-content: center; padding: var(--space-56) var(--space-40); }
.si-form { --ground: var(--g2); width: min(440px, 100%); padding: var(--space-32); border-radius: var(--radius-16); box-shadow: var(--depth-3); display: flex; flex-direction: column; gap: var(--space-24); }
.si-arrive { animation: db-sheet-in var(--dur-420) var(--ease-settle); }
.si-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); }
.si-head > * { margin: 0; }
.si-fields { display: flex; flex-direction: column; gap: var(--space-16); margin: 0; }
.si-fields p { margin: 0; }
.si-go { justify-content: center; height: var(--h-36); margin-top: var(--space-8); text-decoration: none; }
.si-fields .si-go, .si-form > .si-go, .ts > .si-go { width: 100%; }
.si-code { height: var(--row); font-family: var(--font-mono); font-size: var(--fs-title-s); letter-spacing: 0.2em; }
.si-again { margin: 0 0 0 calc(var(--space-10) * -1); align-self: flex-start; }

/* Two-step sign-in: the three steps, the code to scan beside the key, and
   the recovery codes once it is on */
.ts { display: flex; flex-direction: column; gap: var(--space-20); }
.ts p { margin: 0; }
.ts-steps { counter-reset: ts; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-10); color: var(--ink2); }
.ts-steps li { counter-increment: ts; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-10); align-items: baseline; }
.ts-steps li::before { content: counter(ts); width: 24px; height: 24px; border-radius: 50%; background: var(--g-press); color: var(--ink); display: grid; place-items: center; font-size: var(--fs-label); font-weight: 600; font-variant-numeric: tabular-nums; align-self: start; }
.ts-scan { display: flex; align-items: center; gap: var(--space-20); flex-wrap: wrap; }
.ts-qr { flex: none; line-height: 0; padding: var(--space-8); border-radius: var(--radius-12); background: var(--qr-ground); }
.ts-qr svg { display: block; width: 148px; height: 148px; }
.ts-scan .db-field { flex: 1 1 160px; }
.ts-key { font-family: var(--font-mono); font-size: var(--fs-body); line-height: 1.6; letter-spacing: 0.06em; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.ts-codes { list-style: none; margin: 0; padding: var(--space-16); border-radius: var(--radius-12); background: var(--g-press); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10) var(--space-20); }
/* a code is never broken across two lines */
.ts-codes code { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.02em; white-space: nowrap; user-select: all; }

/* Your account (templates/account/index.html), on the page frame: who you
   are and signing out across the top; under it two-step sign-in as a split
   panel, its swath the whole height, beside your password in a block. */
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); }
.ac-who { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-8) var(--space-12); min-width: 0; }
.ac-who .db-title-s { overflow-wrap: anywhere; margin-right: var(--space-4); }
.ac-out { display: flex; align-items: center; gap: var(--space-16); }
.ac-signout { margin: 0; }
.ac-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-24); align-items: start; }
.ac-cols p { margin: 0; }
.ac-two .db-split-main { flex: 5 1 240px; padding: var(--space-24); }
.ac-two .db-split-rest { flex: 6 1 300px; align-items: stretch; gap: var(--space-16); padding: var(--space-24); }
.ac-two-name { display: flex; flex-direction: column; gap: var(--space-12); margin-top: auto; }
/* Stands in for the kit, whose ring comes in one size: the recovery codes
   left, the page's one figure, in a ring large enough to hold it at the
   figure size */
.ac-codes { display: flex; align-items: center; gap: var(--space-16); margin-top: auto; }
.ac-codes .db-ring { width: 88px; height: 88px; font-size: var(--fs-figure); font-weight: 500; letter-spacing: -0.025em; }
.ac-pass { padding: var(--space-24); }
.ac-pass .db-status { white-space: normal; font-size: var(--fs-body); }
