/* accounts.css — shared styles for register / login / edit pages */


/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
--bg:       #1a1a1a;
--surface:  #222;
--surface2: #222;
--border:   #2e2e2e;
--text:     #e8e8e8;
--muted:    #666;
--accent:   #c8a96e;
--accent2:  #a07840;
  --accent-dark: #dac7ad;
  --accent-lite: #f6f2ed;
  --danger:      #b5172a;
  --text:        #1a1a1a;
  --muted:       #e8e8e8;
  --radius:      8px;
  --shadow:      0 2px 16px rgba(0,0,0,.08);
  --transition:  .18s ease;
}

body {
background: var(--bg);
    color: var(--text);
font-family: "schoolbook", serif;
font-weight: 200;
font-style: normal;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem 0rem 1rem 0rem;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.acct-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 320px;
  padding: 28px 20px 20px 20px;
}

.acct-card--wide { max-width: 680px; }

/* ── Heading ────────────────────────────────────────────────────────────── */
.acct-title {
font-family: "schoolbook", serif;
  font-size: 2rem;
  letter-spacing: -.02em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.acct-subtitle {
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 28px;
}

.acct-subtitle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.acct-subtitle a:hover { text-decoration: underline; }

/* ── Section dividers ───────────────────────────────────────────────────── */
.acct-section-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin: 24px 0 16px;
}

/* ── Form rows ──────────────────────────────────────────────────────────── */
.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field { flex: 1; }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: .03em;
}

.field input,
.field select {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,.15);
}

.field input.error { border-color: var(--danger); }

/* ── Username availability indicator ───────────────────────────────────── */
.username-wrap { position: relative; }

.username-wrap input { padding-right: 36px; }

#username-status {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
}

.hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 3px;
}

.hint.ok    { color: var(--accent); }
.hint.err   { color: var(--danger); }

/* ── Password strength ──────────────────────────────────────────────────── */
.pw-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}

.pw-bar {
  height: 100%;
  border-radius: 99px;
  width: 0;
  transition: width .3s, background .3s;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
font-family: "schoolbook", serif;
  font-size: .95rem;
  font-weight: 600;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(45,106,79,.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--accent-lite);
  color: var(--accent-dark);
}

.btn-secondary:hover { background: #b7e4c7; }

.btn-danger {
  background: #fde8ea;
  color: var(--danger);
}

.btn-danger:hover { background: #fbd0d4; }

/* ── Flash messages ─────────────────────────────────────────────────────── */
.flash {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .875rem;
  margin-bottom: 20px;
}

.flash-err  { background: #fde8ea; color: var(--danger); border: 1px solid #fac5cb; }
.flash-ok   { background: var(--accent-lite); color: var(--accent-dark); border: 1px solid #95d5b2; }

/* ── Logo/back link ─────────────────────────────────────────────────────── */
.acct-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.acct-back:hover { color: var(--accent); }

/* ── Checkout embed (create-account checkbox row) ───────────────────────── */
.checkout-acct-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 18px;
  background: var(--bg);
}

.checkout-acct-box label.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: .95rem;
}

.checkout-acct-box input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkout-acct-fields {
  margin-top: 14px;
  display: none;
}

.checkout-acct-fields.visible { display: block; }

/* ── Nav strip (account edit page) ─────────────────────────────────────── */
.acct-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 680px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.acct-nav-right { display: flex; gap: 8px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .field-row  { flex-direction: column; gap: 0; }
}
