/* ============================================================
   CLICKASE — AUTH POSTER
   Login / signup built from the landing poster language:
   topline + sticky nav + bordered poster + hairlines, mono
   micro type, flat fields. No shadows, no radius, no colour
   outside the landing tokens.
   ============================================================ */

body.lp.auth {
    color-scheme: dark;
}

/* ── poster shell ─────────────────────────────────────────── */
.auth-hero {
    padding-bottom: clamp(48px, 6vw, 84px);
}

.auth-poster {
    padding-top: clamp(20px, 2.4vw, 30px);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(28px, 4vw, 72px);
    padding-top: clamp(26px, 3vw, 44px);
}

/* ── left: statement ──────────────────────────────────────── */
.auth-intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.auth-kicker {
    color: var(--lp-dim);
}

.auth-title {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.auth-title em {
    white-space: normal;
}

.auth-title .title {
    display: block;
}

.auth-title .red {
    color: var(--accent);
}

.auth-copy {
    margin: 0;
    max-width: 46ch;
    color: var(--lp-dim);
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: auto;
    border-top: 1px solid var(--lp-line);
}

.auth-metric {
    padding: 16px 0 2px;
    border-right: 1px solid var(--lp-line-soft);
}

.auth-metric:last-child {
    border-right: 0;
}

.auth-metric .n {
    display: block;
    font-family: var(--lp-disp);
    font-weight: 500;
    font-stretch: 125%;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    line-height: 1;
    letter-spacing: -0.01em;
}

.auth-metric .l {
    display: block;
    margin-top: 9px;
    font-family: var(--lp-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lp-dim);
}

.auth-note {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--lp-line-soft);
    font-family: var(--lp-mono);
    font-size: 9.5px;
    line-height: 1.7;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-dim);
}

/* ── right: form panel ────────────────────────────────────── */
.auth-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding-left: clamp(24px, 3.4vw, 56px);
    border-left: 1px solid var(--lp-line);
}

.auth-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--lp-line);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-fields {
    display: grid;
    gap: 14px;
}

.auth-row-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.auth-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--lp-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lp-dim);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--lp-line);
    border-radius: 0;
    color: var(--lp-fg);
    font-family: var(--lp-body);
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-input-wrap .auth-input {
    padding-right: 52px;
}

.auth-input::placeholder {
    color: var(--lp-faint);
    opacity: 1;
}

.auth-input:hover {
    border-color: var(--lp-line-soft);
}

.auth-input:focus {
    outline: none;
    border-color: var(--lp-fg);
    background: rgba(255, 255, 255, 0.045);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--lp-fg);
    box-shadow: 0 0 0 1000px #0b0b0d inset;
    caret-color: var(--lp-fg);
}

.auth-eye {
    position: absolute;
    right: 5px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--lp-dim);
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-eye:hover {
    color: var(--lp-fg);
}

.auth-eye svg {
    width: 18px;
    height: 18px;
}

.auth-eye .eye-closed {
    display: none;
}

.auth-eye.is-visible .eye-open {
    display: none;
}

.auth-eye.is-visible .eye-closed {
    display: block;
}

/* ── google + divider ─────────────────────────────────────── */
body.lp .auth-google {
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    background: rgba(255, 255, 255, 0.02);
}

.auth-google svg {
    width: 15px;
    height: 15px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--lp-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lp-faint);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--lp-line-soft);
}

/* ── actions + feedback ───────────────────────────────────── */
body.lp .auth-submit {
    width: 100%;
    height: 54px;
    padding: 0 24px;
    font-size: 11px;
    letter-spacing: 0.2em;
}

body.lp .lp-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.auth-error {
    min-height: 15px;
    margin: 0;
    font-family: var(--lp-mono);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}

.auth-error:empty::before {
    content: "";
    display: block;
    height: 15px;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-link {
    font-family: var(--lp-mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-dim);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-link:hover {
    color: var(--lp-fg);
    border-bottom-color: var(--lp-fg);
}

.auth-link-accent {
    color: var(--accent);
}

.auth-link-accent:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ── terms ────────────────────────────────────────────────── */
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--lp-dim);
    cursor: pointer;
}

.auth-check input {
    position: relative;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid var(--lp-line);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-check input:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.auth-check input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #08080a;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.auth-check a {
    color: var(--lp-fg);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-check a:hover {
    color: var(--accent);
}

/* ── bottom strip ─────────────────────────────────────────── */
.auth-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--lp-line-soft);
}

.auth-strip .lp-micro {
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--lp-faint);
}

/* ── footer ───────────────────────────────────────────────── */
.auth-footer .lp-footer-grid {
    padding: clamp(36px, 4.5vw, 60px) 0;
}

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .auth-title {
        font-size: clamp(1.9rem, 8vw, 2.9rem);
    }

    .auth-panel {
        padding-left: 0;
        padding-top: 24px;
        border-left: 0;
        border-top: 1px solid var(--lp-line);
    }

    .auth-metrics {
        margin-top: 4px;
    }
}

@media (max-width: 640px) {
    .auth-row-2 {
        grid-template-columns: 1fr;
    }

    .auth-input,
    .auth-google,
    body.lp .auth-submit {
        height: 50px;
    }

    .auth-eye {
        right: 2px;
        width: 40px;
        height: 40px;
    }

    .auth-links {
        gap: 10px;
    }

    .auth-strip {
        gap: 8px;
    }
}
