/* auth-v2.css — design-template auth shell (login / signup), from design-src
 * mvp.css + page styles. Control classes (.field/.input/.btn/.cb/.sso-btn) are
 * SCOPED under .auth-shell so they don't leak into the dashboard/billing/admin
 * screens that still use the older shared classes. Loaded after auth.css so it
 * wins for the auth screens. */

.auth-shell {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-shell .auth-left {
  display: flex; flex-direction: column;
  padding: 32px 48px 48px;
}
.auth-shell .auth-form-wrap {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 420px; width: 100%; margin: 0 auto;
}
.auth-shell .auth-form-wrap h1 { font: 700 32px var(--font-sans); letter-spacing: -0.025em; color: var(--fg-1); }
.auth-shell .auth-form-wrap .sub { font: 400 14px/1.5 var(--font-sans); color: var(--fg-2); margin-top: 8px; }
.auth-shell .auth-meta {
  font: 500 11px var(--font-mono);
  color: var(--fg-3); letter-spacing: 0.04em;
  display: flex; justify-content: space-between; align-items: center;
}
.auth-shell .auth-meta a { color: var(--accent); }
.auth-shell .auth-right {
  background: var(--fg-1); color: var(--deck-text);
  position: relative; overflow: hidden;
  padding: 32px 48px 48px;
  display: flex; flex-direction: column;
}
.auth-shell .auth-right::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--deck-accent);
}
.auth-shell .auth-right .auth-meta { color: var(--deck-text-dim); }
.auth-shell .auth-aside {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: 480px;
}
.auth-shell .auth-aside .pull {
  font: 700 32px/1.2 var(--font-sans);
  letter-spacing: -0.02em; color: var(--deck-text); text-wrap: balance;
}
.auth-shell .auth-aside .pull em { font-style: normal; color: var(--deck-accent); }
.auth-shell .auth-aside .cite {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--deck-text-dim); margin-top: 18px;
}
.auth-shell .auth-aside .stats {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.auth-shell .auth-aside .stat .num {
  font: 700 28px var(--font-mono); letter-spacing: -0.02em; color: var(--deck-accent);
}
.auth-shell .auth-aside .stat .lbl {
  font: 500 11px var(--font-sans); color: var(--deck-text-dim); margin-top: 4px; line-height: 1.4;
}
.auth-shell .auth-aside .feat-list {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
  font: 400 14px/1.45 var(--font-sans); color: var(--deck-text);
}
.auth-shell .auth-aside .feat-list li { display: flex; gap: 10px; }
.auth-shell .auth-aside .feat-list .ck { color: var(--deck-accent); font-weight: 700; flex-shrink: 0; }

/* Brand lock-up reused from home.css */
.auth-shell .brand-lock { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.auth-shell .wm { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--fg-1); }
.auth-shell .wm .dot { color: var(--accent); }
.auth-shell .auth-right .wm { color: var(--deck-text); }

/* Form fields (scoped) */
.auth-shell .field { display: flex; flex-direction: column; gap: 6px; }
.auth-shell .field-row { display: flex; gap: 12px; }
.auth-shell .field-row > .field { flex: 1; }
.auth-shell .field label { font: 500 12px var(--font-sans); color: var(--fg-2); }
.auth-shell .field .hint { font: 400 11px var(--font-sans); color: var(--fg-3); margin-top: 2px; }
.auth-shell .field .err { font: 500 11px var(--font-sans); color: var(--red); margin-top: 2px; }
.auth-shell .input, .auth-shell select.input, .auth-shell textarea.input {
  height: 38px; border: 1px solid var(--border-2); border-radius: var(--r-md);
  background: #fff; padding: 0 12px;
  font: 400 14px var(--font-sans); color: var(--fg-1); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.auth-shell .input::placeholder { color: var(--fg-3); }
.auth-shell .input:focus { border-color: var(--accent); box-shadow: var(--shadow-focus); }
.auth-shell .input-wrap { position: relative; }
.auth-shell .input-wrap .input { width: 100%; padding-right: 56px; }
.auth-shell .input-wrap .toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; padding: 6px; color: var(--fg-3); cursor: pointer;
  display: flex; align-items: center; border-radius: var(--r-sm);
}
.auth-shell .input-wrap .toggle:hover { color: var(--fg-1); background: var(--bg-2); }

/* Checkbox */
.auth-shell .cb {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 13px var(--font-sans); color: var(--fg-1); cursor: pointer; user-select: none;
}
.auth-shell .cb input { position: absolute; opacity: 0; pointer-events: none; }
.auth-shell .cb .box {
  width: 16px; height: 16px; border: 1.5px solid var(--border-2); border-radius: 4px;
  background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-shell .cb input:checked + .box { background: var(--accent); border-color: var(--accent); }
.auth-shell .cb input:checked + .box::after {
  content: ''; width: 4px; height: 8px;
  border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* SSO buttons */
.auth-shell .sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; width: 100%;
  border: 1px solid var(--border-2); border-radius: var(--r-md);
  background: #fff; color: var(--fg-1); font: 500 13px var(--font-sans);
  cursor: pointer; transition: background var(--dur) var(--ease);
}
.auth-shell .sso-btn:hover { background: var(--bg-2); }
.auth-shell .sso-btn .gico { width: 18px; height: 18px; flex-shrink: 0; }
.auth-shell .sso-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.auth-shell .sso-divider::before, .auth-shell .sso-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-1); }
.auth-shell .sso-divider span { font: 500 11px var(--font-mono); color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; }

/* Buttons (scoped so they don't restyle other screens) */
.auth-shell .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--border-2); border-radius: var(--r-md);
  background: #fff; color: var(--fg-1); font: 500 13px var(--font-sans);
  cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-decoration: none; white-space: nowrap;
}
.auth-shell .btn:hover { background: var(--bg-2); }
.auth-shell .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.auth-shell .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.auth-shell .btn.ghost { border-color: transparent; background: transparent; color: var(--fg-2); }
.auth-shell .btn.ghost:hover { background: var(--bg-2); color: var(--fg-1); }
.auth-shell .btn.lg { height: 42px; padding: 0 18px; font-size: var(--fs-md); }
.auth-shell .btn.sm { height: 28px; padding: 0 10px; font-size: var(--fs-base); }
.auth-shell .btn.block { width: 100%; }

.auth-shell .col { display: flex; flex-direction: column; gap: 8px; }
.auth-shell .eyebrow { font: 600 11px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.auth-shell .eyebrow.gold { color: var(--deck-accent); }

/* Signup stepper */
.auth-shell .stepper {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font: 500 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3);
}
.auth-shell .stepper .sd { width: 6px; height: 6px; border-radius: 50%; background: var(--bg-3); }
.auth-shell .stepper .sd.on { background: var(--accent); }

/* Aside callout box */
.auth-shell .aside-note {
  margin-top: 36px; padding: 16px 18px;
  background: var(--deck-panel-2); border-left: 4px solid var(--deck-accent); border-radius: 4px;
}
.auth-shell .aside-note .q { font: 500 13px/1.5 var(--font-sans); color: var(--deck-text); margin-top: 6px; }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell .auth-right { display: none; }
}
