/* Layout for guest-only pages: login, onboarding — matches the marketing
   site's editorial/ledger visual language rather than the app's utility UI. */
body { background: var(--card-warm); font-family: var(--font); }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  background: linear-gradient(165deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: #fff;
  overflow: hidden;
}
.brand-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(rgba(255, 255, 255, 0.05) 0 27px, rgba(255, 255, 255, 0.09) 27px 28px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
  pointer-events: none;
}
.brand-panel::after {
  content: "";
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  top: -120px; right: -100px; background: rgba(255, 255, 255, 0.06);
}

.brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; position: relative; z-index: 1; }
.brand-mark img { width: 26px; height: 26px; }
.brand-mark .tape {
  width: 46px; height: 20px; background: rgba(181, 89, 15, 0.5);
  border: 1px solid rgba(181, 89, 15, 0.65);
  transform: rotate(-3deg); margin-left: 4px;
}

.brand-copy { position: relative; z-index: 1; max-width: 420px; }
.brand-copy .kicker { color: var(--green-100); margin-bottom: 18px; }
.brand-copy .kicker::before { background: var(--green-100); }
.brand-copy h1 {
  font-family: var(--font-display); font-size: 34px; line-height: 1.18; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.brand-copy h1 em { font-style: italic; color: var(--green-100); }
.brand-copy p { font-size: 16px; color: rgba(255,255,255,0.88); margin: 0 0 34px; }

.value-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.value-list li {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline;
  font-size: 15px; color: rgba(255,255,255,0.95);
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.18);
}
.value-list .num {
  font-family: var(--font-display); font-weight: 500; font-size: 20px; color: rgba(255,255,255,0.55);
}

.brand-foot {
  position: relative; z-index: 1; font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 8px;
}
.brand-foot::before { content: ""; width: 16px; height: 1px; background: rgba(255,255,255,0.5); }

.form-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px; background: var(--card-warm);
}
.form-card {
  width: 100%; max-width: 400px;
  animation: card-in 0.5s var(--ease);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .form-card { animation: none; }
}

.mobile-brand { display: none; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--green-800); margin-bottom: 28px; }
.mobile-brand img { width: 22px; height: 22px; }

.form-card > .kicker { margin-bottom: 14px; }
.form-card h2 { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.form-card .subtitle { color: var(--ink-soft); font-size: 14px; margin: 0 0 28px; }

.input-wrap { position: relative; }
.toggle-visibility {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px; cursor: pointer; color: var(--muted);
  display: flex; border-radius: 6px;
}
.toggle-visibility:hover { color: var(--ink); background: #f3f4f6; }

.footnote { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 22px; }
.footnote a { font-weight: 700; color: var(--green-800); text-decoration: none; }
.footnote a:hover { text-decoration: underline; }

/* ---------- Multi-step onboarding: a filling rule, not a dot wizard ---------- */
.step-track { height: 1px; background: var(--line-warm); margin-bottom: 12px; position: relative; }
.step-track-fill {
  position: absolute; left: 0; top: 0; height: 1px; background: var(--amber);
  transition: width 0.35s var(--ease);
}
#step-kicker { margin-bottom: 24px; }

.onboard-step { display: none; }
.onboard-step.is-active { display: block; animation: step-in 0.35s var(--ease); }
@keyframes step-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .onboard-step.is-active { animation: none; }
}

.step-actions { display: flex; gap: 10px; margin-top: 8px; }
.step-actions .btn-secondary { flex: none; padding-left: 14px; padding-right: 14px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; min-height: 0; }
  .brand-panel { display: none; }
  .mobile-brand { display: flex; }
  .form-panel { align-items: flex-start; padding: 40px 20px; }
}
