#cmrs-mfa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
 * Force the event font on every node inside the modal. The global rule
 * `html body [class*="fa-"]` (event-booking-typography.css) otherwise wins with
 * !important because the cmrs-mfa-* class names contain the substring "fa-".
 * Safe to blanket here: the modal contains no Font Awesome glyph elements.
 */
#cmrs-mfa-modal,
#cmrs-mfa-modal * {
    font-family: var(--event-font-family, "DM Sans"), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#cmrs-mfa-modal .cmrs-mfa-modal-content {
    max-width: 480px;
    width: 90%;
    padding: 32px 28px;
    background: #282A36;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#cmrs-mfa-modal .cmrs-mfa-modal-content h2 {
    text-align: center;
    margin: 0 0 12px;
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
}

#cmrs-mfa-modal .cmrs-mfa-modal-body p {
    color: #E0E0E0;
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

#cmrs-mfa-modal #cmrs-mfa-code {
    width: 100%;
    height: 56px;
    background: #3A3C4B;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 18px;
    color: #FFFFFF;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

#cmrs-mfa-modal #cmrs-mfa-code:focus {
    outline: none;
    border-color: #69F0AE;
}

#cmrs-mfa-modal .cmrs-mfa-submit {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #69F0AE 0%, #4FD99E 100%);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 12px;
}

#cmrs-mfa-modal .cmrs-mfa-resend {
    display: block;
    text-align: center;
    color: #69F0AE;
    font-size: 14px;
    text-decoration: none;
}

#cmrs-mfa-modal .cmrs-mfa-error {
    background: #FFE8E8;
    border: 1px solid #FF9F9F;
    border-radius: 8px;
    color: #8B1E1E;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
    text-align: center;
}

.cmrs-mfa-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmrs-mfa-loading-screen .cmrs-mfa-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #69F0AE;
    border-radius: 50%;
    animation: cmrs-mfa-spin 0.8s linear infinite;
}

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

/*
 * In-flow spacer so the page body keeps its height while the MFA modal renders
 * as a fixed overlay. Without it the body is empty (the overlay is out of flow)
 * and the site footer collapses up under the header. Mirrors the login form's
 * .main_page_login_form min-height.
 */
.cmrs-mfa-page {
    min-height: 70vh;
}
