:root {
  --auth-bg: #fafafa;
  --auth-ink: #141414;
  --auth-muted: #6e6e6e;
  --auth-line: #e6e6e6;
  --auth-surface: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--auth-bg);
  color: var(--auth-ink);
  font-family: var(--font-body, "Noto Sans SC", sans-serif);
}

.auth-top {
  width: var(--shell-wide, min(1320px, calc(100% - 48px)));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--auth-line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--auth-ink);
  text-decoration: none;
  line-height: 1.2;
}

.brand strong { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.brand span { font-size: 11px; letter-spacing: .16em; opacity: .52; }
.auth-return { color: var(--auth-ink); font-size: 14px; text-decoration: none; }
.auth-return:hover { color: var(--auth-muted); }

.auth-shell {
  width: min(620px, calc(100% - 40px));
  margin: clamp(56px, 10vw, 120px) auto 96px;
}

.auth-card { background: transparent; }
.auth-card[hidden] { display: none !important; }

.brand-stamp {
  margin: 0 0 22px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 14px;
  letter-spacing: .22em;
  opacity: .48;
}

h1 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
}

.brand-slogan {
  max-width: 34ch;
  margin: 26px 0 8px;
  font-size: 16px;
  line-height: 1.7;
}

.lede {
  max-width: 38ch;
  margin: 0 0 32px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tabs { display: flex; gap: 20px; margin: 0 0 22px; border-bottom: 1px solid var(--auth-line); }
.tabs button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 12px;
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.tabs button.is-active { border-color: var(--auth-ink); color: var(--auth-ink); }

.google-sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--auth-ink);
  background: var(--auth-ink);
  color: var(--auth-surface);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .18s ease, transform .18s ease;
}
.google-sign-in:hover { color: var(--auth-surface); opacity: .82; }
.google-sign-in:active { transform: translateY(1px); }
.google-sign-in span { font-size: 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--auth-muted); font-size: 12px; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--auth-line); }

form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 13px; color: var(--auth-ink); }
input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--auth-line);
  border-radius: 0;
  padding: 11px 0;
  background: transparent;
  color: var(--auth-ink);
  font: inherit;
  outline: none;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--auth-ink); }
button[type="submit"], .actions button {
  width: fit-content;
  min-height: 46px;
  border: 1px solid var(--auth-ink);
  border-radius: 0;
  padding: 0 22px;
  background: var(--auth-ink);
  color: var(--auth-surface);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 48px; }
.actions .ghost { background: transparent; color: var(--auth-ink); }
.error { margin: 0; color: #8b3329; font-size: 13px; }
.success { color: #275f3c; }
.membership-state { display: inline-block; margin: 22px 0 0; color: var(--auth-muted); font-size: 13px; }
.membership-state.is-member { color: var(--auth-ink); }
h2 { margin: 0 0 18px; font-family: var(--font-display, Georgia, serif); font-size: 30px; font-weight: 500; }
.order { padding: 16px 0; border-top: 1px solid var(--auth-line); font-size: 14px; }
.order button {
  margin-top: 10px;
  border: 0;
  border-bottom: 1px solid var(--auth-ink);
  padding: 0 0 2px;
  background: transparent;
  color: var(--auth-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.order-journey {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--auth-line);
}
.journey-card {
  padding: 18px 0;
  border-top: 1px solid var(--auth-line);
}
.journey-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.journey-event {
  padding: 12px 0;
}
.journey-event p {
  margin: 5px 0;
  color: var(--auth-muted);
  line-height: 1.7;
}
.journey-event small { color: var(--auth-muted); }
.admin-panel { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--auth-line); }
.admin-panel p { max-width: 48ch; color: var(--auth-muted); font-size: 14px; line-height: 1.7; }
.account-membership,
.account-concierge,
.account-requests {
  margin: 36px 0;
  padding-top: 28px;
  border-top: 1px solid var(--auth-line);
}
.membership-account-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 38px;
  font-weight: 500;
}
.membership-account-card p,
.membership-account-card li,
.request-row p,
.request-row span,
.request-row small {
  color: var(--auth-muted);
  line-height: 1.65;
}
.membership-account-card ul {
  margin: 8px 0 20px;
  padding-left: 18px;
}
.membership-account-card h4 {
  margin: 22px 0 8px;
}
.request-row {
  padding: 16px 0;
  border-top: 1px solid var(--auth-line);
}
.request-row strong,
.request-row span {
  display: block;
}

@media (max-width: 640px) {
  .auth-top { width: min(100% - 32px, 1320px); min-height: 64px; }
  .auth-shell { width: min(100% - 32px, 620px); margin-top: 56px; }
  h1 { font-size: 44px; }
  button[type="submit"], .actions button { width: 100%; }
}
