/* ═══════════════════════════════════════════════════════════════════════
   auth-v4.css — sign up / sign in / forgot / reset on the v4 design system.
   Every colour is an --rv-* token, so light and dark come for free.
   (2026-09-11: replaces auth.css's su2-* pages)
   ═══════════════════════════════════════════════════════════════════════ */

.au { max-width: 1200px; margin: 0 auto; padding: 44px 32px 96px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(min(360px, 100%), .85fr); gap: 40px; align-items: start; position: relative; z-index: 1; }
.au--narrow { grid-template-columns: minmax(0, 1fr) minmax(min(360px, 100%), 460px); max-width: 1060px; align-items: center; min-height: calc(100vh - 220px); }
@media (max-width: 980px) { .au, .au--narrow { grid-template-columns: 1fr; padding: 28px 20px 72px; gap: 28px; min-height: 0; } .au--narrow .au-side { order: 2; } }

/* ── headline block ─────────────────────────────────────────────────── */
.au-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.au-eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: var(--rv-surface-4); border: 1px solid var(--rv-primary-pale); color: var(--rv-primary); border-radius: 999px; padding: 6px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.au-title { margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; color: var(--rv-ink); text-wrap: pretty; }
.au-title em { font-style: normal; color: var(--rv-primary); }
.au-sub { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--rv-body); max-width: 560px; text-wrap: pretty; }

/* ── plan picker ────────────────────────────────────────────────────── */
.au-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 1180px) { .au-plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .au-plans { grid-template-columns: 1fr; } }
.au-plan { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--rv-surface); border: 1.5px solid var(--rv-border); border-radius: 22px; padding: 20px; cursor: pointer; transition: transform .22s cubic-bezier(.23,1,.32,1), box-shadow .22s, border-color .22s; }
.au-plan:hover { transform: translateY(-3px); border-color: var(--rv-primary-pale); box-shadow: var(--rv-shadow); }
.au-plan.is-on { border-color: var(--rv-primary); box-shadow: 0 0 0 4px rgba(109, 92, 230, .12), var(--rv-shadow); }
.au-plan__check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--rv-border); background: var(--rv-surface); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .16s; }
.au-plan.is-on .au-plan__check { background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; }
.au-plan__check svg { width: 12px; height: 12px; }
.au-plan__name { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rv-muted); }
.au-plan__badge { position: absolute; top: -11px; left: 18px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--rv-gradient); border-radius: 999px; padding: 4px 11px; box-shadow: var(--rv-shadow-glow); }
.au-plan__price { display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.au-plan__cur { font-size: 18px; font-weight: 700; color: var(--rv-ink); }
.au-plan__amt { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--rv-ink); }
.au-plan__amt--text { font-size: 30px; }
.au-plan__per { font-size: 13px; color: var(--rv-muted); }
.au-plan__sub { font-size: 13.5px; font-weight: 600; color: var(--rv-ink-soft); line-height: 1.45; }
.au-plan__sub strong { color: var(--rv-success-deep); font-weight: 800; }
.au-plan__slider { margin: 2px 0 0; }
.au-plan__slider input[type=range] { width: 100%; accent-color: var(--rv-primary); cursor: pointer; }
.au-plan__sep { height: 1px; background: var(--rv-border); }
.au-plan__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.au-plan__feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--rv-body); }
.au-plan__feats li::before { content: ""; width: 16px; height: 16px; border-radius: 999px; flex-shrink: 0; margin-top: 1px; background: var(--rv-surface-4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%236d5ce6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; border: 1px solid var(--rv-primary-pale); }
.au-plan__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; border: 1.5px solid var(--rv-border); background: var(--rv-surface-2); color: var(--rv-ink); transition: all .16s; }
.au-plan.is-on .au-plan__cta { background: var(--rv-ink-panel); border-color: var(--rv-ink-panel); color: #fff; }
[data-theme="dark"] .au-plan.is-on .au-plan__cta { background: var(--rv-primary); border-color: var(--rv-primary); }
.au-plan--creator { background: linear-gradient(160deg, var(--rv-surface), var(--rv-surface-2)); }
.au-plan--agency .au-plan__cta { pointer-events: auto; }

.au-free { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--rv-surface); border: 1.5px solid var(--rv-border); border-radius: 18px; padding: 15px 18px; cursor: pointer; transition: border-color .16s, box-shadow .16s; }
.au-free:hover { border-color: var(--rv-primary-pale); }
.au-free.is-on { border-color: var(--rv-primary); box-shadow: 0 0 0 4px rgba(109, 92, 230, .12); }
.au-free__check { width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--rv-border); background: var(--rv-surface); display: inline-flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; }
.au-free.is-on .au-free__check { background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; }
.au-free__check svg { width: 12px; height: 12px; }
.au-free__body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; }
.au-free__name { font-size: 14.5px; font-weight: 800; color: var(--rv-ink); }
.au-free__text { font-size: 13px; color: var(--rv-body); line-height: 1.5; }
.au-free__price { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--rv-ink); white-space: nowrap; }
.au-free__price small { font-size: 12px; font-weight: 600; color: var(--rv-muted); margin-left: 4px; }
.au-legal { margin: 16px 0 0; font-size: 12.5px; color: var(--rv-muted); line-height: 1.55; }
.au-legal a { color: var(--rv-primary); font-weight: 600; }

