/* The sign-in page. Builds on styles.css (tokens, buttons, inputs). */
.signin { width: min(400px, 100% - 32px); margin: 0 auto; padding: 12vh 0 48px; }
.signin-logo { display: block; height: 34px; width: auto; }
.signin-sub { margin: 10px 0 28px; color: var(--muted); font-size: 13.5px; }
.signin-card { padding: 28px 28px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.signin-card h1 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; text-wrap: balance; }
.signin-card .field { margin: 16px 0 0; }
.signin-card .btn { width: 100%; margin-top: 22px; }
.signin-note { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.signin-note strong { font-weight: 620; color: var(--ink); }
.signin-error { margin-top: 14px; }
.signin-error[hidden] { display: none; }   /* .error is a flex row, which would show it empty */
.signin-foot { margin: 18px 2px 0; color: var(--faint); font-size: 12.5px; text-wrap: pretty; }

/* Two-step sign-in (carbon/two_step.py): the code from the app, setting the app up, and the recovery codes */
/* the spacing after the last digit is empty: an indent the same size centers the digits themselves. input. so it
   outranks styles.css's input[type=text], which had held it at 14px */
input.code-input { height: 46px; font-family: var(--font-mono); font-size: 22px; letter-spacing: .22em; text-indent: .22em; font-variant-numeric: tabular-nums; text-align: center; }
.signin-alt { display: block; margin: 14px auto 0; font-size: 13px; }
.setup-card { width: auto; }
.setup-steps { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.setup-steps li + li { margin-top: 10px; }
.setup-steps li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
/* the QR code stays dark on white in either theme, or phones can't read it */
.qr { width: 176px; margin: 12px 0 8px; padding: 10px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.setup-key summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.setup-key code { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; margin: 16px 0 0; padding: 14px 16px 14px 36px;
  border-radius: var(--r-md); background: var(--surface-2); font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.recovery-codes li::marker { color: var(--faint); font-size: 12px; }
.codes-acts { display: flex; gap: 8px; margin-top: 12px; }
.codes-acts .btn { flex: 1; margin-top: 0; }
/* the setup screen's QR code and its key, centered in the card (Mikey, Nov 5 2026: "Make sure everything is centered
   properly on the 2fa screen") */
.qr-block { display: grid; justify-items: center; gap: 4px; margin: 14px 0 6px; text-align: center; }
.qr-block .qr { margin: 0; }
.qr-block .setup-key summary { position: relative; display: inline-block; list-style: none; padding: 4px 2px; text-underline-offset: 3px; }
/* 28px of link, clickable over 40: 4px up to the QR code's edge (never onto it), 8px down into the space below */
.qr-block .setup-key summary::after { content: ""; position: absolute; inset: -4px 0 -8px; }
.qr-block .setup-key summary::-webkit-details-marker { display: none; }
.qr-block .setup-key summary:hover { text-decoration: underline; }
.qr-block .setup-key code { margin-top: 8px; }
.setup-steps + .qr-block + .setup-steps { margin-top: 10px; }

/* The two-step screens, centered as one column: logo, title, words, the steps, the QR code, the code box and the
   footer all on the page's center line (Mikey, Nov 5 2026: "the qr screen needs better centering"). The sign-in and
   password screens stay left-aligned like the rest of Carbon's forms. */
.signin.centered .signin-logo { margin: 0 auto; }
.signin.centered .signin-sub, .signin.centered .signin-foot { text-align: center; }
.signin.centered .signin-card h1, .signin.centered .signin-note { text-align: center; text-wrap: balance; }
.signin.centered .signin-card .label { display: block; text-align: center; }
.signin.centered .signin-error { justify-content: center; text-align: center; }
.signin.centered .setup-steps { padding: 0; list-style-position: inside; text-align: center; }
.signin.centered .setup-steps li { text-wrap: balance; }
.signin.centered .setup-steps li::marker { font-weight: 600; color: var(--ink); }
