/* Sign-in / sign-up on the patterned background: brand side with the claim, the form on a solid card. */
.auth { display: grid; min-height: 100vh; }
@media (min-width: 992px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.auth__brand { display: grid; align-content: center; gap: var(--space-5); padding: var(--space-5) var(--space-4); }
.auth__brand-logo { width: min(12rem, 100%); }
.auth__brand-text { display: none; }
.auth__brand-title { font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
@media (min-width: 992px) {
  .auth__brand { padding: var(--space-10) var(--space-9); }
  .auth__brand-logo { width: min(22rem, 100%); }
  .auth__brand-text { display: grid; gap: var(--space-4); max-width: 28rem; }
  .auth__brand-title { font-size: var(--text-4xl); }
}

.auth__panel { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-5); padding: var(--space-4); }
@media (min-width: 768px) { .auth__panel { padding: var(--space-6) var(--space-8); } }
.auth__tools { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-3); }
.auth__form { width: 100%; max-width: 28rem; margin-inline: auto; align-self: center; }
.auth__card { padding: var(--space-6); }
.auth__heading { margin-bottom: var(--space-2); font-size: var(--text-3xl); }
.auth__alt { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); }
.auth__footer { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }

/* TOTP step (U-0017): QR code on a white tile in both themes, the key, backup codes, sign-out link. */
.qr { display: grid; justify-items: center; }
.qr svg path { stroke: var(--color-qr-ink); }
.qr svg { width: 12rem; height: auto; max-width: 100%; border-radius: var(--radius-control); background: var(--color-qr-tile); }
.mfa-key { font-family: var(--font-mono); word-break: break-all; }
.mfa-backup > summary { cursor: pointer; margin-bottom: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); }
.backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); }
.backup-codes code { font-size: var(--text-lg); letter-spacing: 0.05em; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* Organisation chooser at sign-in (U-0019): one radio row per organisation (.choice itself lives in field.css). */
.choice-list { border: 0; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
