/*
 * Rhizome account theme — shared stylesheet for the authenticated pages
 * (home, login, registration).
 *
 * Extends the public theme: templates/website/_base.html loads public.css
 * first, which supplies the :root design tokens (--bg, --ink, --accent, …),
 * the site-nav header, and the footer. This file adds only what the account
 * pages need on top: the authenticated dropdown menu, the centered form
 * cards, and the registration status cards.
 */

/* ── Dropdown menu (site-nav, authenticated) ─────────────────────── */
.menu { position: relative; }
.menu-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-items {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  z-index: 10;
}
.menu-items.open { display: block; }
.menu-items a, .menu-items button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.menu-items a:last-child, .menu-items button:last-child { border-bottom: none; }
.menu-items a:hover, .menu-items button:hover {
  background: rgba(63, 217, 127, 0.06);
  color: var(--accent);
}
.menu-items form { margin: 0; }

/* ── Page body (home) ────────────────────────────────────────────── */
.main {
  width: 100%;
  max-width: 700px;
  margin: 4rem auto 0;
  padding: 0 1.4rem;
  text-align: center;
}
.main h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.main p { color: var(--ink-soft); font-size: 0.95rem; }
.greeting { color: var(--ink-faint); font-size: 0.8rem; margin-top: 1.5rem; }

/* ── Centered card (login, registration) ─────────────────────────── */
.center-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.4rem;
}
.card {
  width: 400px;
  border: 1px solid var(--line);
  padding: 2rem;
  background: var(--panel);
}
.card h1 {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}
.card label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}
.card input[type="text"],
.card input[type="password"],
.card input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
  margin-bottom: 1.1rem;
  outline: none;
}
.card input:focus { border-color: var(--accent); }
.card button[type="submit"] {
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #06130b;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem;
  cursor: pointer;
  margin-top: 0.4rem;
}
.card button[type="submit"]:hover { background: #5ae695; border-color: #5ae695; }
.error {
  color: #cc7070;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  border: 1px solid #3a2321;
  padding: 0.5rem 0.7rem;
  background: #160f0e;
}
.card .field { margin-bottom: 1.1rem; }
.card .field input { margin-bottom: 0; }
.field-error {
  color: #cc7070;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}
.hint {
  color: var(--ink-faint);
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

/* ── Status card (registration sent/verified) ────────────────────── */
.card.status { text-align: center; }
.card.status p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.card h1.failure { color: #cc7070; }
.icon { font-size: 2rem; margin-bottom: 1rem; }
.icon.success { color: var(--accent); }
.icon.failure { color: #cc7070; }
.email-addr, .username { color: var(--ink); }
.note {
  color: var(--ink-faint);
  font-size: 0.78rem;
  margin-top: 1.2rem;
}
.error-msg { color: #cc7070; }
.links {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}
.links a { color: var(--accent); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* ── Pre-alpha notice (pre_alpha.html) ───────────────────────────── */
.center-wrap.pre-alpha { flex-direction: column; gap: 2rem; }
.pre-alpha-wordmark img {
  display: block;
  width: min(22rem, 80vw);
  height: auto;
}
.pre-alpha .card { width: auto; max-width: 36rem; }
.pre-alpha .cta-row { margin-bottom: 0; }
