/* ============================================================
   MAILEMENT — LOGIN STYLES
   Split landing. Left: form + brand + funnel CTA.
   Right: branded visual panel (gradient, big wordmark, inbox peek).
   Depends on app.css for design tokens.
   ============================================================ */

:root {
  --lp-grad:      linear-gradient(135deg, oklch(62% 0.18 280), oklch(58% 0.20 320));
  --lp-ink:       #0f1115;
  --lp-ink-soft:  #4a5159;
}
[data-theme="dark"] {
  --lp-ink:       #f4f6f8;
  --lp-ink-soft:  #a8aeb5;
}

body.login-shell { background: var(--surface); margin: 0; }
.login-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* MAILEMENT wordmark — same as marketing pages */
.wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: inherit;
  white-space: nowrap;
  font-feature-settings: "ss01";
}
.wordmark .mail { color: var(--text-strong); }
.wordmark .ment {
  background: linear-gradient(135deg, oklch(62% 0.18 280), oklch(58% 0.20 320));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- LEFT PANE ---------- */
.login-pane {
  display: flex; flex-direction: column;
  padding: var(--s-6) var(--s-8);
  background: var(--surface);
  min-width: 0;
}
.login-brand {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
}
.login-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-strong); text-decoration: none;
  padding: 6px 8px; margin-left: -8px;
  border-radius: var(--r-sm);
}
.login-logo:hover { background: var(--surface-hover); text-decoration: none; }
.login-logo .sh-mark {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, oklch(62% 0.18 280), oklch(58% 0.20 320));
  letter-spacing: -0.02em;
}
.sh-logo-img { height: 30px; width: auto; display: block; }
.login-top-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: oklch(50% 0.18 320);
  background: color-mix(in oklch, oklch(58% 0.20 320) 10%, var(--surface));
  border: 1px solid color-mix(in oklch, oklch(58% 0.20 320) 28%, var(--border));
  padding: 7px 12px 7px 14px;
  border-radius: var(--r-pill);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease, color 120ms ease;
}
.login-top-link::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(58% 0.20 320);
  box-shadow: 0 0 0 3px oklch(58% 0.20 320 / 0.20);
  animation: lt-pulse 2s ease-in-out infinite;
}
@keyframes lt-pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(58% 0.20 320 / 0.20); }
  50%      { box-shadow: 0 0 0 5px oklch(58% 0.20 320 / 0.08); }
}
.login-top-link svg { transition: transform 120ms ease; }
.login-top-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: color-mix(in oklch, oklch(58% 0.20 320) 16%, var(--surface));
  box-shadow: 0 6px 14px -4px oklch(58% 0.20 320 / 0.35);
  color: oklch(42% 0.20 320);
}
.login-top-link:hover svg { transform: translateX(2px); }
[data-theme="dark"] .login-top-link { color: oklch(80% 0.14 320); }

.login-form-wrap {
  flex: 1;
  display: flex; align-items: center;
  padding: var(--s-10) 0;
}
.login-form {
  width: 100%; max-width: 400px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--s-5);
}
.login-form h1 {
  font-size: clamp(34px, 4vw, 44px);
  letter-spacing: -0.03em; line-height: 1.05;
  color: var(--lp-ink); font-weight: 600;
}
.login-form .login-sub {
  font-size: 16px; line-height: 1.55;
  color: var(--lp-ink-soft);
  max-width: 38ch;
}
.login-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; color: oklch(50% 0.18 320);
  display: inline-flex; align-items: center; gap: 8px;
}
[data-theme="dark"] .login-eyebrow { color: oklch(78% 0.14 320); }
.login-eyebrow::before {
  content: ''; display: inline-block;
  width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
}

.login-form form { display: flex; flex-direction: column; gap: var(--s-3); }
.login-form .field-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.login-form .field-label-row label { font-size: 13px; font-weight: 500; color: var(--text-strong); }
.login-form .forgot-link { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.login-form .forgot-link:hover { color: var(--text-strong); }

.login-form .input-lg {
  width: 100%; height: 46px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 0 14px;
  font-size: 14px; color: var(--text-strong);
  transition: border-color 80ms ease, box-shadow 80ms ease;
}
.login-form .input-lg:hover { border-color: var(--border-strong); }
.login-form .input-lg:focus {
  outline: none; border-color: oklch(58% 0.20 320);
  box-shadow: 0 0 0 3px oklch(58% 0.20 320 / 0.18);
}
.login-form .remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; padding: 4px 0;
}
.btn-login {
  width: 100%; justify-content: center;
  height: 52px; font-size: 15px; font-weight: 500;
  background: var(--lp-ink); color: var(--bg);
  border: 0; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgb(0 0 0 / 0.18);
  transition: transform 80ms ease, box-shadow 80ms ease;
  margin-top: var(--s-2);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgb(0 0 0 / 0.22); }
.btn-login svg { transition: transform 120ms ease; }
.btn-login:hover svg { transform: translateX(2px); }

.login-error {
  background: oklch(96% 0.04 25); color: oklch(40% 0.18 25);
  border: 1px solid oklch(86% 0.08 25);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  font-size: 13px;
}
[data-theme="dark"] .login-error { background: oklch(28% 0.07 25); color: oklch(82% 0.16 25); border-color: oklch(40% 0.12 25); }

.login-divider { position: relative; text-align: center; margin: var(--s-2) 0; }
.login-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--border);
}
.login-divider span {
  position: relative;
  background: var(--surface); padding: 0 var(--s-3);
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.04em;
}

