[hidden] { display: none !important; }
.v2-auth-card { min-width: 0; }
.v2-login-shell { min-height: calc(100svh - 100px); }
.v2-auth-card input { width: 100%; box-sizing: border-box; min-width: 0; }
.v2-auth-card label { font-weight: 600; }
.v2-auth-card fieldset { margin: 0; padding: 12px; border: 1px solid var(--line, #ddd); border-radius: 12px; }
.v2-auth-card fieldset label { display: inline-flex; gap: 8px; align-items: center; margin: 4px 16px 4px 0; }
.v2-auth-card input[type="radio"] { width: auto; min-height: 24px; }
.v2-auth-card .v2-button-row { flex-wrap: wrap; gap: 12px; }
.v2-auth-card p { overflow-wrap: anywhere; }
.v2-auth-card input:focus-visible, .v2-auth-card button:focus-visible, .v2-auth-card a:focus-visible { outline: 3px solid #41765a; outline-offset: 3px; }
@media (max-width: 420px) { .v2-login-shell { padding-inline: 16px; } .v2-auth-card { padding: 24px 18px; } }

/* Calm, compact form rhythm; field labels, guidance and errors stay together. */
.v2-auth-card { width: min(100%, 420px); gap: 16px; padding-block: 12px; }
.v2-auth-card h1 { margin: 0; font-size: 28px; line-height: 1.35; letter-spacing: -.03em; }
.v2-auth-card > .v2-muted { margin: 0; font-size: 14px; line-height: 1.8; }
.v2-auth-card .v2-eyebrow { margin: 0 0 4px; }
.v2-auth-card #auth-status { margin: 0; color: var(--v2-muted); font-size: 13px; line-height: 1.7; }
.v2-auth-card #auth-status:empty { display: none; }
.v2-auth-card #auth-content { gap: 16px; }
.v2-auth-card form { gap: 24px; }
.v2-auth-card .auth-field { display: grid; gap: 8px; position: relative; }
.v2-auth-card .auth-field label { margin: 0; font-size: 14px; line-height: 1.5; }
.auth-field-hint { margin: 0; color: var(--v2-muted); font-size: 12px; line-height: 1.7; }
.auth-field-error { margin: 0; color: #a63232; font-size: 13px; line-height: 1.65; }
.v2-auth-card input[aria-invalid="true"] { border-color: #a63232; }
.auth-password-control { display: flex; gap: 8px; align-items: center; min-width: 0; }
.auth-password-control input { flex: 1; }
.v2-auth-card .auth-password-toggle { flex: 0 0 48px; min-height: 48px; padding: 0 4px; border-radius: 10px; background: #edf0e9; color: var(--v2-ink); font-size: 12px; }
.auth-password-count { justify-self: end; color: var(--v2-muted); font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.auth-steps { display: flex; justify-content: space-between; gap: 12px; list-style: none; padding: 0; margin: 8px 0 10px; }
.auth-steps li { display: flex; align-items: center; gap: 6px; color: var(--v2-muted); font-size: 12px; }
.auth-step-number { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--v2-line); border-radius: 50%; font-size: 11px; }
.auth-steps [aria-current="step"] { color: var(--v2-ink); font-weight: 600; }
.auth-steps [aria-current="step"] .auth-step-number { background: var(--v2-ink); color: white; border-color: var(--v2-ink); }
.auth-steps .is-complete .auth-step-number { background: #edf0e9; color: #365e45; }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--v2-muted); padding-top: 4px; }
.auth-links a { color: var(--v2-ink); text-underline-offset: 4px; }
.v2-auth-card > .v2-help { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--v2-line); color: var(--v2-muted); font-size: 12px; line-height: 1.8; }
.v2-auth-card > .v2-help summary { cursor: pointer; }
@media (max-width: 420px) {
  .v2-auth-card { padding: 8px 0; }
  .v2-auth-card h1 { font-size: 26px; }
  .auth-steps { gap: 6px; }
  .auth-steps li { font-size: 11px; gap: 4px; }
}
