.auth-page .auth-poster-layout {
    --auth-grain-opacity: 0.22;
    position: relative;
    display: block;
    padding-inline: clamp(32px, 4.2vw, 80px);
    isolation: isolate;
}

.auth-poster-layout .auth-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    height: 100%;
    background: #f7f5f2;
    isolation: isolate;
}

.auth-poster-layout .auth-visual::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background: url("login-grain.svg") repeat;
    background-size: 160px 160px;
    opacity: var(--auth-grain-opacity);
    mix-blend-mode: multiply;
}

.auth-poster-layout .auth-visual > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.auth-poster-layout .auth-poster-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-poster-layout .auth-brand-header {
    position: absolute;
    top: 36px;
    left: clamp(32px, 4.2vw, 80px);
    padding: 0;
}

.auth-poster-layout .auth-panel {
    position: relative;
    width: clamp(360px, 32vw, 480px);
    margin-left: auto;
    padding-inline: 0;
}

.auth-poster-layout .auth-panel-top {
    min-height: 80px;
    padding-block: 16px;
}

.auth-poster-layout .auth-card {
    max-width: none;
    padding: 32px;
    border: 1px solid #e8e5e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 52px #241b161a;
}

.auth-poster-layout .auth-footer {
    color: #5e5a56;
}

@media (min-width: 1001px) {
    .auth-poster-layout .auth-panel {
        margin-right: clamp(0px, calc(15.625vw - 200px), 100px);
    }
}

@media (max-width: 1000px) {
    .auth-page .auth-poster-layout {
        --auth-mobile-hero-height: clamp(260px, 76vw, 320px);
        padding-inline: 16px;
        background: #f8f5f1;
    }

    .auth-poster-layout .auth-visual {
        top: 0;
        bottom: auto;
        height: var(--auth-mobile-hero-height);
    }

    .auth-poster-layout .auth-visual::before {
        position: absolute;
        inset: auto 0 0;
        z-index: 1;
        height: 120px;
        content: "";
        pointer-events: none;
        background: linear-gradient(to bottom, #f8f5f100, #f8f5f1 60%);
    }

    .auth-poster-layout .auth-poster-image {
        object-fit: cover;
        object-position: left 25%;
    }

    .auth-poster-layout .auth-brand-header {
        display: none;
    }

    .auth-poster-layout .auth-panel {
        width: 100%;
    }

    .auth-poster-layout .auth-panel-top {
        justify-content: flex-start;
        align-items: flex-start;
        min-height: var(--auth-mobile-hero-height);
        margin-bottom: 0;
        padding-block: 20px 0;
    }

    .auth-poster-layout .auth-mobile-brand {
        display: inline-flex;
        padding: 10px 12px;
        border: 1px solid #ffffff;
        border-radius: 14px;
        background: #fffffff2;
        box-shadow: 0 4px 16px #382a2210;
    }

    .auth-poster-layout .auth-card {
        position: relative;
        z-index: 1;
        max-width: 480px;
        margin: -64px auto auto;
        padding: 24px;
        border-color: #fff;
        border-radius: 20px;
        box-shadow: 0 12px 32px #40251c1a;
    }

    .auth-poster-layout .auth-card .card-heading-row {
        margin-bottom: 24px;
    }

    .auth-poster-layout .buyer-form .form-field {
        margin-bottom: 18px;
    }

    .auth-poster-layout .auth-card .account-switch {
        margin-top: 20px;
    }

    .auth-poster-layout .auth-quick-login {
        margin-top: 20px;
    }

    .auth-poster-layout .auth-quick-actions {
        margin-top: 12px;
    }

    .auth-poster-layout .buyer-form input:not([type="hidden"]) {
        font-size: 16px;
    }
}

@media (min-width: 600px) and (max-width: 1000px) {
    .auth-poster-layout .auth-panel-top {
        justify-content: flex-end;
    }
}

@media (max-width: 360px) {
    .auth-page .auth-poster-layout {
        padding-inline: 16px;
    }

    .auth-poster-layout .auth-card {
        padding: 24px 20px;
    }

    .auth-poster-layout .auth-panel-top {
        padding-block-start: 12px;
    }

    .auth-poster-layout .auth-mobile-brand {
        padding: 8px 10px;
        border-radius: 12px;
    }
}