/* ── form card ──────────────────────────────────────────────────────── */
.au-card { position: sticky; top: 92px; background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--rv-shadow-lg); }
@media (max-width: 980px) { .au-card { position: static; } }
.au-card__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--rv-gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--rv-shadow-glow); }
.au-card__icon svg { width: 22px; height: 22px; }
.au-card__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--rv-ink); }
.au-card__sub { margin: -8px 0 0; font-size: 14px; color: var(--rv-body); line-height: 1.55; }
.au-card__pick { display: flex; align-items: center; gap: 10px; background: var(--rv-surface-4); border: 1px solid var(--rv-primary-pale); border-radius: 14px; padding: 10px 13px; font-size: 13px; color: var(--rv-ink-soft); }
.au-card__pick strong { color: var(--rv-primary); }
.au-card__pick-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--rv-primary); flex-shrink: 0; }
.au-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.au-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.au-alert--error { background: var(--rv-danger-wash); border: 1px solid var(--rv-danger-pale); color: var(--rv-danger); }
.au-alert--success { background: var(--rv-success-wash); border: 1px solid var(--rv-success-pale); color: var(--rv-success-deep); }
.au-form { display: flex; flex-direction: column; gap: 12px; }
.au-field { display: flex; flex-direction: column; gap: 5px; position: relative; }
.au-label { font-size: 12.5px; font-weight: 700; color: var(--rv-ink-soft); }
.au-input { width: 100%; box-sizing: border-box; background: var(--rv-surface-2); border: 1.5px solid var(--rv-border); border-radius: 14px; padding: 13px 15px; font-size: 15px; font-family: inherit; color: var(--rv-ink); outline: none; transition: border-color .16s, box-shadow .16s, background .16s; }
.au-input::placeholder { color: var(--rv-muted); }
.au-input:focus { border-color: var(--rv-primary); box-shadow: 0 0 0 4px rgba(109, 92, 230, .12); background: var(--rv-surface); }
.au-input.is-error { border-color: var(--rv-danger); }
.au-field--pw .au-input { padding-right: 46px; }
.au-pw-toggle { position: absolute; right: 8px; bottom: 6px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--rv-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.au-pw-toggle:hover { color: var(--rv-ink); background: var(--rv-surface-4); }
.au-pw-toggle svg { width: 18px; height: 18px; }
.au-error { font-size: 12px; color: var(--rv-danger); }
.au-hint { font-size: 12px; color: var(--rv-muted); line-height: 1.5; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.au-link { font-size: 13px; font-weight: 600; color: var(--rv-primary); text-decoration: none; }
.au-link:hover { text-decoration: underline; }
.au-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px; border-radius: 999px; border: 0; background: var(--rv-gradient); color: #fff; font-size: 15.5px; font-weight: 800; font-family: inherit; cursor: pointer; box-shadow: var(--rv-shadow-glow); transition: transform .18s cubic-bezier(.23,1,.32,1), box-shadow .18s; }
.au-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(88, 80, 236, .55); }
.au-submit:active { transform: scale(.98); }
.au-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--rv-muted); }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: var(--rv-border); }
.au-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--rv-border); background: var(--rv-surface); color: var(--rv-ink); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: all .16s; }
.au-google:hover { border-color: var(--rv-primary); background: var(--rv-surface-3); color: var(--rv-ink); }
.au-google svg { width: 18px; height: 18px; }
.au-switch { margin: 0; text-align: center; font-size: 13.5px; color: var(--rv-body); }
.au-switch a { color: var(--rv-primary); font-weight: 700; text-decoration: none; }
.au-trust { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 2px 0 0; font-size: 12px; color: var(--rv-muted); }
.au-trust span { display: inline-flex; align-items: center; gap: 5px; }
.au-trust svg { width: 13px; height: 13px; color: var(--rv-success-deep); }

