.fx-auth-modal.modal {
    padding: 16px !important;
}

.fx-auth-modal .modal-dialog,
.fx-auth-modal .modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    max-width: 440px;
    min-height: calc(100% - 32px);
    margin: 16px auto;
}

.fx-auth-modal .modal-content,
.fx-auth-modal .modal-dialog-scrollable .modal-content {
    position: relative;
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: 90px 0 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.fx-auth-modal .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 85px);
    height: 90px;
    background: #fff;
    border-top-left-radius: 12px;
}

.fx-auth-modal__shape {
    color: #fff;
    position: absolute;
    top: 0;
    right: 0;
    width: 85px;
    height: 90px;
    z-index: 1;
    pointer-events: none;
}

.fx-auth-modal__shape svg {
    display: block;
    width: 85px;
    height: 90px;
}

.fx-auth-modal__close {
    position: absolute;
    top: 13px;
    right: 8px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fx-auth-modal__close::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: #f9f9f9;
    box-shadow: 0 6px 16px rgb(0 0 0 / 12%);
    transform: scale(1);
    transition: transform 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.fx-auth-modal__close svg {
    position: relative;
    z-index: 1;
}

.fx-auth-modal__close:hover::after {
    transform: scale(1.1);
}

.fx-auth-modal__panel {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 8px 28px 28px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.fx-auth-modal__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.fx-auth-modal__logo .logo {
    margin: 0;
}

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

.fx-auth-modal__title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.fx-auth-modal .container,
.fx-auth-modal .auth-card,
.fx-auth-modal .auth-card__body,
.fx-auth-modal .auth-card__right {
    width: 100%;
    max-width: none;
}

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

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

.fx-auth-modal .fx-auth-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

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

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

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

.fx-auth-modal .form-label {
    margin-bottom: 8px;
    color: #111;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.fx-auth-modal .form-control,
.fx-auth-modal input[type='text'],
.fx-auth-modal input[type='email'],
.fx-auth-modal input[type='password'],
.fx-auth-modal input[type='tel'] {
    height: 56px;
    padding: 0 16px;
    border: 1px solid #e0e2e3;
    border-radius: 0;
    background-color: #fff;
    box-shadow: none;
    color: #111;
    font-size: 14px;
}

.fx-auth-modal .form-control:focus,
.fx-auth-modal input[type='text']:focus,
.fx-auth-modal input[type='email']:focus,
.fx-auth-modal input[type='password']:focus,
.fx-auth-modal input[type='tel']:focus {
    border-color: #111;
    background-color: #fff;
    box-shadow: none;
    outline: none;
}

.fx-auth-modal input.form-control:-webkit-autofill,
.fx-auth-modal input.form-control:-webkit-autofill:hover,
.fx-auth-modal input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #111;
    caret-color: #111;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-out;
}

.fx-auth-modal .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding-left: 0;
}

.fx-auth-modal .form-check-input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1px solid #111;
    border-radius: 0;
    background-color: #fff;
    box-shadow: none;
    accent-color: #111;
}

.fx-auth-modal .form-check-input:checked {
    border-color: #111;
    background-color: #111;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.fx-auth-modal .form-check-input:focus {
    border-color: #111;
    box-shadow: none;
}

.fx-auth-modal .form-check-label {
    color: #111;
    font-size: 14px;
    line-height: 1.4;
}

.fx-auth-modal .form-check-label a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fx-auth-modal .btn-auth-submit.btn-primary {
    height: 56px;
    border: 0;
    border-radius: 0;
    background-color: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.fx-auth-modal .btn-auth-submit.btn-primary:hover {
    background-color: #111;
    color: #fff;
}

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

.fx-auth-modal .auth-card__header {
    display: none;
}

.fx-auth-modal .mt-3.text-center:has(a) {
    display: none;
}

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

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

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

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

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

.fx-auth-modal .login-options a,
.fx-auth-modal .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-modal .login-options a::after,
.fx-auth-modal .login-options a:hover::after,
.fx-auth-modal .auth-card__body a::after {
    display: none !important;
}

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

#fx-signin-form:not(.is-password-step) .fx-auth-later {
    display: none !important;
}

#fx-signin-form.is-password-step .fx-auth-continue {
    display: none;
}

.fx-auth-continue {
    margin-top: 8px;
}

.fx-auth-modal__switch {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
}

