:root {
  --bg: #f4f1e8;
  --surface: #fffdf7;
  --ink: #13201d;
  --muted: #68716d;
  --line: #d8d4c8;
  --teal: #0f766e;
  --teal-dark: #0b574f;
  --mint: #dff3ec;
  --bad: #b42318;
  --bad-soft: #fde8e6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(980px, 100%);
  min-height: 580px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(19,32,29,.12);
}

.auth-story {
  background: #14211f;
  color: #eef4f1;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  color: #b9f2e6;
  font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.story-title {
  margin: 0;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0;
}

.story-copy { color: #a8bab3; max-width: 350px; }
.story-meta { color: #7f948c; font-size: 12px; }

.auth-panel {
  background: var(--surface);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 { margin: 10px 0 8px; font-size: 32px; line-height: 1.15; }
.muted { color: var(--muted); }
.panel { margin-top: 24px; }

.button, button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button.primary, button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.button.primary:hover, button.primary:hover { background: var(--teal-dark); }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.notice { border: 1px solid #bfdcd4; background: var(--mint); border-radius: 6px; padding: 12px; color: var(--teal-dark); }
.error { border: 1px solid #efb7b1; background: var(--bad-soft); color: var(--bad); border-radius: 6px; padding: 10px 12px; margin-bottom: 16px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
input { height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 12px; font: inherit; color: var(--ink); }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 760px) {
  body { padding: 0; place-items: stretch; }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .auth-story { padding: 24px; min-height: 220px; }
  .story-title { font-size: 32px; }
  .auth-story .story-copy { display: none; }
  .auth-panel { padding: 30px 22px; }
}
