/* Shared styles for the registration pages (/register/…). Uses the same
   variables and section classes as the Privacy and Research Methodology pages,
   so /theme.css supplies the dark theme automatically. */
:root {
  --green-dark: #1b3a2b;
  --green-mid: #3f5a4c;
  --green-pale: #f4f6f4;
  --border: #d8ded9;
  --text: #1c1c1c;
  --muted: #666;
  --h-bg: #d9efdb; --h-text: #1c5c2a; --h-border: #a9d6ae;
  --l-bg: #fbe1de; --l-text: #a33b2c; --l-border: #f0bdb6;
  --field-bg: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fbfbfa;
  line-height: 1.6;
}
a { color: inherit; }
.site-back { display: block; background: #000000; color: #fff; font-size: 14px; font-weight: 700; padding: 10px 20px; text-decoration: none; }
.site-back:hover { background: #262626; }

header.hero {
  background: linear-gradient(135deg, var(--green-dark), #234433);
  color: #fff;
  padding: 36px 20px 26px;
  text-align: center;
}
header.hero h1 { margin: 0 0 8px 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: 0.02em; }
header.hero p { margin: 0 auto; max-width: 600px; color: #dce8e0; font-size: 16px; font-style: italic; }

.container { max-width: 640px; margin: 0 auto; padding: 28px 20px 60px; }

.method-section {
  margin: 0 0 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.method-section h2 { margin: 0 0 6px; font-size: 20px; color: var(--green-dark); }
.method-section p { margin: 0 0 12px; font-size: 15px; }
.method-section p:last-child { margin-bottom: 0; }
.method-section ul { margin: 0 0 12px; padding-left: 22px; font-size: 15px; }
.method-section li { margin-bottom: 6px; }

/* ---------- Form fields ---------- */
.field-label { display: block; margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.field-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on focus */
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid #9fb0a5;
  border-radius: 8px;
}
.field-input:focus-visible { outline: 3px solid #5c9a73; outline-offset: 1px; border-color: var(--green-dark); }

fieldset.options { margin: 20px 0 0; padding: 0; border: 0; }
fieldset.options legend { padding: 0; margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.options .hint { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.option:hover { border-color: var(--green-mid); }
.option:has(input:checked) { border-color: var(--green-dark); background: var(--green-pale); }
.option input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-dark); }
.option input:focus-visible { outline: 3px solid #5c9a73; outline-offset: 2px; }
.option-title { display: block; font-weight: 700; }
.option-desc { display: block; font-size: 14px; color: var(--muted); }
.option-days {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--h-text);
  background: var(--h-bg);
  border: 1px solid var(--h-border);
  border-radius: 999px;
}

.access-summary {
  margin: 18px 0 0;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--h-text);
  background: var(--h-bg);
  border: 1px solid var(--h-border);
  border-radius: 8px;
}
.access-summary strong { font-size: 18px; }

.tier-table { width: 100%; margin: 6px 0 0; border-collapse: collapse; font-size: 14px; }
.tier-table th, .tier-table td { padding: 6px 4px; text-align: left; border-bottom: 1px solid var(--border); }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; white-space: nowrap; }

.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 26px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--green-dark);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover, .btn:focus-visible { background: #234433; }
.btn:focus-visible { outline: 3px solid #5c9a73; outline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-secondary { color: var(--green-dark); background: transparent; border: 2px solid var(--green-dark); }
.btn-secondary:hover, .btn-secondary:focus-visible { color: #fff; }

.fine-print { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.fine-print a, .method-section a { color: var(--green-mid); font-weight: 600; }

.notice { margin: 16px 0 0; padding: 12px 14px; font-size: 15px; border-radius: 8px; }
.notice:empty { display: none; }
.notice.ok { color: var(--h-text); background: var(--h-bg); border: 1px solid var(--h-border); }
.notice.error { color: var(--l-text); background: var(--l-bg); border: 1px solid var(--l-border); }

.big-icon { display: block; margin: 0 auto 10px; font-size: 40px; line-height: 1; text-align: center; }
.center { text-align: center; }

details.sign-in summary { font-weight: 700; color: var(--green-dark); cursor: pointer; font-size: 16px; }
details.sign-in[open] summary { margin-bottom: 12px; }

.copyright { margin: 8px 0 22px; font-size: 12px; color: var(--muted); text-align: center; }
.site-logo { text-align: center; }

@media (max-width: 480px) {
  .container { padding: 20px 14px 48px; }
  .method-section { padding: 18px 16px; }
}

@media screen {
  html[data-theme="dark"] { --field-bg: #111513; }
  html[data-theme="dark"] .field-input { border-color: #4a5a50; }
  html[data-theme="dark"] .method-section h2,
  html[data-theme="dark"] details.sign-in summary { color: var(--green-dark); }
  html[data-theme="dark"] .btn { background: #2d6a47; }
  html[data-theme="dark"] .btn:hover,
  html[data-theme="dark"] .btn:focus-visible { background: #378056; }
  html[data-theme="dark"] .btn-secondary { color: var(--green-dark); background: transparent; border-color: #378056; }
  html[data-theme="dark"] .btn-secondary:hover { color: #fff; background: #2d6a47; }
  html[data-theme="dark"] .option:has(input:checked) { background: #1d2a22; border-color: #378056; }
  html[data-theme="dark"] .option input { accent-color: #378056; }
}
