/* Shared styling for dealradarsapp auth + content pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --surface: #f6f6f9;
  --surface-2: #ededf3;
  --border: #e4e4ee;
  --border-dark: #d0d0e0;
  --text: #0d0d1c;
  --text-muted: #6b6b8e;
  --text-light: #9999b8;
  --primary: #e8002d;
  --primary-dark: #c0001f;
  --primary-light: rgba(232,0,45,0.07);
  --success: #00a855;
  --success-light: rgba(0,168,85,0.10);
  --success-border: rgba(0,168,85,0.30);
  --danger: #e8002d;
  --danger-light: rgba(232,0,45,0.08);
  --danger-border: rgba(232,0,45,0.28);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-md: 0 4px 16px rgba(13,13,28,0.08), 0 8px 32px rgba(13,13,28,0.06);
  --shadow-lg: 0 12px 40px rgba(13,13,28,0.12), 0 24px 60px rgba(13,13,28,0.08);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(232,0,45,0.32);
}
.logo-text { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; color: #fff; letter-spacing: -0.01em; }
.auth-main .logo-text, .page .logo-text, .dash .logo-text { color: var(--text); }
.logo-text span { color: var(--primary); }

/* ── Auth split layout ── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

.auth-aside {
  position: relative;
  padding: 56px 60px;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(150deg, #16001a 0%, #2a0014 45%, var(--primary-dark) 110%);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.auth-aside .logo { position: absolute; top: 40px; left: 60px; }
.auth-aside h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; }
.auth-aside p { color: rgba(255,255,255,0.78); font-size: 16px; max-width: 30ch; }
.aside-points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.aside-points li { position: relative; padding-left: 28px; color: rgba(255,255,255,0.92); font-size: 14.5px; font-weight: 500; }
.aside-points li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(255,255,255,0.16); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

.auth-main { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 38px 36px; }
.logo-mobile { display: none; margin-bottom: 22px; }

.auth-card h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 27px; letter-spacing: -0.02em; }
.auth-lede { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; margin-bottom: 22px; }

.plan-badge {
  display: inline-block; margin-bottom: 14px;
  background: var(--primary-light); color: var(--primary-dark);
  border: 1px solid rgba(232,0,45,0.20); border-radius: 999px;
  padding: 5px 13px; font-size: 12.5px; font-weight: 700;
}

form { display: flex; flex-direction: column; gap: 15px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
input {
  font-family: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--border-dark); border-radius: var(--radius);
  background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
}
input::placeholder { color: var(--text-light); font-weight: 400; }
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.row-between { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }
.link-btn { background: none; border: none; cursor: pointer; color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; padding: 0; }
.link-btn:hover { text-decoration: underline; }

.btn-primary {
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; border-radius: var(--radius); padding: 13px 18px; margin-top: 4px;
  box-shadow: 0 6px 18px rgba(232,0,45,0.28); transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(232,0,45,0.34); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.oauth-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.btn-oauth {
  font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--bg); border: 1.5px solid var(--border-dark);
  border-radius: var(--radius); padding: 11px 16px; transition: background 0.12s, border-color 0.12s;
}
.btn-oauth:hover { background: var(--surface); border-color: var(--text-light); }

.divider { position: relative; text-align: center; margin: 4px 0 18px; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider span { position: relative; background: var(--bg); padding: 0 12px; color: var(--text-light); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.auth-msg { margin-top: 16px; padding: 11px 14px; border-radius: var(--radius); font-size: 13.5px; font-weight: 500; }
.auth-msg.info { background: var(--surface-2); color: var(--text-muted); }
.auth-msg.ok { background: var(--success-light); color: #007a3d; border: 1px solid var(--success-border); }
.auth-msg.err { background: var(--danger-light); color: var(--primary-dark); border: 1px solid var(--danger-border); }

.auth-fine { margin-top: 18px; font-size: 12px; color: var(--text-light); line-height: 1.6; }
.auth-alt { margin-top: 14px; font-size: 13.5px; color: var(--text-muted); }

/* ── Signup trust + onboarding ── */
.field-hint { font-size: 12px; font-weight: 500; color: var(--text-light); line-height: 1.5; }
.trust-note { margin-top: 16px; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; }
.onboard { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.onboard-hd { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.onboard-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.onboard-steps li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.onboard-steps li strong { color: var(--text); }
.onboard-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); border: 1px solid rgba(232,0,45,0.2); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { background: var(--bg); padding: 28px 18px; }
  .auth-card { border: none; box-shadow: none; padding: 8px 4px 40px; }
  .logo-mobile { display: inline-flex; }
}

/* ── Simple content pages (privacy / terms / contact) ── */
.page-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); z-index: 10;
}
.page-nav .logo-text { color: var(--text); }
.page-nav a.back { color: var(--text-muted); font-size: 14px; font-weight: 600; }
.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.page h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 38px; letter-spacing: -0.02em; margin-bottom: 8px; }
.page .updated { color: var(--text-light); font-size: 14px; margin-bottom: 34px; }
.page h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; margin: 32px 0 10px; }
.page p, .page li { color: var(--text-muted); font-size: 15.5px; line-height: 1.7; }
.page ul { margin: 10px 0 10px 22px; display: flex; flex-direction: column; gap: 6px; }
.page a { font-weight: 600; }
.page-footer { border-top: 1px solid var(--border); padding: 26px 24px; text-align: center; color: var(--text-light); font-size: 13px; }
