/* Sign-in, sign-up, billing — tokens and layout from the ExitSight redesign handoff (Signup mock). */
:root {
  --ink: #14171a; --ink-2: #2b3036; --muted: #5b6169; --line: #e3e5e8; --line-hair: #f0f1f3; --line-strong: #cdd1d6;
  --surface: #fff; --ground: #f6f7f8; --row-derived: #f4f6f9; --accent: #2a67c8; --accent-hover: #1d4c96;
  --accent-soft-bg: #f2f6fd; --accent-soft-border: #d4e2f7; --accent-soft-ink: #25508f;
  --positive: #1f7a4d; --positive-soft: #e8f1ea;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
html, body { margin: 0; }
.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink);
  font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
input:focus, button:focus-visible { outline: none; }
.inline-form { display: inline; }
.auth-spacer { flex: 1; min-width: 12px; }

/* Header / footer */
.auth-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.auth-header-inner, .auth-footer-inner { max-width: 1080px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; box-sizing: border-box; }
.auth-brand { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.auth-brand:hover { text-decoration: none; color: var(--ink); }
.auth-header-note { font-size: 13px; color: var(--muted); }
.auth-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: auto; }
.auth-footer-inner { padding: 14px 24px; gap: 18px; font-size: 12px; color: var(--muted); }
.auth-footer-inner a { color: var(--muted); }
.auth-footer-inner a.accent { color: var(--accent); }

/* Main: wrapping flex row — form card (flex 1 1 460px) + rail (flex 1 1 280px, max 380px). */
.auth-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 36px 24px 48px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.auth-main--narrow { max-width: 520px; }
.auth-primary { flex: 1 1 460px; min-width: 0; }
.auth-main--narrow .auth-primary { flex-basis: 100%; }
.auth-rail { flex: 1 1 280px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 800px) { .auth-rail { max-width: none; } }

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card-body { padding: 26px 30px 28px; }
@media (max-width: 520px) { .card-body { padding: 22px 18px 24px; } }
.card h1 { font-family: var(--serif); font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; }
.lead { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; max-width: 52ch; }

/* Step bar: three equal cells, current cell underlined, completed show a tick. */
.steps { display: flex; border-bottom: 1px solid var(--line); }
.step { flex: 1; padding: 12px 16px 11px; display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); }
.step.is-current { box-shadow: inset 0 -2px 0 var(--accent); color: var(--ink); font-weight: 600; }
.step.is-done { color: var(--ink); }
.step-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600; background: #fff; color: var(--muted); border: 1px solid var(--line-strong); box-sizing: border-box; }
.step.is-current .step-dot { background: var(--accent); color: #fff; border: none; }
.step.is-done .step-dot { background: var(--positive-soft); color: var(--positive); border: none; }
.step-label { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.step { text-decoration: none; }
a.step:hover .step-label { text-decoration: underline; }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .form-grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12.5px; font-weight: 500; }
.field-label .hint { font-weight: 400; color: var(--muted); }
.field-label-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
input[type=email], input[type=password], input[type=text] { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px;
  padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,103,200,.14); }
.link-button { background: none; border: none; padding: 0; font: inherit; font-size: 12px; color: var(--accent); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.errors { color: #8a2b2b; font-size: 12.5px; margin: 0 0 4px; padding-left: 18px; }
.fine { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 0; }
.fine-rule { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-hair); }
.hint-line { font-size: 12px; line-height: 1.5; color: var(--muted); margin: -6px 0 0; }
.hint-line:empty { display: none; }

/* Password checks */
.pw-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: -4px; }
.pw-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pw-check-mark { width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; background: #fff; color: transparent; border: 1px solid var(--line-strong); box-sizing: border-box; }
.pw-check.is-ok { color: var(--positive); }
.pw-check.is-ok .pw-check-mark { background: var(--positive-soft); color: var(--positive); border: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-size: 14px; font-weight: 500;
  padding: 10px 16px; border-radius: 7px; cursor: pointer; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); text-decoration: none; box-sizing: border-box; }
.btn:hover { border-color: #9aa1a9; text-decoration: none; color: var(--ink); }
.btn-small { padding: 6px 13px; font-size: 13px; border-radius: 6px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); font-size: 14.5px; padding: 11px 18px; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-primary.is-gated { opacity: .55; cursor: not-allowed; }
.btn-primary.is-gated:hover { background: var(--accent); border-color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); font-size: 14.5px; }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn-row .btn-grow { flex: 1; }
.btn-row form { display: contents; }