/* ── side column for sign in / forgot / reset ───────────────────────── */
.au-side { display: flex; flex-direction: column; gap: 22px; }
.au-side__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.au-side__item { display: flex; gap: 14px; align-items: flex-start; }
.au-side__icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; background: var(--rv-surface-4); border: 1px solid var(--rv-primary-pale); color: var(--rv-primary); display: inline-flex; align-items: center; justify-content: center; }
.au-side__icon svg { width: 18px; height: 18px; }
.au-side__item strong { display: block; font-size: 15px; font-weight: 800; color: var(--rv-ink); margin-bottom: 2px; }
.au-side__item p { margin: 0; font-size: 13.5px; color: var(--rv-body); line-height: 1.55; }
.au-side__proof { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--rv-muted); }
.au-side__faces { display: flex; }
.au-side__faces img { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--rv-page); object-fit: cover; margin-left: -8px; }
.au-side__faces img:first-child { margin-left: 0; }

/* ═══ 2026-09-14 responsive pass (owner: "sign up / login not responsive") ═══ */
/* The sticky form card is ~770px tall: on laptops at 125–150 % scaling
   (viewport height ≈ 700–900px) it was pinned with its bottom — Google
   button, sign-in link — cut off until the page end. Sticky only when it
   actually fits. */
@media (max-height: 960px) { .au-card { position: static; } }
/* plan picker: 2 columns earlier, Agency spans the row */
@media (max-width: 1280px) {
    .au-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .au-plan--agency { grid-column: 1 / -1; }
}
@media (min-width: 981px) and (max-width: 1100px) {   /* tablets in landscape only — phones stack below */
    .au { grid-template-columns: minmax(0, 1.1fr) minmax(min(320px, 100%), .9fr); gap: 28px; padding: 36px 24px 80px; }
    .au--narrow { grid-template-columns: minmax(0, 1fr) minmax(min(320px, 100%), 440px); }
    .au-plan { padding: 18px; }
    .au-plan__amt { font-size: 34px; }
}
@media (max-width: 980px) {
    .au, .au--narrow { grid-template-columns: 1fr; }
    .au-plan--agency { grid-column: auto; }
    .au-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .au-card { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
    .au, .au--narrow { padding: 20px 14px 56px; gap: 22px; }
    .au-plans { grid-template-columns: 1fr; gap: 12px; }
    .au-plan { padding: 18px 16px; border-radius: 18px; }
    .au-plan__amt { font-size: 32px; }
    .au-plan__feats li { font-size: 12.5px; }
    .au-card { padding: 22px 18px; border-radius: 20px; gap: 14px; }
    .au-card__title { font-size: 21px; }
    .au-input { font-size: 16px; padding: 12px 14px; }   /* 16px stops iOS zooming the field */
    .au-field--pw .au-input { padding-right: 46px; }
    .au-submit, .au-google { padding: 13px 16px; font-size: 14.5px; }
    .au-title { font-size: clamp(26px, 8vw, 32px); }
    .au-sub { font-size: 15px; }
    .au-trust { gap: 8px 12px; }
    .au-side__item { gap: 10px; }
}
@media (max-width: 400px) {
    .au-row { flex-wrap: wrap; }
    .au-plan__cta { font-size: 13px; padding: 10px 12px; }
}
/* 2026-09-14: the submit button had width:100% + 20px side padding without border-box → 40px wider than the
   card at every size (owner screenshot). Border-box for everything inside the auth layout. */
.au, .au *, .au::before, .au::after { box-sizing: border-box; }
.au-submit, .au-google, .au-input, .au-plan__cta { width: 100%; max-width: 100%; }