.login-explore {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid color-mix(in oklch, oklch(58% 0.20 320) 22%, var(--border));
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text-strong);
  background: linear-gradient(135deg, color-mix(in oklch, oklch(58% 0.20 320) 8%, var(--surface)), var(--surface));
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.login-explore:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: oklch(58% 0.20 320);
  box-shadow: 0 8px 20px -8px oklch(58% 0.20 320 / 0.30);
}
.login-explore .lx-ic {
  position: relative;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px; display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, oklch(62% 0.18 280), oklch(58% 0.20 320));
  box-shadow: 0 3px 8px -2px oklch(58% 0.20 320 / 0.45);
}
.login-explore .lx-body { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.login-explore .lx-ttl { display: block; font-size: 14px; font-weight: 600; color: var(--text-strong); letter-spacing: -0.005em; }
.login-explore .lx-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.login-explore .lx-arrow {
  position: relative;
  color: oklch(58% 0.20 320); flex-shrink: 0;
  transition: transform 140ms ease;
  display: grid; place-items: center;
}
.login-explore:hover .lx-arrow { transform: translateX(3px); }

/* small text link below the explore callout — a direct-to-signup escape hatch */
.login-skip-tour {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: var(--s-1);
}
.login-skip-tour a {
  color: oklch(50% 0.18 320);
  font-weight: 500;
  margin-left: 6px;
  text-decoration: none;
}
.login-skip-tour a:hover { text-decoration: underline; }
[data-theme="dark"] .login-skip-tour a { color: oklch(80% 0.14 320); }

.login-foot {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: 12px; color: var(--text-muted);
  margin-top: var(--s-6);
}
.login-foot a { color: var(--text-muted); padding: 2px 6px; border-radius: 4px; text-decoration: none; }
.login-foot a:hover { color: var(--text-strong); background: var(--surface-hover); text-decoration: none; }
.login-foot .sep { color: var(--text-subtle); }

/* ---------- RIGHT VISUAL PANE ---------- */
.login-visual {
  position: relative;
  background: linear-gradient(135deg, oklch(48% 0.18 280), oklch(42% 0.22 320));
  color: #fff;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-12) var(--s-10);
  isolation: isolate;
}
.login-visual::before {
  content: '';
  position: absolute; inset: -200px -150px auto auto;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgb(255 255 255 / 0.18), transparent 60%);
  filter: blur(40px); pointer-events: none; z-index: 0;
}
.login-visual::after {
  content: '';
  position: absolute; left: -200px; bottom: -300px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, oklch(70% 0.20 320 / 0.40), transparent 60%);
  filter: blur(40px); pointer-events: none; z-index: 0;
}
.lv-bg-mark {
  position: absolute;
  bottom: -8vw; right: -3vw;
  font-size: clamp(420px, 48vw, 720px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgb(255 255 255 / 0.04);
  user-select: none;
  pointer-events: none;
  font-family: 'Geist', sans-serif;
}
.lv-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; gap: var(--s-8);
}
.lv-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.65);
  display: inline-flex; align-items: center; gap: 8px;
}
.lv-eyebrow::before {
  content: ''; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
}

.lv-inbox {
  background: #fff; color: #1a1a1a;
  border-radius: 14px;
  box-shadow: 0 32px 80px -16px rgb(0 0 0 / 0.40), 0 12px 24px -8px rgb(0 0 0 / 0.20);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform 240ms ease;
}
.lv-inbox:hover { transform: rotate(-0.5deg) translateY(-3px); }
.lv-inbox-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  background: #f6f7f8;
  border-bottom: 1px solid #e7e9ec;
}
.lv-inbox-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.lv-inbox-bar .d:nth-child(1) { background: #ef6a5a; }
.lv-inbox-bar .d:nth-child(2) { background: #f3bd4f; }
.lv-inbox-bar .d:nth-child(3) { background: #5fc56e; }
.lv-inbox-bar .t { margin-left: 10px; font-size: 11px; color: #6b7177; }
.lv-inbox-body { padding: 22px 26px; }
.lv-inbox-from { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lv-inbox-from .av {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, oklch(62% 0.18 280), oklch(58% 0.20 320));
  color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.lv-inbox-from .nm { font-size: 13px; font-weight: 600; color: #111; }
.lv-inbox-from .meta { font-size: 11px; color: #6b7177; }
.lv-inbox-body h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; color: #111; font-weight: 600; }
.lv-inbox-body p { font-size: 13px; line-height: 1.6; color: #3a3f44; margin: 0; }
.lv-inbox-cta {
  display: inline-block; margin-top: 14px;
  padding: 7px 12px;
  background: #0f1115; color: #fff;
  border-radius: 6px; font-size: 12px; font-weight: 500;
}

.lv-proof {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  background: rgb(255 255 255 / 0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 0.20);
  border-radius: var(--r-pill);
  font-size: 12px; color: rgb(255 255 255 / 0.90); font-weight: 500;
}
.lv-proof .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5fc56e;
  box-shadow: 0 0 0 3px rgb(95 197 110 / 0.30);
}

.lv-quote {
  display: flex; flex-direction: column; gap: 10px;
  color: rgb(255 255 255 / 0.95);
}
.lv-quote blockquote {
  font-size: 19px; line-height: 1.45; letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0; text-wrap: balance;
  color: #fff;
}
.lv-quote blockquote::before { content: '\201C'; margin-right: 2px; opacity: 0.5; }
.lv-quote blockquote::after { content: '\201D'; margin-left: 2px; opacity: 0.5; }
.lv-quote-by {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgb(255 255 255 / 0.70);
}
.lv-quote-by .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  border: 1px solid rgb(255 255 255 / 0.25);
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 600;
}

@media (max-width: 960px) {
  .login-split { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-pane { padding: var(--s-5); }
}
