/* =========================================================
   RESET
========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


/* =========================================================
   BODY
========================================================= */

html,
body {

    width: 100%;

    min-height: 100%;

}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

}


/* =========================================================
   PAGE PRINCIPALE
========================================================= */

.login-page {

    min-height: 100vh;

    width: 100%;

    position: relative;

    display: flex;

    overflow: hidden;


    /*
     * Image du bâtiment
     */

    background-image:

        linear-gradient(
            rgba(5, 48, 105, 0.86),
            rgba(5, 48, 105, 0.86)
        ),

        url("../assets/login-bg.jpg");


    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

}


/* =========================================================
   PARTIE GAUCHE
========================================================= */

.institution-section {

    width: 33%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

}


.institution-content {

    text-align: center;

    color: white;

    max-width: 360px;

    margin-top: -20px;

}


/* =========================================================
   LOGO GAUCHE
========================================================= */

.institution-logo {

    width: 175px;

    height: 175px;

    object-fit: contain;

    margin-bottom: 20px;

}


/* =========================================================
   TITRE GAUCHE
========================================================= */

.institution-content h1 {

    font-size: 28px;

    line-height: 1.25;

    font-weight: 700;

    color: #ffffff;

    margin-bottom: 20px;

}


/* =========================================================
   LIGNE JAUNE
========================================================= */

.yellow-line {

    width: 50px;

    height: 3px;

    background: #f4d000;

    margin: 0 auto 20px auto;

}


/* =========================================================
   DESCRIPTION
========================================================= */

.institution-content p {

    color: #ffffff;

    font-size: 16px;

    line-height: 1.55;

    margin: 0;

    opacity: 0.95;

}


/* =========================================================
   PARTIE LOGIN
========================================================= */

.login-section {

    width: 67%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px 50px;

}


/* =========================================================
   CONTENEUR LOGIN
========================================================= */

.login-container {

    width: 100%;

    max-width: 620px;

}


/* =========================================================
   CARTE LOGIN
========================================================= */

.login-card {

    background: #ffffff;

    border-radius: 15px;

    padding: 35px 45px 42px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);

}


/* =========================================================
   LOGO LOGIN
========================================================= */

.login-logo-container {

    text-align: center;

    margin-bottom: 14px;

}


.login-logo {

    width: 105px;

    height: 105px;

    object-fit: contain;

}


/* =========================================================
   TITRE LOGIN
========================================================= */

.login-card h2 {

    text-align: center;

    color: #123d73;

    font-size: 31px;

    font-weight: 700;

    margin-bottom: 4px;

}


.login-subtitle {

    text-align: center;

    color: #6b7280;

    font-size: 16px;

    margin-bottom: 40px;

}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {

    margin-bottom: 22px;

}


.form-group label {

    display: block;

    font-size: 15px;

    font-weight: 700;

    color: #142c43;

    margin-bottom: 8px;

}


/* =========================================================
   LABEL PASSWORD
========================================================= */

.password-label {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.password-label a {

    color: #0868ff;

    text-decoration: none;

    font-size: 15px;

}


.password-label a:hover {

    text-decoration: underline;

}


/* =========================================================
   INPUT
========================================================= */

.input-wrapper {

    width: 100%;

    height: 60px;

    display: flex;

    align-items: center;

    border: 1px solid #d9dee5;

    border-radius: 9px;

    overflow: hidden;

    background: #ffffff;

    transition: 0.2s;

}


.input-wrapper:focus-within {

    border-color: #1850a5;

    box-shadow:
        0 0 0 3px
        rgba(24, 80, 165, 0.10);

}


/* =========================================================
   ICON INPUT
========================================================= */

.input-icon {

    width: 50px;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f8f9fa;

    color: #172b40;

    font-size: 18px;

    border-right: 1px solid #edf0f3;

}


/* =========================================================
   INPUT FIELD
========================================================= */

.input-wrapper input {

    flex: 1;

    height: 100%;

    border: 0;

    outline: 0;

    padding: 0 15px;

    font-size: 16px;

    color: #374151;

}


.input-wrapper input::placeholder {

    color: #697586;

}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {

    width: 52px;

    height: 100%;

    border: 0;

    border-left: 1px solid #e1e5ea;

    background: #f8f9fa;

    color: #142c43;

    cursor: pointer;

    font-size: 18px;

}


.password-toggle:hover {

    background: #eef1f4;

}


/* =========================================================
   REMEMBER
========================================================= */

.remember-container {

    margin-top: 3px;

    margin-bottom: 32px;

}


.remember-container label {

    display: flex;

    align-items: center;

    gap: 10px;

    cursor: pointer;

    color: #24364b;

    font-size: 15px;

}


.remember-container input {

    width: 18px;

    height: 18px;

    cursor: pointer;

}


/* =========================================================
   BOUTON LOGIN
========================================================= */

.login-button {

    width: 100%;

    height: 60px;

    border: none;

    border-radius: 8px;

    background: #1450a8;

    color: #ffffff;

    font-size: 19px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.1s;

}


.login-button:hover {

    background: #0f4290;

}


.login-button:active {

    transform: scale(0.99);

}


.login-button:disabled {

    opacity: 0.8;

    cursor: not-allowed;

}


/* =========================================================
   ACCES SECURISE
========================================================= */

.secure-box {

    margin-top: 25px;

    padding: 17px 20px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f1f7ff,
            #f7fbff
        );

    display: flex;

    gap: 15px;

    align-items: flex-start;

}


/* =========================================================
   ICON SECURITE
========================================================= */

.secure-icon {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    background: #1474e8;

    flex-shrink: 0;

}


.secure-icon i {

    font-size: 15px;

}


/* =========================================================
   TEXTE SECURITE
========================================================= */

.secure-box strong {

    display: block;

    color: #0764d9;

    font-size: 15px;

    margin-bottom: 4px;

}


.secure-box p {

    color: #536273;

    font-size: 14px;

    line-height: 1.45;

    margin: 0;

}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    color: #ffffff;

    text-align: center;

    font-size: 14px;

    line-height: 1.5;

    margin-top: 16px;

    text-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.4);

}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1000px) {


    .login-page {

        flex-direction: column;

        overflow-y: auto;

    }


    .institution-section {

        width: 100%;

        min-height: auto;

        padding: 35px 20px 10px;

    }


    .institution-content {

        margin: 0;

    }


    .institution-logo {

        width: 110px;

        height: 110px;

        margin-bottom: 10px;

    }


    .institution-content h1 {

        font-size: 23px;

    }


    .institution-content p {

        font-size: 14px;

    }


    .login-section {

        width: 100%;

        min-height: auto;

        padding: 25px 20px 35px;

    }


    .login-container {

        max-width: 600px;

    }

}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 576px) {


    .institution-section {

        padding-top: 25px;

    }


    .institution-logo {

        width: 90px;

        height: 90px;

    }


    .institution-content h1 {

        font-size: 21px;

    }


    .institution-content p {

        font-size: 13px;

    }


    .login-section {

        padding: 15px;

    }


    .login-card {

        padding: 30px 20px;

        border-radius: 13px;

    }


    .login-logo {

        width: 85px;

        height: 85px;

    }


    .login-card h2 {

        font-size: 25px;

    }


    .login-subtitle {

        font-size: 14px;

        margin-bottom: 30px;

    }


    .password-label {

        align-items: flex-start;

        gap: 10px;

    }


    .password-label a {

        font-size: 13px;

    }


    .input-wrapper {

        height: 54px;

    }


    .login-button {

        height: 54px;

        font-size: 17px;

    }

}