/* =========================================================
   ULTIMATE MEMBER - CONNEXION / MOT DE PASSE
   Charente Connect
   ========================================================= */


/* =========================================================
   VARIABLES COMMUNES
   ========================================================= */

body.page-id-832,
body:has(.um.um-password) {
    --cc-bleu: #285473;
    --cc-orange: #e95b45;
    --cc-gris: #6f6f6f;
    --cc-fond-champ: #f8fbfc;
    --cc-bleu-clair: var(--e-global-color-4dca39b);
}


/* =========================================================
   CARTE PRINCIPALE
   ========================================================= */

body.page-id-832 .um-login,
.um.um-password {
    box-sizing: border-box !important;

    max-width: 520px !important;

    margin: 40px auto 70px !important;
    padding: 34px 38px !important;

    background: #ffffff !important;

    border: 1px solid rgba(40, 84, 115, 0.10) !important;
    border-radius: 18px !important;

    box-shadow:
        0 12px 32px rgba(40, 84, 115, 0.10),
        0 2px 6px rgba(0, 0, 0, 0.04) !important;
}


/* =========================================================
   LABELS
   ========================================================= */

body.page-id-832 .um-login .um-field-label,
.um.um-password .um-field-label {
    margin-bottom: 8px !important;
}

body.page-id-832 .um-login .um-field-label label,
.um.um-password .um-field-label label {
    color: var(--cc-bleu, #285473) !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}


/* Astérisque obligatoire */

body.page-id-832 .um-login .um-field-required,
.um.um-password .um-field-required {
    color: var(--cc-orange, #e95b45) !important;
}


/* =========================================================
   CHAMPS
   ========================================================= */

body.page-id-832 .um-login input[type="text"],
body.page-id-832 .um-login input[type="email"],
body.page-id-832 .um-login input[type="password"],
.um.um-password input[type="text"],
.um.um-password input[type="email"],
.um.um-password input[type="password"] {
    box-sizing: border-box !important;

    width: 100% !important;
    min-height: 48px !important;

    padding: 11px 14px !important;

    background: var(--cc-fond-champ, #f8fbfc) !important;

    border: 1px solid rgba(40, 84, 115, 0.20) !important;
    border-radius: 10px !important;

    color: #333333 !important;

    font-size: 16px !important;

    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease !important;
}


/* Focus des champs */

body.page-id-832 .um-login input[type="text"]:focus,
body.page-id-832 .um-login input[type="email"]:focus,
body.page-id-832 .um-login input[type="password"]:focus,
.um.um-password input[type="text"]:focus,
.um.um-password input[type="email"]:focus,
.um.um-password input[type="password"]:focus {
    background: #ffffff !important;

    border-color: var(--cc-bleu, #285473) !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(40, 84, 115, 0.12),
        inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}


/* =========================================================
   ESPACEMENT DES CHAMPS
   ========================================================= */

body.page-id-832 .um-login .um-field,
.um.um-password .um-field {
    margin-bottom: 22px !important;
}


/* =========================================================
   CONNEXION - SE SOUVENIR DE MOI
   ========================================================= */

body.page-id-832 .um-login .um-field-checkbox {
    margin-top: 2px !important;
}

body.page-id-832 .um-login .um-field-checkbox-option {
    color: var(--cc-gris, #6f6f6f) !important;

    font-size: 14px !important;
    font-weight: 600 !important;
}

body.page-id-832 .um-login .um-field-checkbox-state i {
    color: var(--cc-bleu, #285473) !important;
}


/* =========================================================
   RÉINITIALISATION - TEXTE D'INTRODUCTION
   ========================================================= */

.um.um-password .um-field-block {
    margin-bottom: 22px !important;

    color: var(--cc-gris, #6f6f6f) !important;

    font-size: 15px !important;
    line-height: 1.6 !important;

    text-align: center !important;
}


/* =========================================================
   BOUTONS PRINCIPAUX
   ========================================================= */

body.page-id-832 .um-login input[type="submit"],
body.page-id-832 .um-login .um-button,
.um.um-password input[type="submit"],
.um.um-password .um-button {
    min-height: 48px !important;

    padding: 12px 26px !important;

    background: var(--cc-bleu, #285473) !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 999px !important;

    font-size: 16px !important;
    font-weight: 800 !important;

    box-shadow:
        0 5px 12px rgba(40, 84, 115, 0.18) !important;

    cursor: pointer !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
}


/* Hover = bleu clair Charente Connect */

body.page-id-832 .um-login input[type="submit"]:hover,
body.page-id-832 .um-login .um-button:hover,
.um.um-password input[type="submit"]:hover,
.um.um-password .um-button:hover {
    background: var(--cc-bleu-clair, #eef5f7) !important;
    color: var(--cc-bleu, #285473) !important;

    transform: translateY(-1px) !important;

    box-shadow:
        0 7px 16px rgba(40, 84, 115, 0.18) !important;
}


/* Focus clavier */

body.page-id-832 .um-login input[type="submit"]:focus-visible,
body.page-id-832 .um-login .um-button:focus-visible,
.um.um-password input[type="submit"]:focus-visible,
.um.um-password .um-button:focus-visible {
    background: var(--cc-bleu-clair, #eef5f7) !important;
    color: var(--cc-bleu, #285473) !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(40, 84, 115, 0.18),
        0 7px 16px rgba(40, 84, 115, 0.18) !important;
}


/* =========================================================
   MOT DE PASSE OUBLIÉ
   ========================================================= */

body.page-id-832 .um-login .um-alt {
    margin-top: 18px !important;
}

body.page-id-832 .um-login .um-alt a {
    color: var(--cc-gris, #6f6f6f) !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-decoration: none !important;

    transition:
        color 0.2s ease !important;
}

body.page-id-832 .um-login .um-alt a:hover {
    color: var(--cc-bleu, #285473) !important;
    text-decoration: underline !important;
}

body.page-id-832 .um-login .um-alt a:focus-visible {
    color: var(--cc-bleu, #285473) !important;

    outline: 2px solid rgba(40, 84, 115, 0.30) !important;
    outline-offset: 3px !important;

    border-radius: 3px;
}


/* =========================================================
   AFFICHER / MASQUER LE MOT DE PASSE
   Connexion + réinitialisation
   ========================================================= */

body.page-id-832 .um-login .cc-password-wrapper,
.um.um-password .cc-password-wrapper {
    position: relative;

    width: 100%;
}

body.page-id-832 .um-login .cc-password-wrapper input[type="password"],
body.page-id-832 .um-login .cc-password-wrapper input[type="text"],
.um.um-password .cc-password-wrapper input[type="password"],
.um.um-password .cc-password-wrapper input[type="text"] {
    width: 100% !important;

    padding-right: 50px !important;
}


/* Bouton œil */

body.page-id-832 .um-login .cc-password-toggle,
.um.um-password .cc-password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px !important;
    height: 36px !important;

    padding: 6px !important;

    background: transparent !important;
    color: var(--cc-bleu, #285473) !important;

    border: 0 !important;
    border-radius: 50% !important;

    box-shadow: none !important;

    cursor: pointer;

    z-index: 5;

    transition:
        background-color 0.2s ease,
        color 0.2s ease !important;
}


/* Hover œil */

body.page-id-832 .um-login .cc-password-toggle:hover,
.um.um-password .cc-password-toggle:hover {
    background: rgba(40, 84, 115, 0.08) !important;
    color: var(--cc-bleu, #285473) !important;
}


/* Focus clavier œil */

body.page-id-832 .um-login .cc-password-toggle:focus-visible,
.um.um-password .cc-password-toggle:focus-visible {
    background: rgba(40, 84, 115, 0.08) !important;

    outline: 2px solid rgba(40, 84, 115, 0.30) !important;
    outline-offset: 1px !important;
}


/* SVG */

body.page-id-832 .um-login .cc-password-toggle svg,
.um.um-password .cc-password-toggle svg {
    width: 21px;
    height: 21px;

    fill: currentColor;

    pointer-events: none;
}


/* Œil fermé masqué par défaut */

body.page-id-832 .um-login .cc-eye-closed,
.um.um-password .cc-eye-closed {
    display: none;
}


/* Mot de passe visible */

body.page-id-832 .um-login .cc-password-toggle.is-visible .cc-eye-open,
.um.um-password .cc-password-toggle.is-visible .cc-eye-open {
    display: none;
}

body.page-id-832 .um-login .cc-password-toggle.is-visible .cc-eye-closed,
.um.um-password .cc-password-toggle.is-visible .cc-eye-closed {
    display: block;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body.page-id-832 .um-login,
    .um.um-password {
        margin: 25px 16px 50px !important;
        padding: 26px 20px !important;

        border-radius: 14px !important;
    }


    body.page-id-832 .um-login input[type="submit"],
    body.page-id-832 .um-login .um-button,
    .um.um-password input[type="submit"],
    .um.um-password .um-button {
        width: 100% !important;
    }
}


/* =========================================================
   PAGE CONNEXION - HEADER STICKY
   Au-dessus du contenu sans bloquer le fil d'Ariane
   ========================================================= */

body.page-id-832 .elementor-sticky--active {
    z-index: 100 !important;

    /*
     * La zone transparente du header ne bloque pas
     * les liens du fil d'Ariane.
     */
    pointer-events: none !important;
}


/* Réactivation des éléments interactifs du header */

body.page-id-832 .elementor-sticky--active a,
body.page-id-832 .elementor-sticky--active button,
body.page-id-832 .elementor-sticky--active .elementor-nav-menu,
body.page-id-832 .elementor-sticky--active .elementor-menu-toggle {
    pointer-events: auto !important;
}


