:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #0e1118;
  --text: #f3f0e8;
  --muted: #aaa599;
  --line: #292a2d;
  --gold: #d0a05b;
  font-family: Manrope, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }

.masthead {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 20px max(24px, env(safe-area-inset-left));
}
.wordmark { display: flex; align-items: center; gap: 4px; min-height: 44px; font-size: 22px; font-weight: 750; letter-spacing: -1px; }
.wordmark-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; align-self: flex-end; margin-bottom: 12px; }
#language { margin-left: auto; min-width: 44px; min-height: 44px; padding: 8px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }

.account-layout {
  flex: 1;
  display: grid;
  align-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px max(16px, env(safe-area-inset-right)) 36px max(16px, env(safe-area-inset-left));
}
.form-panel { min-width: 0; background: linear-gradient(145deg, #141720, var(--panel) 55%); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4.5vw, 32px); box-shadow: 0 16px 60px #0002, inset 0 1px 0 #ffffff04; }
.eyebrow { margin: 0 0 14px; font: 10px ui-monospace, SFMono-Regular, monospace; letter-spacing: 2px; color: var(--gold); }
h2 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 600; letter-spacing: -.7px; }
.form-description { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 10px 0 24px; }
.google-button, .primary-button { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; width: 100%; padding: 12px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s; }
.google-button { background: #f2f0eb; color: #272721; border: 1px solid #f2f0eb; }
.google-button:not(:disabled):hover { background: #fff; }
.google-button svg { flex: none; width: 18px; height: 18px; }
.primary-button { border: 1px solid var(--gold); background: var(--gold); color: #16120b; margin-top: 16px; }
.primary-button:not(:disabled):hover { background: #e5b871; border-color: #e5b871; }
.divider { display: flex; align-items: center; gap: 14px; color: #88857e; font-size: 11px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
input { width: 100%; min-width: 0; height: 52px; background: var(--bg); color: var(--text); border: 1px solid #323439; border-radius: 9px; padding: 0 14px; font-size: 16px; outline: none; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #d0a05b12; }
input::placeholder { color: #706f70; }
.field-note { font-size: 11px; line-height: 1.8; color: #969189; margin: 12px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
.notice { border-left: 2px solid var(--gold); background: #d0a05b0a; padding: 12px 14px; margin: 0 0 20px; font-size: 12px; line-height: 1.7; color: #dfc391; overflow-wrap: anywhere; }
.notice[data-error] { border-color: #ca806c; color: #e5b2a4; background: #ca806c0a; }
.form-footer { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.form-footer a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 12px; color: #c4bfb3; }
.form-footer a:last-child { font-size: 11px; color: #929086; }
.form-footer a:hover { color: var(--gold); }
.text-button { border: 0; background: none; color: var(--muted); min-height: 44px; padding: 6px 0; font-size: 11px; }
.text-button:not(:disabled):hover { color: var(--gold); }
.code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.sent-to { font-size: 12px; color: var(--text); overflow-wrap: anywhere; margin: 0 0 16px; }
#code { letter-spacing: clamp(4px, 2vw, 8px); font: 24px ui-monospace, SFMono-Regular, monospace; height: 60px; }
.member-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px 0; margin-block: 8px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.member-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d0a05b40; border-radius: 12px; color: var(--gold); background: #d0a05b0c; font-size: 20px; font-weight: 600; overflow: hidden; }
.member-details { min-width: 0; flex: 1; padding-top: 1px; }
.member-name { font-size: 17px; line-height: 1.5; font-weight: 600; margin: 0 0 5px; overflow-wrap: anywhere; }
.member-email { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.logout-button { width: 100%; margin-top: 10px; }
.page-footer { width: 100%; max-width: 1120px; margin-inline: auto; padding: 12px max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10px; color: #88857e; }
.page-footer a { min-height: 44px; display: flex; align-items: center; }

/* The privacy document shares the form surface and its text colors. */
.form-panel h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.4; margin: 0 0 24px; letter-spacing: -.7px; }
.intro-copy { color: var(--muted); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .masthead { padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left)); }
  .account-layout { padding-top: 8px; padding-bottom: 24px; }
  .page-footer { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
}
@media (max-height: 540px) {
  .masthead { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
  .account-layout { padding-top: 8px; padding-bottom: 16px; }
  .page-footer { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
