/* =========================================
   Authentication Pages
   ========================================= */

.auth-page {
    min-height: 100vh;
    margin: 0;

    color: var(--text);
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(37, 99, 235, 0.12),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #f8fafc,
            #eef4ff
        );
}

.auth-shell {
    display: grid;
    place-items: center;

    min-height: 100vh;
    padding: 32px 20px;
}

.auth-card {
    width: min(100%, 480px);
    padding: 36px;

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.12);
}

.auth-brand {
    display: flex;
    justify-content: center;

    margin-bottom: 30px;
}

.auth-brand .preclear-brand__logo {
    width: 72px;
}

.auth-brand .preclear-brand__name {
    font-size: 1.65rem;
}

.auth-brand .preclear-brand__product {
    font-size: 0.72rem;
}

.auth-heading {
    text-align: center;
}

.auth-eyebrow {
    margin: 0 0 8px;

    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0;

    color: var(--heading);
    font-size: clamp(1.75rem, 5vw, 2.3rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.auth-heading > p:last-child {
    margin: 12px auto 0;

    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;

    width: 100%;
    max-width: 360px;

    margin: 28px auto 0;
}

.auth-secondary-action {
    margin: 22px 0 0;

    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
}

.auth-secondary-action a {
    color: var(--primary);
    font-weight: 700;
}

.auth-secondary-action a:hover {
    color: var(--primary-hover);
}

.auth-back-link {
    display: block;

    margin-top: 18px;

    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    text-align: center;
}

.auth-back-link:hover {
    color: var(--primary);
}

@media (max-width: 520px) {
    .auth-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .auth-brand {
        margin-bottom: 24px;
    }
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
}

.auth-remember input {
    width: 17px;
    height: 17px;
    margin: 0;

    accent-color: var(--primary);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;

    width: fit-content;

    color: var(--muted, #64748b);
    font-size: 0.82rem;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    position: static;

    display: inline-block;
    flex: 0 0 18px;

    width: 18px;
    height: 18px;
    margin: 0;

    overflow: visible;
    clip: auto;

    opacity: 1;
    pointer-events: auto;

    appearance: auto;
    -webkit-appearance: checkbox;

    accent-color: var(--primary, #2563eb);
    cursor: pointer;
}

.auth-password-row {
    display: flex;
    justify-content: flex-end;

    margin-top: -8px;
}

.auth-password-row a {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-password-row a:hover {
    color: var(--primary-hover);
}

.auth-card .alert {
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
}
.auth-card .button--full {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    box-sizing: border-box;
}