/* SSO */
.sso-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.sso-grid.is-single { grid-template-columns: 1fr; }
@media (max-width: 520px) { .sso-grid { grid-template-columns: 1fr; } }
.sso-grid form { display: contents; }
.btn-sso { padding: 9px 12px; font-size: 13.5px; width: 100%; }
.ms-mark { display: grid; grid-template-columns: 7px 7px; gap: 1px; }
.ms-mark span { width: 7px; height: 7px; display: block; }
.ms-mark span:nth-child(1) { background: #f25022; } .ms-mark span:nth-child(2) { background: #7fba00; }
.ms-mark span:nth-child(3) { background: #00a4ef; } .ms-mark span:nth-child(4) { background: #ffb900; }
.g-mark { font-weight: 700; font-size: 14px; color: #4285f4; }
.or-rule { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 12px; color: var(--muted); }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); display: block; }

/* Role chips and the segmented control: hidden radios, styled labels. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .seg input, .plan-card input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.chip { position: relative; }
.chip span { display: inline-block; padding: 7px 13px; border-radius: 7px; font-size: 13px; cursor: pointer; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.chip:hover span { border-color: #9aa1a9; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft-bg); color: var(--accent-hover); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(42,103,200,.14); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; position: relative; }
.seg label { position: relative; }
.seg label + label span { border-left: 1px solid var(--line-strong); }
.seg span { display: block; padding: 7px 15px; font-size: 13px; cursor: pointer; background: #fff; color: var(--muted); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { box-shadow: inset 0 0 0 2px rgba(42,103,200,.4); }
.group-label { font-size: 12.5px; font-weight: 500; margin-bottom: 8px; }
.form-stack--loose { gap: 18px; }

/* Payment: plan picker, order summary, recap */
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 520px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card { position: relative; display: block; cursor: pointer; }
.plan-card-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; }
.plan-card:hover .plan-card-box { border-color: #9aa1a9; }
.plan-card input:checked + .plan-card-box { border-color: var(--accent); background: var(--accent-soft-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-card input:focus-visible + .plan-card-box { box-shadow: 0 0 0 3px rgba(42,103,200,.14); }
.plan-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-card-name { font-size: 13.5px; font-weight: 600; }
.plan-card-badge { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-soft-ink); background: var(--accent-soft-border); border-radius: 4px; padding: 1px 6px; }
.plan-card-price { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.plan-card-price small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan-card-note { font-size: 12px; color: var(--muted); }
.summary { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line-hair); font-size: 13px; color: var(--muted); }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-hair); }
.summary-plan { font-size: 14.5px; font-weight: 600; }
.summary-note { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.summary-price, .summary-total .mono { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; background: var(--row-derived); font-size: 13.5px; font-weight: 600; }
.summary-total .mono { font-size: 13.5px; }
.renewal { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.recap { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 20px; }
.recap-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 13px; }
.recap-row .k { color: var(--muted); }
.recap-row .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recap-row a { font-size: 12.5px; }
.stripe-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.stripe-mark { font-weight: 700; color: #635bff; letter-spacing: -.01em; font-size: 13px; }

/* Rail */
.rail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.rail-title { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.trust-list { display: flex; flex-direction: column; gap: 13px; }
.trust-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.trust-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent-soft-bg); border: 1px solid var(--accent-soft-border); color: var(--accent-soft-ink);
  font-family: var(--mono); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.trust-title { font-size: 13.5px; font-weight: 600; }
.trust-body { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.rail-link { display: inline-block; font-size: 12.5px; margin-top: 14px; }
.included { display: flex; flex-direction: column; gap: 6px; }
.included div { display: flex; gap: 9px; align-items: baseline; font-size: 13px; line-height: 1.45; }
.included .tick { color: var(--positive); font-weight: 600; }
.testimonial { margin: 0; padding: 16px 20px; border-left: 2px solid var(--line-strong); }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.testimonial figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Flash and misc */
.flash { padding: 9px 12px; border-radius: 6px; font-size: 13px; margin: 0 0 14px; }
.flash-alert { background: #fdf2f2; border: 1px solid #f1c9c9; color: #8a2b2b; }
.flash-notice { background: var(--accent-soft-bg); border: 1px solid var(--accent-soft-border); color: var(--accent-soft-ink); }
.links { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.mono { font-family: var(--mono); }

/* Billing (existing users) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.plan { border: 1px solid var(--line); border-radius: 9px; padding: 18px 20px; background: #fff; display: flex; flex-direction: column; }
.plan.is-featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-name { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.plan-price { font: 600 27px/1.1 var(--mono); letter-spacing: -.015em; margin: 8px 0 2px; }
.plan-per { color: var(--muted); font-size: 12.5px; }
.plan ul { padding-left: 18px; margin: 12px 0 16px; font-size: 13px; color: var(--muted); }
.plan form { margin-top: auto; }
.status { border: 1px solid var(--accent-soft-border); background: var(--accent-soft-bg); color: var(--accent-soft-ink);
  border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.status form { display: inline; }
