/* /signin page: one centred column on the landing tokens, no card (R96). Tap targets 44 px, fields 16 px or larger.
 * The column centres with margin: auto (a block taller than the screen then starts at the top and scrolls, never clipped).
 * Bottom padding is larger than the top so the block sits at about 46 percent of the screen height. */
.si-top { position: static; background: transparent; border-bottom: 0; }
.si-main { display: flex; flex-direction: column; min-height: calc(100vh - var(--qe-header-h)); min-height: calc(100dvh - var(--qe-header-h)); padding: 24px 20px calc(88px + 8vh); }
.si-col { margin: auto; width: 100%; max-width: 400px; }
.si-head h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.15; text-align: center; }
.si-head h1:focus { outline: 2px solid transparent; }
.si-tag { margin: 0 0 20px; text-align: center; color: var(--fg-muted); font-size: var(--qe-fs-md); text-wrap: balance; }
.si-head:has(.si-tag[hidden]) h1 { margin-bottom: 16px; }
.si-col [hidden] { display: none !important; }

/* the landing card separated the email box with a rule (mailverify.css .lp-email); the column has none */
.si-col .lp-email { margin-top: 0; padding-top: 0; border-top: 0; }

/* forms: label, field, checkbox, button, all full width and stacked */
.si-col .login-form { gap: 8px; }
.si-col .login-row { display: block; }
.si-col .login-row .login-btn, .si-col .login-form > .login-btn { width: 100%; height: var(--qe-btn-h-lg); min-height: 44px; }
.si-col input[type=email], .si-col input[type=password] { flex: none; width: 100%; height: var(--qe-btn-h-lg); font-size: var(--qe-fs-md); background: var(--surface); }
.si-col .code-input { background: var(--surface); }
.si-col .login-check { min-height: 44px; }
.si-col .login-btn, .si-col .btn { min-height: 44px; }
.si-col .lp-fine { margin-top: 8px; text-align: center; }
.si-note { margin: 0 0 20px; text-align: center; color: var(--fg-muted); overflow-wrap: anywhere; }
.si-note b { color: var(--fg); }
.si-actions { display: flex; flex-direction: column; gap: 8px; }
.si-actions .login-btn { width: 100%; }
.si-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--fg-muted); font-size: var(--qe-fs-sm); }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.si-switch { width: 100%; height: var(--qe-btn-h-lg); }

/* code entry */
.si-col .login-sent .login-lead { margin: 0 0 12px; }
.si-col .login-sent .login-form { margin: 12px 0 4px; }
.si-col .login-sent .login-fine { text-align: center; }
.si-pair { margin-top: 16px; }
.si-pair > .login-btn, .si-pair > .login-resend { width: 100%; }
.si-pair .login-resend { display: block; margin: 0; }
.si-pair .login-resend .login-btn { width: 100%; }
.si-pair .login-resend .login-fine { display: block; margin-top: 6px; text-align: center; }
.si-col .login-sent > #login-status { margin-top: 12px; }
.si-col .mv-fallback { display: flex; justify-content: center; width: 100%; min-height: 44px; margin-top: 8px; text-align: center; }

/* Flow B takeover */
.si-col .mv.mv-take .mv-back { justify-self: stretch; width: 100%; }
.si-col .mv .mv-copy { height: 44px; }
.si-col .mv .mv-hint > summary { min-height: 44px; }
.si-col .mv .mv-open { min-height: 48px; }
.si-col .mv.mv-take .mv-body > .mv-note { text-align: left; }

@media (max-width: 719px) {
  .si-main { padding-left: 20px; padding-right: 20px; }
  .si-head h1 { font-size: 28px; }
  .si-col .mv-chip { font-size: 15px; }
}
@media (min-width: 720px) {
  .si-head { margin: 0 -48px; }
  .si-pair { flex-direction: row; align-items: flex-start; }
  .si-pair > .login-btn, .si-pair > .login-resend { flex: 1 1 0; width: auto; min-width: 0; }
}
