/* S01〜S05(エレガント固定)。mocks/quiz-member-login.html の <style> をそのまま移したもの。末尾にリンク(<a>)用の補足だけを追加。 */
/* Layout: single centred column on a navy ground with a gold glow at the top; one framed card holds the form. Elegant look is committed dark, so no light variant. */
:root {
  --bg: #0A0F22;
  --surface: #111A36;
  --ink: #EFE6D2;
  --muted: #9AA3C4;
  --line: #2A3558;
  --gold: #C9A45C;
  --gold-hi: #D9B96E;
  --gold-ink: #0A0F22;
  --err: #E3A0B4;
  --ok: #7FD1A8;
  --font-display: "Shippori Mincho B1", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mono: "Share Tech Mono", "Zen Kaku Gothic New", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% -6%, rgba(201,164,92,.2), transparent 55%);
  color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.7; font-weight: 500;
  min-height: 100%; display: flex;
  padding-inline: 16px; padding-block: 32px;
}
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

.wrap { width: 100%; max-width: 420px; margin: auto; display: grid; gap: 28px; }
.head { text-align: center; display: grid; gap: 10px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .32em; color: var(--gold); }
h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.35; letter-spacing: .06em; text-wrap: balance; text-shadow: 0 0 24px rgba(201,164,92,.3); }

.card { background: var(--surface); border: 1px solid rgba(201,164,92,.5); border-radius: 2px; padding: 28px 24px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(201,164,92,.35), 0 24px 48px rgba(0,0,0,.35); }
.card[hidden], .pane[hidden] { display: none !important; }
.pane { display: grid; gap: 20px; }
h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .14em; text-align: center; color: var(--gold-hi); }
.lead { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted); text-align: center; }

.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; color: var(--gold); font-weight: 700; }
.inwrap { position: relative; }
input { width: 100%; background: #0C1330; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .04em; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: var(--muted); opacity: .7; }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,.25); }
input[aria-invalid="true"] { border-color: var(--err); }
.inwrap input { padding-right: 64px; }
.toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); background: transparent; border: 0; padding: 6px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold-hi); cursor: pointer; }
.hint { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--muted); }
.err { margin: 0; min-height: 1.4em; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--err); }
.msg { margin: 0; padding: 10px 12px; font-family: var(--font-display); font-weight: 600; font-size: 13px; border: 1px solid var(--ok); color: var(--ok); background: rgba(127,209,168,.08); border-radius: 2px; }

.btn { width: 100%; padding: 13px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .3em; text-indent: .3em; background: var(--gold); color: var(--gold-ink); border: 1px solid var(--gold); border-radius: 2px; cursor: pointer; transition: background .2s, box-shadow .2s; }
.btn:hover { background: var(--gold-hi); box-shadow: 0 0 20px rgba(201,164,92,.4); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--gold-hi); }
.btn.ghost:hover { background: rgba(201,164,92,.12); box-shadow: none; }
.link { background: transparent; border: 0; padding: 4px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; justify-self: center; }
.link.forgot { justify-self: end; padding: 0; }
.divider { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link:hover { color: var(--gold-hi); }

.name { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-align: center; line-height: 1.4; }
.name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-top: 2px; }

.demo { border: 1px dashed rgba(201,164,92,.55); border-radius: 2px; padding: 10px 14px; display: grid; gap: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--gold-hi); }
.demo b { font-weight: 400; color: var(--ink); }
.foot { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { input, .btn { transition: none; } }

/* 追加: 画面ごとに URL を分けたため、モックの <button> の一部を <a> にした。見た目をそろえる */
a.btn { display: block; text-align: center; text-decoration: none; }
a.link { display: inline-block; }
.btn:disabled { opacity: .6; cursor: progress; }
.pane > .lead + .lead { margin-top: -12px; }
