﻿.auth-page {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 76px);
    padding: 70px 20px 100px;
    display: grid;
    place-items: start center;
    background: var(--bw-bg);
    color: var(--bw-text);
}

.auth-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
}

.auth-glow-one {
    width: 450px;
    height: 450px;
    top: 80px;
    left: -240px;
    background: rgba(68, 93, 240, 0.11);
}

.auth-glow-two {
    width: 500px;
    height: 500px;
    right: -280px;
    bottom: -100px;
    background: rgba(108, 76, 226, 0.09);
}

.auth-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 465px);
}

.auth-brand {
    width: fit-content;
    margin: 0 auto 27px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bw-text);
    text-decoration: none;
}

    .auth-brand:hover {
        color: var(--bw-text);
    }

    .auth-brand strong {
        font-size: 1.05rem;
        font-weight: 780;
        letter-spacing: -0.035em;
    }

.auth-brand-mark {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: transparent url("/assets/fullworth/fullworth-mark.svg") center / contain no-repeat;
    box-shadow: none;
    filter: drop-shadow(0 9px 18px rgba(37, 82, 221, 0.18));
}

    .auth-brand-mark span {
        display: none;
    }

.auth-card {
    padding: 36px;
    border: 1px solid var(--bw-border);
    border-radius: 25px;
    background: var(--bw-surface-soft);
    box-shadow: var(--bw-card-shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-kicker {
    color: #8195ff;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 10px 0 8px;
    color: var(--bw-text);
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 770;
    letter-spacing: -0.05em;
}

.auth-heading p {
    margin: 0;
    color: var(--bw-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-error,
.auth-success {
    margin-bottom: 20px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 13px;
    font-size: 0.79rem;
    line-height: 1.45;
}

.auth-error {
    border: 1px solid rgba(225, 82, 74, 0.2);
    background: rgba(225, 82, 74, 0.09);
    color: #e77b73;
}

.auth-success {
    border: 1px solid rgba(48, 178, 114, 0.22);
    background: rgba(48, 178, 114, 0.09);
    color: #5bcf91;
}

    .auth-error > span,
    .auth-success > span {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        margin-top: 1px;
        border-radius: 50%;
        font-size: 0.68rem;
        font-weight: 900;
    }

    .auth-error > span {
        background: rgba(225, 82, 74, 0.14);
    }

    .auth-success > span {
        background: rgba(48, 178, 114, 0.14);
    }

.external-signin-list {
    display: grid;
    gap: 10px;
}

.external-signin-button {
    min-height: 46px;
    padding: 11px 14px;
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    border: 1px solid var(--bw-border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--bw-bg-elevated) 90%, transparent);
    color: var(--bw-text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 720;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

    .external-signin-button::after {
        content: "→";
        justify-self: end;
        color: var(--bw-text-subtle);
        font-size: 0.82rem;
    }

    .external-signin-button:hover {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, #6f86ff 48%, var(--bw-border));
        background: color-mix(in srgb, var(--bw-bg-elevated) 96%, #536df2 4%);
        color: var(--bw-text);
        box-shadow: 0 10px 24px rgba(25, 37, 91, 0.09);
    }

    .external-signin-button:active {
        transform: translateY(0);
    }

.external-provider-mark {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bw-border);
    border-radius: 9px;
    background: var(--bw-surface-soft);
    color: var(--bw-text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.provider-google {
    font-family: Arial, sans-serif;
}

.provider-apple {
    font-family: ui-sans-serif, system-ui, sans-serif;
}

.provider-microsoft {
    grid-template-columns: repeat(2, 5px);
    grid-template-rows: repeat(2, 5px);
    gap: 2px;
}

    .provider-microsoft > span {
        width: 5px;
        height: 5px;
        border-radius: 1px;
        background: currentColor;
    }

.auth-provider-separator {
    margin: 18px 0;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.field {
    display: grid;
    gap: 8px;
}

    .field > span {
        color: var(--bw-text-secondary);
        font-size: 0.76rem;
        font-weight: 680;
    }

    .field input {
        width: 100%;
        box-sizing: border-box;
        padding: 13px 14px;
        border: 1px solid var(--bw-border);
        border-radius: 12px;
        outline: none;
        background: var(--bw-bg-elevated);
        color: var(--bw-text);
        font-size: 0.87rem;
        transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
    }

        .field input::placeholder {
            color: var(--bw-text-subtle);
        }

        .field input:focus {
            border-color: rgba(93, 119, 255, 0.65);
            box-shadow: 0 0 0 4px rgba(83, 108, 242, 0.11);
        }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .form-options > a {
        color: #8095ff;
        text-decoration: none;
        font-size: 0.74rem;
        font-weight: 700;
    }

        .form-options > a:hover {
            text-decoration: underline;
        }

.remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bw-text-muted);
    font-size: 0.74rem;
    cursor: pointer;
}

    .remember-option input {
        width: 15px;
        height: 15px;
        accent-color: #536df2;
    }

.password-rules {
    padding: 13px 14px;
    display: grid;
    gap: 5px;
    border: 1px solid var(--bw-border);
    border-radius: 12px;
    background: rgba(100, 120, 170, 0.045);
}

    .password-rules strong {
        margin-bottom: 2px;
        color: var(--bw-text-secondary);
        font-size: 0.7rem;
    }

    .password-rules span {
        position: relative;
        padding-left: 14px;
        color: var(--bw-text-muted);
        font-size: 0.68rem;
    }

        .password-rules span::before {
            content: "•";
            position: absolute;
            left: 2px;
            color: #667ef3;
        }

.legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid var(--bw-border);
    border-radius: 12px;
    color: var(--bw-text-muted);
    background: rgba(100, 120, 170, 0.035);
    font-size: 0.72rem;
    line-height: 1.55;
    cursor: pointer;
}

    .legal-consent input {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
        margin: 2px 0 0;
        accent-color: #536df2;
    }

    .legal-consent a {
        color: #8095ff;
        font-weight: 700;
        text-decoration: none;
    }

        .legal-consent a:hover,
        .legal-consent a:focus-visible {
            text-decoration: underline;
        }

.auth-choice-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bw-text-subtle);
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

    .auth-choice-separator::before,
    .auth-choice-separator::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--bw-border);
    }

.auth-submit {
    width: 100%;
    margin-top: 3px;
    padding: 13px 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(145deg, #244bf1, #5972f5);
    color: white;
    box-shadow: 0 12px 27px rgba(50, 79, 232, 0.23);
    font-weight: 730;
    font-size: 0.86rem;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

    .auth-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(50, 79, 232, 0.3);
    }

    .auth-submit:active {
        transform: translateY(0);
    }

.privacy-note {
    margin: 18px 8px 0;
    color: var(--bw-text-subtle);
    text-align: center;
    font-size: 0.66rem;
    line-height: 1.5;
}

.auth-divider {
    margin: 25px 0 20px;
}

    .auth-divider span {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--bw-border);
    }

.auth-switch {
    margin: 0;
    color: var(--bw-text-muted);
    text-align: center;
    font-size: 0.77rem;
    line-height: 1.55;
}

    .auth-switch a {
        margin-left: 4px;
        color: #8095ff;
        text-decoration: none;
        font-weight: 700;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

.back-home {
    width: fit-content;
    margin: 24px auto 0;
    display: block;
    color: var(--bw-text-muted);
    text-decoration: none;
    font-size: 0.74rem;
    transition: color 150ms ease;
}

    .back-home:hover {
        color: var(--bw-text);
    }

@media (max-width: 520px) {
    .auth-page {
        padding: 50px 14px 70px;
    }

    .auth-card {
        padding: 28px 21px;
        border-radius: 21px;
    }

    .auth-heading h1 {
        font-size: 1.75rem;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* FullWorth v2 authentication polish */

.site-shell .auth-card {
    border-color: var(--bw-border);
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 109, 248, 0.055), transparent 20rem),
        var(--bw-surface-soft);
}

.site-shell .auth-brand strong {
    letter-spacing: -0.045em;
}

.site-shell .auth-heading h1 {
    color: var(--bw-text);
}

.site-shell .field input,
.site-shell .external-signin-button,
.site-shell .password-rules,
.site-shell .legal-consent {
    border-color: var(--bw-border);
}

@media (max-width: 520px) {
    .site-shell .auth-brand {
        margin-bottom: 24px;
    }
}
