/* ═══════════════════════════════════════════════════════════════
   Auth pages (signup / login) — extends style.css's design system
═══════════════════════════════════════════════════════════════ */

html, body { height: auto; min-height: 100%; overflow: auto; }

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 28px;
  padding: 24px;
}

.auth-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card h2 { color: var(--gold); font-size: 20px; margin-bottom: 2px; }
.auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }

.auth-card label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-card input[type=email],
.auth-card input[type=password] {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.auth-card input[type=email]:focus,
.auth-card input[type=password]:focus { border-color: var(--gold); outline: none; }
.auth-card input[type=email]::placeholder,
.auth-card input[type=password]::placeholder { color: var(--text-muted); }

.auth-card .btn { margin-top: 10px; }

.auth-error {
  background: rgba(244,67,54,0.15);
  border: 1px solid #f44336;
  color: #ef9a9a;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.auth-switch a { color: var(--gold); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Account bar (shown on index.html once auth-gate confirms access) ───── */
html.auth-pending, html.auth-pending body { visibility: hidden; }

#account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
#account-bar strong { color: var(--gold-light); }
