.mfa-card {
    max-width: 750px;
    margin-top: 30px;
    padding: 32px 35px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
}

.mfa-title-area {
    display: flex;
    align-items: center;
}

.mfa-symbol {
    width: 55px;
    height: 55px;
    min-width: 55px;
    margin-right: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #212529;
    border-radius: 50%;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mfa-title-content {
    max-width: 600px;
}

.mfa-title-content h4 {
    margin: 0 0 7px 0;
    color: #222222;
    font-size: 21px;
    font-weight: 600;
}

.mfa-title-content p {
    margin: 0;
    color: #777777;
    font-size: 15px;
    line-height: 1.6;
}

.mfa-separator {
    height: 1px;
    margin: 27px 0;
    background: #eeeeee;
}

.mfa-section {
    margin-bottom: 25px;
}

.mfa-section-title {
    margin-bottom: 9px;

    color: #999999;
    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.mfa-status {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;
    border-radius: 20px;

    font-size: 14px;
    font-weight: 500;
}

.mfa-status-disabled {
    background: #f1f1f1;
    color: #555555;
}

.mfa-status-enabled {
    background: #edf7f0;
    color: #287a3e;
}

.mfa-status-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;

    background: #999999;
    border-radius: 50%;
}

.mfa-status-enabled .mfa-status-dot {
    background: #287a3e;
}

.mfa-explanation {
    padding: 20px 22px;

    background: #f7f7f7;
    border-left: 3px solid #212529;
    border-radius: 3px;
}

.mfa-explanation h6 {
    margin: 0 0 8px 0;

    color: #222222;
    font-size: 15px;
    font-weight: 600;
}

.mfa-explanation p {
    margin: 0;

    color: #666666;
    font-size: 14px;
    line-height: 1.7;
}

.mfa-actions {
    margin-top: 27px;
}

.mfa-button {
    display: inline-block;
    min-width: 360px;

    padding: 14px 24px;

    background: #212529;
    border: 1px solid #212529;
    border-radius: 3px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;

    cursor: pointer;
    transition: all .2s ease;
}

.mfa-button:hover,
.mfa-button:focus {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    outline: none;
}

/*
 * =========================================================
 * CONFIGURACIÓN MFA
 * =========================================================
 */

.mfa-setup {
    width: 100%;
    margin-top: 30px;
}

/*
 * Encabezado común de los pasos 1 y 2.
 */
.mfa-step-header {
    display: flex;
    align-items: flex-start;

    width: 100%;
    margin-bottom: 22px;

    text-align: left;
}

.mfa-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    min-width: 32px;

    margin-right: 14px;

    background: #212529;
    border-radius: 50%;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.mfa-step-content {
    flex: 1;
    padding-top: 1px;
}

.mfa-step-content h5 {
    margin: 0 0 6px 0;

    color: #222222;
    font-size: 17px;
    font-weight: 600;
}

.mfa-step-content p {
    margin: 0;

    color: #777777;
    font-size: 14px;
    line-height: 1.6;
}

/*
 * Código QR.
 */
.mfa-qr {
    display: flex;
    justify-content: center;

    width: 100%;
    margin: 30px 0;
}

.mfa-qr img {
    width: 240px;
    height: 240px;

    padding: 10px;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

/*
 * Clave manual.
 */
.mfa-manual-key {
    width: calc(100% - 56px);
    max-width: 620px;

    box-sizing: border-box;

    margin: 20px auto 0 auto;
    padding: 18px 20px;

    background: #f7f7f7;
    border-radius: 4px;
}

.mfa-manual-key span {
    display: block;

    margin-bottom: 5px;

    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

.mfa-manual-key p {
    margin: 0 0 12px 0;

    color: #777777;
    font-size: 14px;
}

.mfa-manual-key code {
    display: inline-block;

    padding: 9px 12px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 3px;

    color: #222222;
    font-size: 14px;
    letter-spacing: 1px;

    word-break: break-all;
}

/*
 * Paso 2 de configuración.
 */
.mfa-confirm {
    width: 100%;
    box-sizing: border-box;

    margin-top: 30px;
    padding: 26px 28px 26px 0;

    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.mfa-confirm .mfa-step-header {
    width: 100%;
    margin: 0 0 22px 0;
}

.mfa-confirm-form {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    box-sizing: border-box;

    padding-left: 28px;
    margin: 0;

    gap: 12px;
}

.mfa-code-input {
    width: 190px;
    height: 48px;

    padding: 0 15px;

    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 3px;

    color: #222222;
    font-size: 20px;

    text-align: center;
    letter-spacing: 6px;
}

.mfa-code-input:focus {
    outline: none;
    border-color: #212529;
    box-shadow: 0 0 0 1px #212529;
}

.mfa-confirm-button {
    min-width: 220px;
    height: 48px;

    padding-top: 0;
    padding-bottom: 0;
}

.mfa-error {
    margin: 0 28px 16px 46px;
    padding: 12px 15px;

    box-sizing: border-box;

    background: #fff1f1;
    border-left: 3px solid #b94444;
    border-radius: 2px;

    color: #8c2f2f;

    font-size: 14px;
    text-align: left;
}

/*
 * =========================================================
 * LOGIN MFA
 * =========================================================
 */

.mfa-login-container {
    max-width: 620px;
    margin: 0 auto;
}

.mfa-login-title {
    margin-bottom: 30px;
}

.mfa-login-description {
    margin: 0 0 24px 0;

    color: #777777;
    font-size: 15px;
    line-height: 1.7;
}

.mfa-login-label {
    display: block;

    margin-bottom: 9px;

    color: #222222;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
}

.mfa-login-input {
    width: 100%;
    height: 54px;

    box-sizing: border-box;

    padding: 0 15px;

    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 3px;

    color: #222222;

    font-size: 20px;
    text-align: center;
    letter-spacing: 6px;
}

.mfa-login-input::placeholder {
    color: #888888;
    font-size: 16px;
    letter-spacing: 0;
}

.mfa-login-input:focus {
    outline: none;

    border-color: #212529;
    box-shadow: 0 0 0 1px #212529;
}

/*
 * Mensaje de error del login MFA.
 */
.mfa-login-error {
    margin-bottom: 20px;
    padding: 13px 15px;

    background: #fff1f1;

    border-left: 3px solid #b94444;
    border-radius: 3px;

    color: #8c2f2f;

    font-size: 14px;
    line-height: 1.6;
}

/*
 * Botón principal del login MFA.
 */
.mfa-login-button {
    display: block;

    width: 100%;
    height: 54px;

    margin-top: 18px;
    padding: 0 24px;

    box-sizing: border-box;

    background: #212529;

    border: 1px solid #212529;
    border-radius: 3px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;

    cursor: pointer;
    transition: all .2s ease;
}

.mfa-login-button:hover,
.mfa-login-button:focus,
.mfa-login-button:active {
    background: #000000;
    border-color: #000000;

    color: #ffffff;

    outline: none;
    box-shadow: none;
}

/*
 * Botón secundario para cancelar el proceso MFA.
 *
 * Mantiene el mismo ancho y alto que el botón principal,
 * pero utiliza fondo blanco para diferenciar la acción secundaria.
 */
.mfa-login-cancel-form {
    width: 100%;
    margin-top: 12px;
}

.mfa-login-cancel-button {
    display: block;

    width: 100%;
    height: 54px;

    box-sizing: border-box;

    padding: 0 24px;

    background: #ffffff;

    border: 1px solid #212529;
    border-radius: 3px;

    color: #212529;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;

    cursor: pointer;
    transition: all .2s ease;
}

.mfa-login-cancel-button:hover,
.mfa-login-cancel-button:focus,
.mfa-login-cancel-button:active {
    background: #f5f5f5;
    border-color: #000000;

    color: #000000;

    outline: none;
    box-shadow: none;
}

/*
 * Texto inferior del login MFA.
 */
.mfa-login-help {
    margin: 22px 0 35px 0;

    color: #777777;

    font-size: 14px;
    line-height: 1.6;

    text-align: center;
}

.mfa-disable-error
	{
	    margin: 18px 0;
	    padding: 14px 16px;
	
	    background: #fff2f2;
	    border: 1px solid #dc3545;
	    border-left: 4px solid #dc3545;
	    border-radius: 3px;
	
	    color: #b02a37;
	    font-size: 14px;
	    font-weight: 600;
	    line-height: 1.5;
	}

/*
 * =========================================================
 * RESPONSIVE
 * =========================================================
 */

@media (max-width: 767px) {

    .mfa-card {
        padding: 25px 20px;
    }

    .mfa-title-area {
        align-items: flex-start;
    }

    .mfa-symbol {
        width: 45px;
        height: 45px;
        min-width: 45px;

        margin-right: 15px;

        font-size: 12px;
    }

    .mfa-title-content h4 {
        font-size: 18px;
    }

    .mfa-button {
        width: 100%;
        min-width: 0;
    }

    .mfa-step-number {
        width: 30px;
        height: 30px;
        min-width: 30px;

        margin-right: 12px;

        font-size: 13px;
    }

    .mfa-step-content h5 {
        font-size: 16px;
    }

    .mfa-qr img {
        width: 210px;
        height: 210px;
    }

    .mfa-manual-key {
        width: 100%;
        max-width: 100%;
    }

    .mfa-confirm {
        padding: 20px 15px 20px 0;
    }

    .mfa-confirm-form {
        display: block;
        padding-left: 15px;
    }

    .mfa-code-input {
        width: 100%;
        margin-bottom: 12px;
    }

    .mfa-confirm-button {
        width: 100%;
        min-width: 0;
    }

    .mfa-error {
        margin: 0 15px 16px 42px;
    }

    .mfa-login-container {
        max-width: 100%;
    }

    .mfa-login-input {
        font-size: 18px;
    }

    .mfa-login-button,
    .mfa-login-cancel-button {
        width: 100%;
    }
}