body:has(.fx-auth) #newsletter-popup,
body:has(.fx-auth) .newsletter-popup {
    display: none !important;
}

.fx-auth {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    min-height: 100vh;
    background: #fff;
}

.show-admin-bar .fx-auth {
    min-height: calc(100vh - 40px);
}

.fx-auth__side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 96px 48px 48px;
    background: #f6f4ef;
    overflow: hidden;
}

.show-admin-bar .fx-auth__side {
    min-height: calc(100vh - 40px);
}

.fx-auth__logo {
    position: absolute;
    top: 28px;
    left: 36px;
    z-index: 2;
}

.fx-auth__logo .logo {
    margin: 0;
}

.fx-auth__logo img {
    max-height: 28px;
    width: auto;
}

.fx-auth__banner {
    width: min(100%, 560px);
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: 18px;
}

.fx-auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 64px;
    background: #fff;
}

.fx-auth__panel main,
.fx-auth .container,
.fx-auth .auth-card,
.fx-auth .auth-card__body,
.fx-auth .auth-card__right {
    width: 100%;
    max-width: 440px;
}

.fx-auth .container {
    padding: 0;
}

.fx-auth .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
}

.fx-auth .row > [class*='col-'] {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.fx-auth .fx-name-pair {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
}

.fx-auth .fx-name-pair + .fx-name-pair {
    margin-left: 12px;
}

@media (max-width: 479.98px) {
    .fx-auth .fx-name-pair,
    .fx-auth .fx-name-pair + .fx-name-pair {
        display: block;
        width: 100%;
        margin-left: 0;
    }
}

.fx-auth .py-5 {
    padding: 0 !important;
}

.fx-auth .auth-card,
.fx-auth .auth-card.card,
.fx-auth .auth-card__horizontal {
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.fx-auth .auth-card__header {
    margin-bottom: 28px;
    padding: 0;
    background: transparent !important;
    text-align: left;
}

.fx-auth .auth-card__header-icon,
.fx-auth .auth-card__header-description {
    display: none;
}

.fx-auth .auth-card__header-title {
    margin: 0 !important;
}

.fx-auth .auth-card__body form {
    display: flex;
    flex-direction: column;
}

.fx-auth .auth-card__body form > .login-options,
.fx-auth .auth-card__body form > :has(.login-options),
.fx-auth .auth-card__body form > .fx-auth__divider {
    order: -1;
}

.fx-auth .login-options-title {
    display: none;
}

.fx-auth .login-options ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-auth .login-options li {
    margin: 0;
}

.fx-auth .login-options a,
.fx-auth .login-options a.social-login {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    height: 56px !important;
    margin: 0;
    padding: 0 16px;
    line-height: 1;
    text-decoration: none !important;
}

.fx-auth .login-options a::after,
.fx-auth .login-options a:hover::after {
    display: none !important;
}

.fx-auth .login-options a:hover {
    color: inherit !important;
}

.fx-auth .login-options img,
.fx-auth .login-options svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.fx-auth__divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 22px 0 18px;
    color: #8a8a8a;
    font-size: 14px;
}

.fx-auth__divider::before,
.fx-auth__divider::after {
    content: '';
    height: 1px;
    background: #e4e4e4;
}

.fx-auth__more {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 14px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.fx-auth .btn-auth-submit {
    width: 100%;
}

.fx-auth .auth-card__body a::after {
    display: none !important;
}

@media (max-width: 991px) {
    .fx-auth {
        grid-template-columns: 1fr;
    }

    .fx-auth__side {
        display: none;
    }

    .fx-auth__panel {
        min-height: 100vh;
        padding: 32px 20px;
    }

    .show-admin-bar .fx-auth__panel {
        min-height: calc(100vh - 40px);
    }
}
