.kn-iti-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(24, 29, 38, .68);
    backdrop-filter: blur(4px);
}

.kn-iti-auth-modal.is-open {
    display: flex;
}

.kn-iti-auth-modal__panel {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    height: min(860px, calc(100vh - 40px));
    overflow: hidden;
    border: 1px solid var(--kn-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .34);
}

.kn-iti-auth-modal__close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #9aa4b3;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

.kn-iti-auth-modal__bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
    padding: 18px 72px 12px 24px;
    background: #ffffff;
}

.kn-iti-auth-modal__tab {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid var(--kn-line);
    border-radius: 999px;
    background: var(--kn-surface-soft);
    color: var(--kn-ink);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.kn-iti-auth-modal__tab.is-active {
    border-color: var(--kn-accent);
    background: var(--kn-accent);
    color: #ffffff;
}

.kn-iti-auth-modal__frame {
    display: block;
    width: 100%;
    height: 100%;
    padding-top: 74px;
    border: 0;
    background: #ffffff;
    box-sizing: border-box;
}

.kn-iti-auth-modal__loader {
    position: absolute;
    inset: 74px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--kn-muted);
    font-size: 16px;
    font-weight: 900;
}

.kn-iti-auth-modal.is-loaded .kn-iti-auth-modal__loader {
    display: none;
}

@media (max-width: 560px) {
    .kn-iti-auth-modal {
        padding: 10px;
    }

    .kn-iti-auth-modal__panel {
        width: 100%;
        height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .kn-iti-auth-modal__bar {
        padding: 14px 58px 10px 14px;
    }

    .kn-iti-auth-modal__tab {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    .kn-iti-auth-modal__frame {
        padding-top: 64px;
    }

    .kn-iti-auth-modal__loader {
        inset: 64px 0 0;
    }
}
