.mfa-code-cells {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.mfa-code-cell {
    width: 42px !important;
    height: 56px !important;
    text-align: center;
    font-size: 30px !important;
    font-weight: 800;
    line-height: 56px;
    padding: 0 !important;
}

.mfa-code-cell::placeholder {
    color: rgba(120, 120, 120, 0.38);
    opacity: 1;
}

.mfa-code-cell.mfa-code-masked {
    color: transparent;
    text-shadow: 0 0 0 rgba(120, 120, 120, 0.45);
}

.mfa-panel-copy {
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.mfa-link-row {
    text-align: right;
    margin: 0 0 12px;
}

.mfa-text-link {
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
}

.mfa-recovery-panel {
    display: none;
    margin-bottom: 12px;
}

.mfa-grace-warning {
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.mfa-verify-button {
    width: 100%;
    border: 0;
    margin-bottom: 15px;
}

.mfa-verify-button.is-submitting {
    opacity: 0.9;
    pointer-events: none;
}

.mfa-submit-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: mfa-spin 0.8s linear infinite;
}

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

.login-message {
    margin-top: 14px;
    line-height: 1.4;
    text-align: center;
}

.mfa-authenticator-backdrop {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 20040;
}

#authenticatorHelpModal {
    display: none;
    position: fixed;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(840px, calc(100vw - 40px));
    max-height: 92vh;
    overflow-y: auto;
    z-index: 20050;
    background: #f7f9fc;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

#authenticatorHelpModal .mfa-authenticator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e1e7ef;
    background: #fff;
    border-radius: 10px 10px 0 0;
}

#authenticatorHelpModal .mfa-authenticator-title {
    margin: 0;
}

#authenticatorHelpModal .mfa-authenticator-close {
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: #333;
}

#authenticatorHelpModal .mfa-authenticator-body {
    padding: 22px 24px;
    line-height: 1.5;
}

#authenticatorHelpModal .mfa-authenticator-intro {
    margin-bottom: 20px;
    color: #4b5563;
}

#authenticatorHelpModal .mfa-authenticator-card {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
}

#authenticatorHelpModal .mfa-authenticator-card h4 {
    margin: 0 0 14px;
    color: #1f2937;
    font-weight: 700;
}

#authenticatorHelpModal .mfa-store-options {
    display: flex;
    gap: 18px;
}

#authenticatorHelpModal .mfa-store-option {
    flex: 1;
    text-align: center;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfe;
}

#authenticatorHelpModal .mfa-store-label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 700;
}

#authenticatorHelpModal .mfa-store-qr {
    background: #fff;
    padding: 6px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    max-width: 128px;
    width: 100%;
    height: auto;
}

#authenticatorHelpModal .mfa-store-link {
    display: inline-block;
    margin-top: 10px;
    color: #3657a7;
    font-weight: 600;
}

@media (max-width: 640px) {
    .mfa-code-cells {
        gap: 4px;
    }

    .mfa-code-cell {
        width: 38px !important;
        height: 52px !important;
        font-size: 28px !important;
    }

    #authenticatorHelpModal .mfa-store-options {
        flex-direction: column;
    }
}
