
/*
 PCE Authenticator
 Limpieza visual exclusiva de la verificacion.
*/

/* Ocultar cabecera del primer paso */

body.pce2fa-clean-v4-active
.wave-panel > h1 {
    display: none !important;
}

body.pce2fa-clean-v4-active
.wave-panel > .wave-copy {
    display: none !important;
}

/* Ocultar relojes */

body.pce2fa-clean-v4-active
.wave-clock-grid {
    display: none !important;
}

/* Ocultar volver a acceder de Moodle */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel #cancelmfa {
    display: none !important;
}

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.form-container:has(#cancelmfa) {
    display: none !important;
}

/* Ocultar ayuda original de Moodle */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.tool-mfa-site-support {
    display: none !important;
}

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.form-container:has(.tool-mfa-site-support) {
    display: none !important;
}

/* Ocultar enlace de verificacion original */

body.pce2fa-clean-v4-active
#pce2fa-native-link {
    display: none !important;
}

/* Quitar saltos de linea innecesarios */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.pce2fa-links br {
    display: none !important;
}

/* Mantener un unico enlace para volver al login */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.pce2fa-links {
    margin-top: 20px !important;
    text-align: center !important;
}

/* Ajustar el encabezado del segundo factor */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel {
    margin-top: 25px !important;
}

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.pce2fa-title {
    font-size: clamp(30px, 4vw, 40px) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
}

/* Descripcion */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.pce2fa-description {
    font-size: 17px !important;
    line-height: 1.5 !important;
    margin-bottom: 28px !important;
}

/* Campo del codigo */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.mfa-verify-form input[type="text"],
body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.mfa-verify-form input[type="number"],
body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.mfa-verify-form input[type="tel"] {
    border-radius: 16px !important;
    min-height: 68px !important;
    text-align: center !important;
    font-size: 26px !important;
    letter-spacing: 0.20em !important;
}

/* Boton continuar */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.mfa-verify-form input[type="submit"],
body.pce2fa-clean-v4-active
#pce2fa-ajax-panel
.mfa-verify-form button[type="submit"] {
    border-radius: 16px !important;
    min-height: 62px !important;
}

/* Mantener la seccion de secretaria */

body.pce2fa-clean-v4-active
.contact-button {
    display: inline-flex !important;
}

/* Version movil */

@media (max-width: 600px) {

    body.pce2fa-clean-v4-active
    #pce2fa-ajax-panel
    .pce2fa-title {
        font-size: 30px !important;
    }

    body.pce2fa-clean-v4-active
    #pce2fa-ajax-panel
    .pce2fa-description {
        font-size: 15px !important;
    }
}


/* PCE-UX-SECRETARIA-V5 */

/*
 * El botón de secretaría solo desaparece
 * cuando el segundo factor está visible.
 *
 * En la pantalla inicial permanece intacto.
 */

body.pce2fa-clean-v4-active
.wave-panel > .contact-button,
body.pce2fa-clean-v4-active
.wave-panel .contact-button[data-open-contact] {
    display: none !important;
}

/*
 * Evitar que el panel MFA muestre
 * indicadores de carga del primer paso.
 */

body.pce2fa-clean-v4-active
#pce2fa-ajax-panel .pce2fa-loading {
    display: none !important;
}

