/* Shared look for the member pages (/login, /account) — same tokens as the landing pages. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=DM+Sans:wght@400;500;600&family=Noto+Sans+HK:wght@400;500;700&display=swap");

:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --white: #ffffff;
  --ink: #2f3e35;
  --ink-soft: #55655b;
  --muted: #7a877e;
  --sage: #8a9a8b;
  --sage-soft: #e3eae2;
  --gold: #caa24c;
  --gold-soft: #f4ead2;
  --line: rgba(47, 62, 53, .12);
  --ok: #3f8f5f;
  --bad: #c64a3f;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 1px 2px rgba(47, 62, 53, .05), 0 12px 32px rgba(47, 62, 53, .07);
  --font-body: "DM Sans", var(--cjk, "Noto Sans HK"), system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", var(--cjk, "Noto Sans HK"), system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 480px at 0% -10%, var(--sage-soft), transparent 65%),
              radial-gradient(800px 420px at 100% 0%, var(--gold-soft), transparent 60%), var(--paper);
  min-height: 100vh; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; line-height: 1.15; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(960px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.logo img { width: 32px; height: 32px; object-fit: contain; }
.logo small { color: var(--muted); font-weight: 500; }
.nav-end { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.nav-end a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }

/* buttons + forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  border-radius: 999px; font: inherit; font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  transition: background .2s ease, transform .1s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover:not(:disabled) { background: #3a4c41; }
.btn-small { padding: 8px 14px; font-size: .86rem; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; /* ≥16px stops iOS zooming into the field */
  padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--ink) 18%, transparent); border-color: var(--ink); }
.field small { color: var(--muted); font-size: .8rem; }
.error { color: var(--bad); font-size: .9rem; min-height: 1.4em; }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--sage-soft); font-size: .92rem; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-soft); }
.eyebrow::before { content: ""; width: 20px; height: 1.5px; background: var(--gold); }
footer { padding: 32px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .84rem; text-align: center; }
