/* Spoontab brand tokens for the Identity auth pages (Login/Register/etc).
 * Mirrors the semantic subset of services/frontend/src/styles/brand.css —
 * olive/sand palette, Work Sans body, Lora display serif. Keep in sync with
 * that file if the frontend palette changes. */
:root {
  --olive-100: #e6ebd2;
  --olive-300: #aebd6b;
  --olive-400: #8da432;
  --olive-500: #708823;
  --olive-700: #425d0b;

  --sand-50: #fbf9e6;
  --sand-100: #f5f0bb;
  --sand-200: #ede383;
  --sand-700: #6d4205;
  --sand-900: #351903;

  --rust-500: #b5482f;
  --rust-600: #973b26;

  --bg: var(--sand-50);
  --surface: #ffffff;
  --ink: var(--sand-900);
  --ink-muted: var(--sand-700);
  --border: var(--sand-200);

  --brand: var(--olive-500);
  --brand-strong: var(--olive-700);
  --brand-soft: var(--olive-100);
  --brand-ink: #ffffff;

  --destructive: var(--rust-600);
  --destructive-soft: #f6ddd6;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-lg: 0 16px 32px rgba(37, 31, 24, 0.16);
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

h1, h2 { font-family: 'Lora', Georgia, 'Times New Roman', serif; }

.auth-shell { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 100vh; }
.brand-pane { background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; }
.brand-inner { max-width: 480px; padding: 48px; text-align: center; }
.brand-mark { width: 64px; height: 64px; margin: 0 auto 20px; }
.brand-title { margin: 0; font-size: 36px; letter-spacing: -0.02em; }
.brand-sub { margin-top: 8px; opacity: 0.9; }

.auth-pane { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 440px; padding: 28px; box-shadow: var(--shadow-lg); }
.card h2 { margin-top: 0; margin-bottom: 6px; font-size: 24px; }
.muted { color: var(--ink-muted); font-size: 14px; margin-bottom: 18px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.label { font-weight: 600; font-size: 14px; }
.input {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  color: var(--ink);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand-strong); }
.btn-primary:hover { background: var(--brand-strong); }
.link { color: var(--brand-strong); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

.error, .text-danger { color: var(--destructive); }
div.error { background: var(--destructive-soft); border: 1px solid var(--rust-500); padding: 10px 12px; border-radius: var(--radius-md); font-size: 14px; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .brand-pane { display: none; }
}
