/* auth-page.css — shared layout for the server-rendered auth pages:
   signup, confirm-signup, forgot-password, reset-password (2026-08-22).

   Chrome comes from hud-theme.css (hud-panel, hud-band, hud-brief, hud-rule);
   this file holds only page layout, the §4.7 form-control recipe and the
   §4.6 primary button, per docs/UI_Style_Guide.md. Palette follows the
   external-page row of §8: page #06070d, card #0d1017, CTA #00a8cc,
   muted #7c8794, divider #2a2d33. These pages deliberately do not load
   animera.css — its gradient .form-group button rule is the pre-system look.
   Load order: hud-theme.css first, then this file. */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Same background art as the menu screen (menu.ejs); #06070d shows until
     the image loads. The card is an opaque #0d1017 so it reads over art. */
  background: #06070d url('/textures/menu_screen_bg.jpg') center / cover no-repeat fixed;
  color: var(--hud-text);
  font-family: var(--hud-font);
  letter-spacing: 0.05em;
}
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.auth-panel {
  width: 100%;
  max-width: 440px; /* §3.6 standard modal */
  min-width: 0;
  background: #0d1017;
  --hud-accent: #00edff;
  --hud-band-text: #021418;
}
.auth-panel .hud-band { font-size: 20px; }
.panel-body { padding: 14px 16px 2px; }
.brief { margin: 0 0 14px; }

/* Long-form reading pages (terms / privacy / guidelines): §3.6 760px, and
   the page starts at the top instead of vertically centring (a centred flex
   item taller than the viewport would clip its top). */
.page--top { align-items: flex-start; padding-top: 40px; }
.auth-panel--reading { max-width: 760px; }
.reading { font-size: 16px; line-height: 1.45; color: var(--hud-text); }
.reading h3 {               /* same role as .hud-section */
  font-size: 18px;
  font-weight: normal;
  color: var(--hud-accent);
  margin: 16px 0 8px;
}
.reading h3:first-child { margin-top: 0; }
.reading p { margin: 0 0 10px; }
.reading ul { margin: 0 0 10px; padding-left: 20px; }
.reading li { margin-bottom: 6px; }
.reading strong { color: #fff; }

/* Check-list for a pitch (guest-evicted): accent-coloured marks, no emoji */
.checklist { list-style: none; margin: 0 0 10px; padding: 0; }
.checklist li { margin-bottom: 8px; padding-left: 22px; position: relative; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hud-accent);
  font-weight: bold;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  margin-bottom: 4px;
  color: var(--hud-text-brief);
  font-size: 14px;
}
/* §4.7 form controls */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 237, 255, 0.3);
  color: #fff;
  padding: 9px;
  font-family: var(--hud-font);
  font-size: 14px;
  letter-spacing: 0.05em;
  outline: none;
  box-sizing: border-box;
  border-radius: 4px;
}
.form-group input:focus { border-color: var(--hud-accent); }
.form-group input::placeholder { color: var(--hud-text-muted); }
.form-group input[readonly] {
  color: var(--hud-text-brief);
  border-style: dashed;
  cursor: default;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.note {
  display: block;
  color: var(--hud-text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  color: var(--hud-text);
  font-size: 14px;
  line-height: 1.35;
}
.consent-item input[type="checkbox"] {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--hud-accent);
}
a { color: var(--hud-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* §4.6 primary button */
.submit-button {
  width: 100%;
  margin-top: 4px;
  padding: 9px 18px;
  background: #00a8cc;
  color: #000;
  border: none;
  border-radius: 4px;
  font-family: var(--hud-font);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.submit-button:hover { transform: scale(1.02); }
.submit-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
/* The same primary shape as a link (e.g. "Register" on guest-evicted) */
a.submit-button {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}
a.submit-button:hover { text-decoration: none; }

/* §4.6 secondary button */
.secondary-button {
  width: 100%;
  padding: 9px 18px;
  background: rgba(0, 237, 255, 0.08);
  color: var(--hud-accent);
  border: 1px solid rgba(0, 237, 255, 0.4);
  border-radius: 4px;
  font-family: var(--hud-font);
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.secondary-button:hover { background: rgba(0, 237, 255, 0.16); }
.secondary-button:disabled { opacity: 0.5; cursor: not-allowed; }
.button-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

/* Inline status line (showInline shape): the type sets --hud-accent on the
   element, so the frame and text take the semantic colour. */
.status-message {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--hud-accent);
  color: var(--hud-accent);
  background: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  text-align: center;
}
.error-message   { --hud-accent: #ff4444; }
.success-message { --hud-accent: #00ff88; }

.footer {
  margin-top: 14px;
  padding: 10px 0 0;
  border-top: 1px solid #2a2d33;
  text-align: center;
  font-size: 13px;
  color: var(--hud-text-muted);
}
.footer p { margin: 0 0 6px; }
.footer p:last-child { margin-bottom: 0; }

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
