html, body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background: #fafafa;
  color: #1f2937;
}

a, .btn-link { color: #006bb7; }
.btn-primary { color: #fff; background-color: #1b6ec2; border-color: #1861ac; }
.btn:focus, .btn:active:focus, .form-control:focus { box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb; }

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

#blazor-error-ui {
  background: #b32121;
  color: #fff;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .reload { color: #fff; }

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

/* Blazor's <FocusOnNavigate Selector="h1" /> in Routes.razor adds tabindex="-1"
   and programmatically focuses the page's H1 after each navigation. Recent
   Chromium versions classify that programmatic focus as :focus-visible, so the
   browser's default focus ring paints a box around the heading and the heuristic
   that's supposed to hide it never matches. A tabindex="-1" element is not in
   the Tab order and screen readers navigate headings via their own commands —
   no visual focus indicator is needed. Suppress it outright. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Narrow column used by the account pages (sign-in, the code step, the setup) so the inputs don't span the viewport. */
.auth-form { max-width: 26rem; }
.secret-banner { background-color: #fff4e5; border-left: 4px solid #f0ad4e; padding: .75rem 1rem; margin-bottom: 1rem; }
.secret-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; padding: .5rem; background: #f6f8fa; border: 1px solid #d0d7de; border-radius: 4px; }

/* Two-step sign-in pages: the setup page's QR code and the recovery codes, shown once. */
.auth-form-wide { max-width: 40rem; }
.setup-steps > li { margin-bottom: 1rem; }
.qr-code { width: 12rem; height: 12rem; margin: .75rem 0; }
.qr-code svg { width: 100%; height: 100%; }
.recovery-codes { list-style: none; padding: 0; columns: 2; max-width: 24rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.1rem; }
.recovery-codes li { padding: .15rem 0; }

/* Passkeys on the account pages (js/passkeys.js shows them where the browser can use passkeys). */
.passkey-sign-in { margin-top: 1.25rem; }
.passkey-or { color: #6c757d; margin-bottom: .5rem; }
.passkey-list form { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.passkey-list .form-control-sm { max-width: 12rem; }
