/* Rife Systems shared auth page styles. Loaded by /register, /login, /account, etc. */
:root {
  --ink: #0a0e15; --ink-soft: #111822; --ink-raised: #1a2331;
  --bone: #ece8dd; --bone-dim: #a79f8f; --bone-dimmer: #6d6557;
  --gold: #d4a770; --gold-dim: #8f6e44;
  --hairline: rgba(212, 167, 112, 0.22);
  --error: #d97862;
  --ok: #88c08a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink); color: var(--bone);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

nav.top {
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
}
nav.top .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--bone); letter-spacing: 0.02em;
}
nav.top .links { display: flex; gap: 1.4rem; font-size: 0.88rem; }
nav.top .links a { color: var(--bone-dim); }
nav.top .links a:hover { color: var(--gold); }

main {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: 4rem 2rem;
}

.auth-card {
  background: var(--ink-soft);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2.5rem 2.4rem 2rem;
  width: 100%; max-width: 460px;
}
.auth-card.wide { max-width: 720px; }

.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.auth-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; color: var(--bone);
  font-size: 1.9rem; margin: 0 0 0.6rem;
}
.auth-card p.lede {
  color: var(--bone-dim); font-size: 0.95rem; margin: 0 0 1.8rem;
}

label.field { display: block; margin-bottom: 1.1rem; }
label.field span {
  display: block; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bone-dim); margin-bottom: 0.4rem;
}
input[type=email], input[type=password], input[type=text] {
  width: 100%; background: var(--ink-raised); color: var(--bone);
  border: 1px solid var(--hairline); padding: 0.85rem 1rem;
  font-size: 0.95rem; font-family: inherit; border-radius: 4px; outline: none;
}
input:focus { border-color: var(--gold); }

.checkrow {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 1rem 0; font-size: 0.9rem; color: var(--bone-dim); line-height: 1.5;
}
.checkrow input[type=checkbox] {
  margin: 0.2rem 0 0; accent-color: var(--gold);
  width: 16px; height: 16px; flex: 0 0 auto;
}
.checkrow strong { color: var(--bone); font-weight: 500; }

button.primary {
  display: block; width: 100%;
  background: var(--gold); color: var(--ink); border: none;
  padding: 0.95rem 1rem; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border-radius: 4px;
  margin-top: 0.6rem;
}
button.primary:disabled { opacity: 0.55; cursor: wait; }
button.secondary {
  display: inline-block;
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.7rem 1.2rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border-radius: 4px;
}
button.secondary:hover { background: var(--gold); color: var(--ink); }
button.danger {
  background: transparent; color: var(--error);
  border: 1px solid var(--error);
  padding: 0.7rem 1.2rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border-radius: 4px;
}
button.danger:hover { background: var(--error); color: var(--ink); }

.feedback {
  margin: 1rem 0 0; min-height: 1.4rem;
  font-size: 0.9rem; color: var(--error);
}
.feedback.ok { color: var(--ok); }

.alt {
  margin-top: 1.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.88rem; color: var(--bone-dim);
  text-align: center;
}

footer {
  border-top: 1px solid var(--hairline);
  padding: 1.4rem 2rem; text-align: center;
  color: var(--bone-dimmer); font-size: 0.78rem;
}

@media (max-width: 700px) {
  nav.top { padding: 1rem 1.2rem; }
  nav.top .links { display: none; }
  main { padding: 2rem 1rem; }
  .auth-card { padding: 1.8rem 1.4rem; }
}
