/* Identity uses the default Unfold palette and its locally served Inter fonts. */
:root {
  color-scheme: light;
  --auth-background: oklch(98.5% .002 247.839);
  --auth-surface: #fff;
  --auth-muted-surface: oklch(96.7% .003 264.542);
  --auth-border: oklch(92.8% .006 264.531);
  --auth-text: oklch(44.6% .03 256.802);
  --auth-heading: oklch(21% .034 264.665);
  --auth-muted: oklch(55.1% .027 264.364);
  --auth-primary: oklch(55.8% .288 302.321);
  --auth-primary-hover: oklch(49.6% .265 301.924);
  --auth-error: #a41c28;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--auth-text);
  background: var(--auth-background);
  font-size: 14px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 48px 24px; -webkit-font-smoothing: antialiased; }
.auth-layout { width: 100%; max-width: 480px; min-width: 0; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.brand-symbol { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--auth-primary); color: white; }
.brand-copy { display: flex; flex-direction: column; }
.brand-name { color: var(--auth-heading); font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
.brand-caption { color: var(--auth-muted); font-size: 12px; }
.card { background: var(--auth-surface); border: 1px solid var(--auth-border); border-radius: 12px; padding: 32px; box-shadow: 0 2px 4px #11182704; overflow-wrap: anywhere; }
h1 { color: var(--auth-heading); margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
p { margin: 0 0 24px; }
form { margin: 0; }
label { display: block; margin: 20px 0 8px; color: var(--auth-heading); font-weight: 500; }
label input { margin-top: 8px; }
input { display: block; width: 100%; min-height: 46px; padding: 10px 12px; background: var(--auth-surface); color: var(--auth-heading); border: 1px solid #8994a4; border-radius: 6px; font: inherit; font-size: 16px; line-height: 24px; transition: border-color .15s; }
input:hover { border-color: var(--auth-muted); }
button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; margin-top: 24px; border: 0; border-radius: 6px; padding: 11px 16px; background: var(--auth-primary); color: white; font: inherit; font-weight: 500; cursor: pointer; transition: background-color .15s; }
button:hover, .primary-link:hover { background: var(--auth-primary-hover); }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--auth-primary); outline-offset: 3px; }
a { color: var(--auth-primary); text-underline-offset: 3px; }
.auth-hint { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 14px; border-radius: 6px; background: var(--auth-background); font-size: 13px; }
.auth-hint svg { flex-shrink: 0; margin-top: 2px; color: var(--auth-muted); }
.auth-hint p { margin: 0; }
.auth-footer { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; color: var(--auth-muted); font-size: 12px; text-align: center; }
.auth-footer p { margin: 0; }
.preview-badge { display: inline-flex; padding: 3px 9px; border: 1px solid var(--auth-border); border-radius: 6px; background: var(--auth-muted-surface); font-weight: 500; }
.error, .errorlist { color: var(--auth-error); }
.card > .error { margin: 20px 0 0; padding: 12px 14px; border: 1px solid #fecdd3; border-radius: 6px; background: #fff1f2; }
.qr { display: block; width: 240px; height: 240px; max-width: 100%; margin: 20px auto; background: white; }
details { margin: 16px 0; }
summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--auth-heading); font-weight: 500; }
code { overflow-wrap: anywhere; font-size: 14px; }
.codes { padding: 16px; list-style: none; background: var(--auth-muted-surface); border: 1px solid var(--auth-border); border-radius: 6px; line-height: 1.9; }
form + p { margin: 20px 0 0; }
.helptext { display: block; margin-top: 8px; color: var(--auth-muted); font-size: 13px; }
.helptext ul, .errorlist { padding-left: 20px; }
.error-page { text-align: center; }
.error-symbol { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 12px; background: var(--auth-muted-surface); color: var(--auth-primary); }
.error-code { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--auth-muted); }
.error-description { margin-bottom: 28px; }
.primary-link { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border-radius: 6px; padding: 12px 16px; color: white; background: var(--auth-primary); text-decoration: none; font-weight: 500; }
.error-help { color: var(--auth-muted); font-size: 13px; margin: 24px 0 0; }
@media (max-width: 480px) {
  body { padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
  .card { padding: 24px; }
  .brand { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { input, button { transition: none; } }
