:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --surface: #fffdf9;
  --surface-soft: #f8f5ef;
  --ink: #1c2925;
  --ink-soft: #4d5d57;
  --muted: #78857f;
  --line: #dedfd8;
  --line-strong: #c9cec6;
  --accent: #326b5b;
  --accent-strong: #245448;
  --accent-soft: #dfebe5;
  --red: #b74d4d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 5%, rgba(82, 129, 111, .2), transparent 22rem),
    var(--paper);
}

.auth-card {
  width: min(100%, 430px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(31, 42, 37, .19);
}
.auth-mark {
  width: 48px;
  height: 48px;
  display: block;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 16px;
  color: transparent;
  background: var(--surface) url("/static/nora-logo.png") center / cover no-repeat;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 15%, transparent);
  font-size: 0;
}
.eyebrow { margin: 18px 0 7px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
form { margin-top: 22px; }
label, .token-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
input, .token-value {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  outline: none;
  font: 600 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.token-label { margin-top: 22px; }
.token-value { display: block; overflow-wrap: anywhere; user-select: all; }
.primary-action, .secondary-action {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary-action { border: 0; color: #fff; background: var(--accent); }
.primary-action:hover { background: var(--accent-strong); }
.primary-action:disabled { cursor: wait; opacity: .58; }
.secondary-action { border: 1px solid var(--line); color: var(--accent); background: var(--surface-soft); }
.secondary-action:hover { border-color: var(--line-strong); }
.auth-error { min-height: 20px; margin-top: 8px; color: var(--red); font-size: 10px; line-height: 1.4; }
.auth-footnote { margin-top: 12px; color: var(--muted); font-size: 9px; line-height: 1.45; }

button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent); outline-offset: 2px; }

@media (min-width: 520px) {
  .auth-card { padding: 28px; }
}
