/* Auth + account UI — extends styles.css (shares :root tokens). */

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.nav .left { display: flex; align-items: center; gap: 22px; }
.nav .brand { display: flex; align-items: center; gap: 10px; }
.nav .brand b { letter-spacing: 0.16em; font-size: 14px; }
.nav a { color: var(--ink-dim); text-decoration: none; font-size: 13px; letter-spacing: 0.02em; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .right { display: flex; align-items: center; gap: 14px; }
.nav .who { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

.authwrap { max-width: 420px; margin: 0 auto; padding: 64px 24px; }
.authwrap .logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 8px; }
.authwrap h1 { font-size: 22px; text-align: center; margin: 14px 0 4px; letter-spacing: 0.01em; }
.authwrap .sub { text-align: center; color: var(--ink-faint); font-size: 13px; margin-bottom: 28px; }

.card2 {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.account .card2 { margin-bottom: 18px; }
.account { max-width: 720px; margin: 0 auto; padding: 28px 24px 64px; }
.account h2 { font-size: 15px; letter-spacing: 0.04em; margin: 0 0 4px; }
.account .section-sub { color: var(--ink-faint); font-size: 12.5px; margin: 0 0 18px; line-height: 1.6; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--ink-dim); margin-bottom: 7px; letter-spacing: 0.03em; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%; background: #0a0d13; color: var(--ink); border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 13px; font-size: 14px; font-family: var(--sans);
  outline: none; transition: border-color 0.15s;
}
.input:focus, input:focus, select:focus { border-color: var(--cyan); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  border-radius: 9px; padding: 11px 16px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: var(--sans); transition: all 0.15s;
}
.btn:hover { border-color: var(--ink-faint); }
.btn-primary { background: linear-gradient(135deg, var(--green), #1fae66); border-color: transparent; color: #04130b; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-danger { color: var(--red); border-color: rgba(255,84,112,0.4); background: rgba(255,84,112,0.06); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.msg { font-size: 12.5px; margin-top: 12px; min-height: 16px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }
.muted { color: var(--ink-faint); }
.center-links { text-align: center; margin-top: 18px; font-size: 13px; }
.center-links a { color: var(--cyan); text-decoration: none; }

.banner-warn {
  max-width: 1120px; margin: 14px auto 0; padding: 11px 16px; border-radius: 10px;
  background: rgba(255,210,74,0.08); border: 1px solid rgba(255,210,74,0.3);
  color: var(--yellow); font-size: 13px; display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.banner-warn .btn { padding: 6px 12px; font-size: 12px; }

/* settings bits */
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.section-title h2 { margin: 0; }
.hint { color: var(--ink-faint); font-size: 11.5px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 10px; font-family: var(--mono); font-size: 12px; }
.chip button { background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.chip button:hover { color: var(--red); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .lbl { font-size: 13px; }
.toggle-row .lbl small { display: block; color: var(--ink-faint); font-size: 11.5px; margin-top: 3px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 24px; transition: 0.2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--ink); border-radius: 50%; transition: 0.2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); background: #04130b; }
.danger-zone { border-color: rgba(255,84,112,0.25); }
.pill { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 6px; }
.pill.green { background: rgba(47,212,126,0.12); color: var(--green); }
.pill.amber { background: rgba(255,210,74,0.12); color: var(--yellow); }
.pill.red { background: rgba(255,84,112,0.12); color: var(--red); }
