/* bookres diner account — shared styling. Color palette + type ramp
   mirror the marketing site (site/index.html). Pages embed this once
   via <link>. Page-specific tweaks go in a <style> tag on the page. */

:root {
  --bg: #0d0d0e;
  --bg-elev: #16161a;
  --bg-card: #1c1c20;
  --border: #2a2a30;
  --text: #ece9e2;
  --muted: #8a857a;
  --accent: #c9a84c;
  --accent-soft: rgba(201, 168, 76, 0.15);
  --green: #4a7d5a;
  --danger: #c0492e;
  --serif: 'Iowan Old Style', 'Apple Garamond', 'Baskerville', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --mono: 'SF Mono', Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.brand {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.brand .wordmark {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.02em;
}
header.brand nav a { margin-left: 24px; font-size: 14px; color: var(--muted); }
header.brand nav a:hover { color: var(--text); text-decoration: none; }

main.center {
  max-width: 440px;
  margin: 60px auto;
  padding: 0 20px;
}

main.wide {
  max-width: 920px;
  margin: 40px auto;
  padding: 0 24px;
}

h1 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 28px 0 12px;
}

p.lede { color: var(--muted); margin-bottom: 24px; font-size: 16px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 20px;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

button.primary, .btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
button.primary:hover, .btn-primary:hover { filter: brightness(1.05); }
button.primary:disabled { opacity: 0.6; cursor: not-allowed; }

button.secondary {
  display: inline-block;
  padding: 11px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
button.secondary:hover { border-color: var(--accent); color: var(--accent); }

button.danger {
  display: inline-block;
  padding: 11px 20px;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
button.danger:hover { background: var(--danger); color: var(--text); }

.flash {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}
.flash.ok { background: rgba(74, 125, 90, 0.18); color: #a8d4b0; border: 1px solid rgba(74, 125, 90, 0.4); }
.flash.err { background: rgba(192, 73, 46, 0.18); color: #f0aa99; border: 1px solid rgba(192, 73, 46, 0.4); }
.flash.info { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(201, 168, 76, 0.3); }

.row-split { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row-split > * { flex: 1; }

.help { font-size: 13px; color: var(--muted); margin-top: 6px; }

.muted { color: var(--muted); }
.tiny { font-size: 13px; }

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .toggle-label { flex: 1; padding-right: 16px; }
.toggle-row .toggle-label strong { display: block; font-size: 15px; margin-bottom: 4px; }
.toggle-row .toggle-label span { font-size: 13px; color: var(--muted); }

.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; transition: 0.2s;
}
.switch .slider:before {
  position: absolute; content: ""; height: 20px; width: 20px;
  left: 3px; top: 3px; background: var(--muted); border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .slider { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(20px); background: var(--accent); }

.reservation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reservation-card .venue { font-family: var(--serif); font-size: 19px; }
.reservation-card .when { color: var(--muted); font-size: 14px; }
.reservation-card .badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); margin-right: 6px;
}
.reservation-card .badge.canceled { background: rgba(192, 73, 46, 0.18); color: #f0aa99; }
.reservation-card .badge.past { background: rgba(138, 133, 122, 0.18); color: var(--muted); }

footer.diner {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Social auth (Google) — the GIS button renders its own Google-branded
   markup into .gauth; we only own the wrapper + the "or" divider. The
   min-height reserves space so the form doesn't jump as GIS loads. */
.gauth { display: flex; justify-content: center; margin-bottom: 16px; min-height: 44px; }
.or-divider {
  display: flex; align-items: center; text-align: center;
  color: var(--muted); font-size: 13px; margin: 4px 0 18px;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.or-divider span { padding: 0 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Sign-in credential tabs (Email | Phone). The Google button sits above; these
   switch the username/password vs phone-OTP panels below the "or" divider. */
.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.auth-tabs button {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.auth-tabs button[aria-selected="true"] {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.link-btn {
  display: inline-block;
  background: none;
  border: 0;
  color: var(--accent);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

@media (max-width: 540px) {
  main.center { margin: 30px auto; }
  .card { padding: 20px; }
  h1 { font-size: 26px; }
}
