:root {
  color-scheme: light dark;
  --surface-1: #fcfcfb;
  --surface-2: #f3f2ef;
  --border: #e4e2dd;
  --text-1: #1c1b19;
  --text-muted: #6b6862;
  --accent: #e2231b;
  --accent-text: #ffffff;
  --bad: #c0392b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-1: #17171a;
    --surface-2: #201f1d;
    --border: #34322e;
    --text-1: #f3f2ef;
    --text-muted: #a8a49c;
    --accent: #ff5b50;
    --accent-text: #ffffff;
    --bad: #ff6b5e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Layout: dark story panel + light sign-in panel ---------- */
/* Fixed two-tone design (not tied to the viewer's OS theme) -- the hero
   panel is always dark, the form panel always light, matching the split
   layout this was modeled on. */
.split {
  display: flex;
  min-height: 100vh;
}

.hero {
  flex: 1 1 50%;
  min-width: 0;
  background: #0d0d0d;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
}

.hero-top .brand-mark .dh-pill { border-color: #ffffff; color: #ffffff; }
.hero-top .brand-mark .dh-sub { color: #b8b6ae; }

.hero-body { max-width: 480px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
}
.hero-title .dim { color: #605e58; }

.hero-sub {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #c3c1b9;
  max-width: 420px;
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: #e7e6e1;
  white-space: nowrap;
}

.hero-footer { margin: 0; font-size: 12px; color: #605e58; }

.panel {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 360px;
  padding: 36px 32px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 13px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 14px;
}

input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-1);
  color: var(--text-1);
  font-size: 14px;
  width: 100%;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.password-field { position: relative; }
.password-field input { padding-right: 40px; }
.toggle-password {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  padding: 6px 8px;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 6px;
}
.toggle-password:hover { color: var(--text-1); }
.toggle-password:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.error-msg {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  color: var(--bad);
  font-size: 13px;
}

button[type="submit"] {
  margin-top: 22px;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Brand mark (shared with pl-lite.html header) ---------- */
.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.brand-mark .dh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--text-1);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-1);
}

.brand-mark .dh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.brand-mark .dh-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---------- Narrow viewports: stack instead of side-by-side ---------- */
@media (max-width: 860px) {
  .split { flex-direction: column; }
  .hero { flex: none; padding: 28px 24px; }
  .hero-title { font-size: 30px; }
  .hero-sub { display: none; }
  .pills { display: none; }
  .panel { flex: 1; padding: 32px 20px 48px; }
}
