/* Full-width logo row; illustration left and authentication form right. */
html:has(.lp_container--auth),
body:has(.lp_container--auth) {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.lp_container--auth {
    height: auto;
    min-height: calc(100vh - 50px);
    overflow-x: hidden;
    overflow-y: visible;
}

.fixed-header .lp_container--auth {
    overflow-x: hidden;
    overflow-y: visible;
}

.lp_container--auth .lp_columns {
    /* Preserve the 16px gap above 1046px, then move the image right as space runs out. */
    --auth-image-shift: clamp(0px, calc(1090px - 100vw), 300px);
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr);
    grid-template-rows: 120px 420px;
    align-content: center;
    align-items: center;
    column-gap: 0px;
    overflow: visible;
    margin-left:20px;
}

.lp_container--auth .auth-logo-zone {
    grid-column: 1;
    grid-row: 1;
    justify-self: right;
    width: 450px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.lp_container--auth .auth-logo-zone img {
    display: block;
    width: auto;
    height: 100%;
    object-fit: contain;
    margin-top:30px;
}

.lp_container--auth .auth-form-column {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: left;
    width: 450px;
    min-width: 450px;
    max-width: none;
    height: 400px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.login-wrapper .auth-client-logo {
    display: none;
}

.lp_container--auth .login-wrapper.login-wrapper--2fa {
    justify-self: center;
    width: 400px !important;
}

.lp_container--auth .login-wrapper--2fa .login-panel {
    max-width: 400px !important;
}

.lp_container--auth .auth-showcase {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: right;
    width: 550px;
    height: 450px;
    overflow: hidden;
    z-index: 1;
    transform: translateX(var(--auth-image-shift));
    transition: transform 0.3s ease;
}

.lp_container--auth .auth-showcase-rotator {
    position: relative;
    width: 100%;
    height: 100%;
}

.lp_container--auth .auth-showcase-image {
    position: absolute;
    inset: 0;
    width: calc(100% - 60px);
    height: auto;
    max-height: unset !important;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    justify-self: right;
    margin-top: 30px;
}

.lp_container--auth .auth-showcase-image.is-active {
    opacity: 1;
}

/* Once more than half the illustration is obscured, leave the form as the sole lower zone. */
@media (max-width: 700px) {
    .lp_container--auth .lp_columns {
        width: 100vw;
        max-width: 100vw;
        margin-inline: calc(50% - 50vw);
        grid-template-columns: 100%;
        justify-items: center;
        column-gap: 0;
        padding-inline: 0;
    }

    .lp_container--auth .auth-form-column {
        grid-column: 1;
        justify-self: center;
        width: 450px;
        min-width: 450px;
        margin-inline: auto;
    }

    .lp_container--auth .auth-logo-zone {
        grid-column: 1;
        justify-self: center;
        width: 450px;
        margin-inline: auto;
    }

    .lp_container--auth .auth-showcase {
        display: none;
    }
}
