/* =========================================
   EFICIOS - FORMULAIRE DE CONNEXION
========================================= */

.eficios-login-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 46px 50px 38px;
    background: #ffffff;
    border: 1px solid #e1e8f1;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(19, 53, 91, 0.10);
    font-family: inherit;
    color: #102a66;
}


/* =========================================
   TITRE
========================================= */

.eficios-login-header {
    margin-bottom: 32px;
}

.eficios-login-header h1 {
    margin: 0 0 10px;
    padding: 0;
    color: #092767;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

.eficios-login-header p {
    margin: 0;
    padding: 0;
    color: #566989;
    font-size: 18px;
    line-height: 1.5;
}


/* =========================================
   GROUPES DE CHAMPS
========================================= */

.eficios-form-group {
    margin-bottom: 27px;
}

.eficios-form-group label {
    display: block;
    margin-bottom: 9px;
    color: #0b2a6b;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}


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

.eficios-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    overflow: hidden;

    border: 1px solid #ccd7e6;
    border-radius: 9px;

    background: #ffffff;

    transition: border-color 0.2s ease;
}


/* Focus propre : uniquement la bordure */

.eficios-input-wrapper:focus-within {
    border-color: #216ca9;
    box-shadow: none;
}


/* Input */

.eficios-input-wrapper input {
    width: 100%;
    height: 58px;

    padding: 0 55px 0 68px;

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

    outline: none !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #18325e;

    font-family: inherit;
    font-size: 16px;
    line-height: 1;

    appearance: none;
    -webkit-appearance: none;
}


/* Neutralise Divi / navigateur au focus */

.eficios-input-wrapper input:focus,
.eficios-input-wrapper input:focus-visible,
.eficios-input-wrapper input:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}


/* Placeholder */

.eficios-input-wrapper input::placeholder {
    color: #a7b6cd;
    opacity: 1;
}


/* =========================================
   ICÔNES À GAUCHE
========================================= */

.eficios-input-icon {
    position: absolute;
    z-index: 2;

    left: 8px;
    top: 50%;

    display: flex;

    width: 44px;
    height: 44px;

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

    border-radius: 8px;

    background: #f0f6ff;

    transform: translateY(-50%);
}

.eficios-input-icon svg {
    width: 23px;
    height: 23px;
    fill: #216ca9;
}


/* =========================================
   AFFICHER / MASQUER MOT DE PASSE
========================================= */

.eficios-password-toggle {
    position: absolute;
    z-index: 3;

    right: 10px;
    top: 50%;

    display: flex;

    width: 40px;
    height: 40px;

    padding: 0;

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

    border: 0 !important;
    outline: none !important;

    background: transparent !important;
    box-shadow: none !important;

    cursor: pointer;

    transform: translateY(-50%);
}

.eficios-password-toggle:hover,
.eficios-password-toggle:focus,
.eficios-password-toggle:active {
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.eficios-password-toggle svg {
    width: 24px;
    height: 24px;
    fill: #647794;

    transition: fill 0.2s ease;
}

.eficios-password-toggle:hover svg {
    fill: #216ca9;
}


/* =========================================
   MESSAGE D'ERREUR
========================================= */

.eficios-login-error {
    display: none;

    margin: -12px 0 18px;
    padding: 11px 14px;

    border: 1px solid #f0b8b8;
    border-radius: 8px;

    background: #fff3f3;

    color: #c52d2d;

    font-size: 14px;
    line-height: 1.4;
}

.eficios-login-error.is-visible {
    display: block;
}


/* =========================================
   OPTIONS
========================================= */

.eficios-login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 3px 0 27px;
}


/* Se souvenir de moi */

.eficios-remember {
    display: flex !important;

    align-items: center;

    gap: 10px;

    margin: 0 !important;

    color: #17366b !important;

    font-size: 15px !important;
    font-weight: 400 !important;

    cursor: pointer;
}

