.mfa-step-up-modal-open {
    overflow: hidden;
}

.mfa-step-up-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(13, 24, 45, 0.68);
    backdrop-filter: blur(6px);
}

.mfa-step-up-dialog {
    width: min(34rem, 100%);
    overflow: hidden;
    color: #1d2940;
    background: #fff;
    border: 1px solid #d9e1ec;
    border-radius: 1.25rem;
    box-shadow: 0 1.75rem 5rem rgba(8, 20, 43, 0.32);
}

.mfa-step-up-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 62%, #fff8e9 100%);
    border-bottom: 1px solid #e3e9f1;
}

.mfa-step-up-kicker {
    display: block;
    margin-bottom: .35rem;
    color: var(--tenant-accent, #2f5791);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.mfa-step-up-dialog h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 750;
}

.mfa-step-up-dialog-header p {
    margin: .45rem 0 0;
    color: #617087;
    font-size: .94rem;
    line-height: 1.5;
}

.mfa-step-up-close {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    color: #42516a;
    background: #f2f6fb;
    border: 1px solid #d9e2ed;
    border-radius: 50%;
    font-size: 1.55rem;
    line-height: 1;
}

.mfa-step-up-dialog-body {
    padding: 1.4rem 1.5rem;
}

.mfa-step-up-primary {
    display: flex;
    align-items: center;
    width: 100%;
    gap: .85rem;
    padding: 1rem;
    color: #fff;
    text-align: left;
    background: var(--tenant-primary, #234b84);
    border: 0;
    border-radius: .8rem;
    box-shadow: 0 .4rem 1.1rem rgba(24, 60, 112, .18);
}

.mfa-step-up-primary > span:first-child {
    font-size: 1.7rem;
}

.mfa-step-up-primary strong,
.mfa-step-up-primary small {
    display: block;
}

.mfa-step-up-primary small {
    margin-top: .18rem;
    opacity: .78;
}

.mfa-step-up-primary:disabled,
.mfa-step-up-submit:disabled {
    opacity: .62;
}

.mfa-step-up-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.1rem 0;
    color: #7b8799;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mfa-step-up-divider::before,
.mfa-step-up-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: #e1e7ef;
}

.mfa-step-up-totp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
}

.mfa-step-up-totp select:not([hidden]) {
    grid-column: 1 / -1;
}

.mfa-step-up-input {
    min-width: 0;
    padding: .75rem .85rem;
    color: #1f2b42;
    background: #fff;
    border: 1px solid #cbd6e4;
    border-radius: .65rem;
}

.mfa-step-up-input:focus {
    border-color: var(--tenant-primary, #315d99);
    box-shadow: 0 0 0 .2rem rgba(49, 93, 153, .12);
    outline: 0;
}

.mfa-step-up-submit {
    padding: .75rem 1rem;
    color: #fff;
    background: #182944;
    border: 0;
    border-radius: .65rem;
    font-weight: 700;
}

.mfa-step-up-dialog-status {
    min-height: 1.3rem;
    margin: .8rem 0 0;
    color: #9b3d35;
    font-size: .88rem;
}

.mfa-step-up-dialog-footer {
    padding: .85rem 1.5rem;
    color: #69778c;
    background: #f7f9fc;
    border-top: 1px solid #e3e9f1;
    font-size: .8rem;
}

@media (max-width: 520px) {
    .mfa-step-up-backdrop {
        align-items: end;
        padding: .75rem;
    }

    .mfa-step-up-dialog {
        border-radius: 1rem;
    }

    .mfa-step-up-totp {
        grid-template-columns: 1fr;
    }
}
