/* ============================================================
   Shared look for the simple public pages (privacy, terms) and the
   owner sign-in pages (login, forgot password, reset password).
   Same tokens as landing.css: one green family, the logo orange,
   cream and sand neutrals, Geist, pill buttons, one strong ease-out.
   ============================================================ */

:root {
  --forest:      #1a2e1e;
  --green:       #2d6a4f;
  --green-tint:  #e6efe8;
  --orange:      #f08229;
  --orange-hover:#e67720;
  --on-orange:   #241306;
  --cream:       #fbf8f3;
  --sand:        #f3eee6;
  --text:        #1f2a22;
  --muted:       #626b65;
  --line:        #e4ddd2;
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --shadow:      0 2px 6px rgba(26,46,30,.06), 0 24px 50px -14px rgba(26,46,30,.22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: var(--cream);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--forest); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-cta { background: var(--orange); color: var(--on-orange); box-shadow: 0 8px 20px -8px rgba(240,130,41,.55); }
.btn-ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px rgba(26,46,30,.22); }
.btn-block { width: 100%; padding: 15px 22px; font-size: 16px; }
@media (hover: hover) and (pointer: fine) {
  .btn-cta:hover { background: var(--orange-hover); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(26,46,30,.45); }
}

/* ===================== TOP BAR (legal pages) ===================== */
.topbar { background: rgba(243,238,230,.9); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.topbar-logo img { height: 34px; width: auto; }
.topbar .btn { padding: 10px 18px; font-size: 14px; }

/* ===================== LEGAL DOCUMENT ===================== */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 24px 96px; }
.doc-head { margin-bottom: 32px; }
.doc-head h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 10px; }
.doc-head p { color: var(--muted); }
.doc-card { background: #fff; border-radius: 24px; padding: 44px 48px; box-shadow: var(--shadow); }
.doc-card h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 34px 0 10px; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card p, .doc-card li { font-size: 15.5px; line-height: 1.75; color: #3c463f; }
.doc-card p { margin-bottom: 12px; }
.doc-card ul { padding-left: 20px; margin-bottom: 12px; }
.doc-card li { margin-bottom: 4px; }
.doc-card li::marker { color: var(--green); }
.doc-card strong { color: var(--forest); }
.doc-card a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.highlight-box { background: var(--green-tint); border-radius: 16px; padding: 18px 22px; margin-bottom: 30px; color: var(--forest); font-size: 15.5px; line-height: 1.6; }

.site-footer { background: var(--sand); padding: 32px 0; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer-inner > img { height: 26px; width: auto; }
.site-footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--forest); } }

/* ===================== SIGN-IN PAGES ===================== */
.auth { min-height: 100vh; min-height: 100dvh; background: var(--sand); }

.auth-panel { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 28px; padding: 40px 36px 32px; box-shadow: var(--shadow);
  animation: enter 600ms var(--ease-out) both;
}
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.auth-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.auth-brand img { height: 36px; width: auto; }
.auth-brand span { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-tint); padding: 4px 10px; border-radius: 999px; }
.auth-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--forest); margin-bottom: 7px; }
.field input {
  width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.field input::placeholder { color: #8d958f; }
.field input:focus { background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(45,106,79,.16); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.eye-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: none; border: 0; cursor: pointer; color: var(--muted); transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .eye-btn:hover { color: var(--forest); } }
.auth-card .btn-block { margin-top: 8px; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; line-height: 1.5; }
.alert-error   { background: #fdf0ef; color: #9b2c1f; border: 1px solid #f3cdc8; }
.alert-success { background: var(--green-tint); color: var(--forest); border: 1px solid #c3d7c8; }

.auth-link { display: block; text-align: center; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .auth-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.auth-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-foot a { color: var(--muted); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 600px) {
  .auth-panel { align-items: flex-start; padding: 40px 16px; }
}
@media (max-width: 600px) {
  .topbar-inner { padding: 0 16px; height: 64px; }
  .topbar-logo img { height: 32px; }
  .doc { padding: 40px 16px 64px; }
  .doc-card { padding: 28px 20px; border-radius: 20px; }
  .auth-card { padding: 30px 22px 24px; border-radius: 22px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
  .btn:active { transform: none; }
}
