/* BAXU ID hosted pages. Brand: #0D5AA3 -> #1D90FF, Be Vietnam Pro (self-hosted, SIL OFL). */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(/static/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(/static/fonts/be-vietnam-pro-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url(/static/fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url(/static/fonts/be-vietnam-pro-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(/static/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(/static/fonts/be-vietnam-pro-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(/static/fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(/static/fonts/be-vietnam-pro-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue-900: #0D5AA3;
  --blue-500: #1D90FF;
  --grad: linear-gradient(135deg, var(--blue-900), var(--blue-500));
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --text: #0F1B2D;
  --muted: #5A6B82;
  --line: #D9E1EC;
  --field: #FFFFFF;
  --focus: #1D90FF;
  --danger: #C62828;
  --danger-bg: #FDECEC;
  --info-bg: #EAF3FF;
  --radius: 12px;
  --font: "Be Vietnam Pro", "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1220;
    --surface: #111C2E;
    --text: #E8EEF7;
    --muted: #9AABC2;
    --line: #24344D;
    --field: #0D1728;
    --danger: #FF8A80;
    --danger-bg: #3A1618;
    --info-bg: #10263F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 16px/1.55 var(--font);
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--blue-500) 18%, transparent), transparent 70%),
    var(--bg);
}
.shell { max-width: 440px; margin: 0 auto; padding: 32px 16px 24px; display: flex; flex-direction: column; min-height: 100dvh; }
.brand { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 8px 0 24px; }
.wordmark {
  font-weight: 700; font-size: 28px; letter-spacing: 0.08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge { font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: #fff; background: var(--grad); border-radius: 6px; padding: 2px 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; box-shadow: 0 10px 30px -18px rgba(13, 90, 163, 0.45); outline: none; }
h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
h2 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
h3 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-size: 14px; font-weight: 500; }
input[type=email], input[type=password], input[type=text] {
  font: inherit; color: var(--text); background: var(--field);
  border: 1px solid var(--line); border-radius: 10px; min-height: 48px; padding: 10px 14px; width: 100%;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent); outline-offset: 2px; }
input[aria-invalid=true] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-900); flex: none; }
.check label { font-weight: 400; }
.btn {
  font: 600 15px/1.2 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: filter .15s ease, background-color .15s ease;
}
.btn[disabled] { opacity: .6; cursor: progress; }
.primary { background: var(--grad); color: #fff; }
.primary:hover { filter: brightness(1.07); }
.secondary { background: transparent; color: var(--blue-900); border-color: var(--line); }
@media (prefers-color-scheme: dark) { .secondary { color: #8CC4FF; } }
.secondary:hover, .social:hover { background: color-mix(in srgb, var(--blue-500) 8%, transparent); }
.social { background: var(--surface); color: var(--text); border-color: var(--line); }
.apple { background: #000; color: #fff; border-color: #000; }
.apple:hover { background: #1a1a1a; }
.ghost { background: transparent; color: var(--muted); }
.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); margin-top: 12px; }
.link { font: 500 14px var(--font); background: none; border: 0; padding: 6px 0; color: var(--blue-900); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .link { color: #8CC4FF; } }
.row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
.stack { display: grid; gap: 10px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.notice { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.switch { text-align: center; margin: 16px 0 0; }
.alert { background: var(--danger-bg); color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.info { background: var(--info-bg); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.scopes, .list { padding-left: 20px; margin: 6px 0 12px; }
.scopes li, .list li { margin: 4px 0; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.qr svg { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 8px; }
.turnstile { margin-top: 12px; display: flex; justify-content: center; }
.foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; font-size: 13px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.foot a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot a[aria-current] { color: var(--text); font-weight: 600; }
.foot a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 380px) { .card { padding: 22px 16px; } .actions { grid-template-columns: 1fr; } }
section > .btn + form, section > a.btn + form { margin-top: 16px; }
section > .btn, section > a.btn { margin-top: 4px; }

.consent-new { margin: 4px 0 12px; }
.legal { line-height: 1.65; }
.legal h2 { margin-top: 28px; }
.legal ul, .legal ol { padding-left: 22px; }
select, textarea { font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.check a { color: var(--blue-900); }
@media (prefers-color-scheme: dark) { .check a { color: #8CC4FF; } }