.fx-auth-modal__switch button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.fx-auth-modal .modal-dialog-scrollable {
    height: auto;
    max-height: calc(100% - 32px);
}

.fx-auth-modal .modal-dialog-scrollable .fx-auth-modal__panel {
    max-height: calc(100vh - 180px);
    overflow: auto;
}

.fx-auth-pane[hidden] {
    display: none !important;
}

.fx-auth-sheet__handle {
    display: none;
}

.fx-auth-pane__note {
    margin: -8px 0 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

#fx-auth-modal .fx-auth-pane__scroll .col-6.text-end,
#fx-auth-modal .fx-auth-pane__scroll > .mt-3 {
    display: none;
}

html:not(.fx-auth-sheet) .fx-auth-modal .fx-auth-pane__scroll {
    max-height: min(52vh, 420px);
    overflow: auto;
}

.fx-auth-modal .btn-auth-submit.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.fx-auth-modal .btn-auth-submit.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: fx-auth-spin 0.6s linear infinite;
}

@keyframes fx-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

html.fx-auth-sheet {
    --fx-auth-bottom: max(var(--flx-nav-h, 0px), var(--fx-auth-kb, 0px));
}

html.fx-auth-sheet .fx-auth-modal.modal {
    position: fixed;
    inset: auto 0 var(--fx-auth-bottom, 0px) 0;
    height: auto;
    padding: 0 !important;
    overflow: visible;
    z-index: 1092;
    transform: translateY(110%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

html.fx-auth-sheet .fx-auth-modal.modal.show {
    transform: translateY(0);
}

html.fx-auth-sheet:has(.fx-auth-modal.show) .modal-backdrop,
html.fx-auth-sheet:has(.fx-auth-modal.showing) .modal-backdrop {
    z-index: 1090;
    top: 0;
    bottom: var(--fx-auth-bottom, 0px);
    height: auto;
}

html.fx-auth-sheet .fx-auth-modal .modal-dialog,
html.fx-auth-sheet .fx-auth-modal .modal-dialog-centered {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 640px;
    min-height: 0;
    height: auto;
    max-height: min(92dvh, calc(100dvh - var(--fx-auth-bottom, 0px) - 12px));
    margin: 0 auto;
    transform: none !important;
}

html.fx-auth-sheet .fx-auth-modal.fade .modal-dialog {
    transition: none;
}

html.fx-auth-sheet .fx-auth-modal .modal-content,
html.fx-auth-sheet .fx-auth-modal .modal-dialog-scrollable .modal-content {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    padding: 0;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}

html.fx-auth-sheet .fx-auth-modal .modal-content::before,
html.fx-auth-sheet .fx-auth-modal__shape {
    display: none;
}

html.fx-auth-sheet .fx-auth-sheet__handle {
    display: block;
    flex: none;
    width: 40px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #d6d6d6;
}

html.fx-auth-sheet .fx-auth-modal__close {
    top: 10px;
    right: 10px;
}

html.fx-auth-sheet .fx-auth-modal__panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: inherit;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
}

html.fx-auth-sheet .fx-auth-pane:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100dvh - var(--fx-auth-bottom, 0px) - 36px);
    overflow: hidden;
}

html.fx-auth-sheet .fx-auth-pane__intro,
html.fx-auth-sheet .fx-auth-pane > .alert {
    flex: none;
    padding: 8px 24px 0;
}

html.fx-auth-sheet .fx-auth-modal form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

html.fx-auth-sheet .fx-auth-pane__scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100dvh - var(--fx-auth-bottom, 0px) - 220px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0 24px 8px;
    -webkit-overflow-scrolling: touch;
}

html.fx-auth-sheet .fx-auth-pane__footer {
    flex: none;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eee;
}

html.fx-auth-sheet .fx-auth-modal__switch,
html.fx-auth-sheet .fx-auth-continue {
    margin-top: 12px;
}

html.fx-auth-sheet .fx-auth-continue {
    margin-top: 0;
}

@media (min-width: 992px) {
    html.fx-auth-sheet .fx-auth-modal .modal-dialog,
    html.fx-auth-sheet .fx-auth-modal .modal-dialog-centered {
        max-width: 440px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.fx-auth-sheet .fx-auth-modal.modal,
    .fx-auth-modal .btn-auth-submit.is-loading::after {
        transition: none;
        animation: none;
    }
}