.eficios-remember input {
    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    margin: 0;

    accent-color: #216ca9;

    cursor: pointer;
}


/* Mot de passe oublié */

.eficios-forgot-password {
    color: #0066ff !important;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.eficios-forgot-password:hover {
    opacity: 0.75;
}


/* =========================================
   BOUTON CONNEXION
========================================= */

.eficios-login-submit {
    position: relative;

    display: flex;

    width: 100%;
    min-height: 56px;

    padding: 0 26px;

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

    border: 0 !important;
    border-radius: 9px;

    outline: none !important;

    background: #078b3e;

    box-shadow: none !important;

    color: #ffffff;

    font-family: inherit;
    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.eficios-login-submit:hover {
    background: #087d3a;
    transform: translateY(-1px);
}

.eficios-login-submit:focus,
.eficios-login-submit:active {
    outline: none !important;
    box-shadow: none !important;
}

.eficios-login-arrow {
    position: absolute;

    right: 25px;

    font-size: 32px;
    line-height: 1;
    font-weight: 300;
}


/* =========================================
   SÉPARATEUR
========================================= */

.eficios-login-separator {
    display: flex;

    align-items: center;

    gap: 25px;

    margin: 28px 0 24px;
}

.eficios-login-separator span {
    flex: 1;

    height: 1px;

    background: #d8e0ea;
}

.eficios-login-separator strong {
    color: #657594;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================
   BLOC AIDE
========================================= */

.eficios-login-help {
    display: flex;

    gap: 20px;

    padding: 23px;

    border: 1px solid #cddff5;
    border-radius: 15px;

    background: #f7fbff;
}


/* Icône aide */

.eficios-help-icon {
    flex: 0 0 auto;

    display: flex;

    width: 70px;
    height: 70px;

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

    border-radius: 50%;

    background: #e2edff;
}

.eficios-help-icon svg {
    width: 42px;
    height: 42px;

    fill: #1644b6;
}


/* Texte aide */

.eficios-help-content {
    flex: 1;
}

.eficios-help-content strong {
    display: block;

    margin-bottom: 5px;

    color: #0d2a6b;

    font-size: 16px;
    line-height: 1.4;
}

.eficios-help-content p {
    margin: 0 0 7px;
    padding: 0;

    color: #566989;

    font-size: 15px;
    line-height: 1.5;
}

.eficios-help-content a {
    color: #0066ff !important;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.eficios-help-content a:hover {
    opacity: 0.75;
}

.eficios-help-content a span {
    margin-left: 6px;

    font-size: 22px;
}


/* =========================================
   RESPONSIVE TABLETTE / MOBILE
========================================= */

@media (max-width: 767px) {

    .eficios-login-card {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .eficios-login-header {
        margin-bottom: 27px;
    }

    .eficios-login-header h1 {
        font-size: 28px;
    }

    .eficios-login-header p {
        font-size: 16px;
    }

    .eficios-login-options {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .eficios-login-help {
        align-items: flex-start;
    }

    .eficios-help-icon {
        width: 54px;
        height: 54px;
    }

    .eficios-help-icon svg {
        width: 32px;
        height: 32px;
    }

}


/* =========================================
   PETITS MOBILES
========================================= */

@media (max-width: 480px) {

    .eficios-login-card {
        padding: 25px 17px;
    }

    .eficios-login-header h1 {
        font-size: 25px;
    }

    .eficios-form-group {
        margin-bottom: 22px;
    }

    .eficios-input-wrapper {
        min-height: 56px;
    }

    .eficios-input-wrapper input {
        height: 54px;
        padding-left: 62px;
    }

    .eficios-input-icon {
        width: 40px;
        height: 40px;
    }

    .eficios-input-icon svg {
        width: 21px;
        height: 21px;
    }

    .eficios-login-help {
        gap: 13px;
        padding: 17px;
    }

    .eficios-help-content p br {
        display: none;
    }

}