@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800;900&display=swap');


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

:root {

    --blue: #203bcc;
    --blue-light: #73a2ff;

    --yellow: #d99817;
    --yellow-light: #f3e292;

    --white: #ffffff;

    --black: #111827;

    --gray-50: #f8f9fc;
    --gray-100: #f1f3f7;
    --gray-200: #e3e7ef;
    --gray-500: #667085;
    --gray-700: #344054;

    --danger: #b42318;
    --danger-background: #fef3f2;

}


/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}


html,
body {

    margin: 0;

    min-height: 100%;

}


body {

    min-height: 100vh;

    font-family:
        "Roboto",
        Arial,
        sans-serif;

    color: var(--black);

    background: var(--white);

}


button,
input {

    font: inherit;

}


/* =========================================================
   PAGE
========================================================= */

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 1.08fr)
        minmax(480px, 0.92fr);

}


/* =========================================================
   PARTIE VISUELLE
========================================================= */

.login-visual {

    position: relative;

    overflow: hidden;

    min-height: 100vh;

    padding: 50px 60px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background: var(--blue);

    color: var(--white);

}


.login-visual__top,
.login-visual__content,
.login-visual__bottom {

    position: relative;

    z-index: 2;

}


.login-visual__logo {

    display: block;

    width: 138px;

    filter: brightness(0) invert(1);

}


/* =========================================================
   TEXTE VISUEL
========================================================= */

.kicker {

    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 0 12px;

    background: var(--yellow-light);

    color: var(--black);

    font-size: 11px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.14em;

}


.login-visual h1 {

    max-width: 850px;

    margin:
        22px
        0
        28px;

    font-size:
        clamp(
            54px,
            6.5vw,
            100px
        );

    line-height: 0.9;

    letter-spacing: -0.055em;

    font-weight: 900;

}


.login-visual h1 span {

    color:
        var(--yellow-light);

}


.login-visual__content > p {

    max-width: 590px;

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.75
        );

    font-size: 18px;

    line-height: 1.65;

}


/* =========================================================
   MOTIF
========================================================= */

.login-visual__pattern {

    position: absolute;

    width: 450px;

    height: 450px;

    right: -145px;

    top: 110px;

    transform:
        rotate(34deg);

    opacity: 0.14;

}


.login-visual__pattern span {

    position: absolute;

    display: block;

    width: 110px;

    height: 500px;

    border:
        26px solid
        var(--white);

    border-top: 0;

    border-bottom: 0;

    transform:
        skewY(-28deg);

}


.login-visual__pattern span:nth-child(1) {

    left: 0;

}


.login-visual__pattern span:nth-child(2) {

    left: 135px;

}


.login-visual__pattern span:nth-child(3) {

    left: 270px;

}


/* =========================================================
   SIGNATURE
========================================================= */

.login-visual__bottom {

    display: flex;

    align-items: center;

    gap: 25px;

}


.login-visual__bottom p {

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.04em;

}


.brand-mark {

    display: flex;

    align-items: center;

    gap: 4px;

    transform:
        rotate(34deg);

}


.brand-mark span {

    display: block;

    width: 6px;

    height: 28px;

    background:
        var(--yellow);

}


/* =========================================================
   PANNEAU FORMULAIRE
========================================================= */

.login-panel {

    min-height: 100vh;

    padding:
        55px
        clamp(
            42px,
            6vw,
            95px
        )
        35px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:
        var(--white);

}


.login-panel__inner {

    width: 100%;

    max-width: 520px;

    margin: auto;

}


.login-panel__mobile-logo {

    display: none;

}


/* =========================================================
   HEADING
========================================================= */

.login-heading {

    display: flex;

    align-items: flex-start;

    gap: 16px;

}


.login-heading__number {

    padding-top: 4px;

    color: var(--yellow);

    font-size: 21px;

    font-weight: 900;

}


.section-label {

    display: block;

    color: var(--blue);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.14em;

    text-transform: uppercase;

}


.login-heading h2 {

    margin:
        6px
        0
        0;

    color: var(--blue);

    font-size:
        clamp(
            42px,
            5vw,
            64px
        );

    line-height: 0.95;

    letter-spacing: -0.04em;

}


.login-intro {

    margin:
        22px
        0
        38px
        45px;

    max-width: 410px;

    color: var(--gray-500);

    line-height: 1.6;

}


/* =========================================================
   ERREUR
========================================================= */

.login-alert {

    margin-bottom: 25px;

    padding: 15px 17px;

    display: flex;

    align-items: center;

    gap: 12px;

    background:
        var(--danger-background);

    border-left:
        4px solid
        var(--danger);

    color: var(--danger);

}


.login-alert__icon {

    width: 27px;

    height: 27px;

    flex: 0 0 27px;

    display: grid;

    place-items: center;

    background: var(--danger);

    color: var(--white);

    font-size: 13px;

    font-weight: 900;

}


.login-alert p {

    margin: 0;

    font-size: 14px;

    line-height: 1.45;

}


/* =========================================================
   FORMULAIRE
========================================================= */

.login-form {

    display: grid;

    gap: 23px;

}


.form-group {

    display: grid;

    gap: 9px;

}


.form-group__header {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.form-group label {

    color: var(--gray-700);

    font-size: 13px;

    font-weight: 800;

}


.input-wrapper {

    position: relative;

}


.input-wrapper input {

    width: 100%;

    height: 58px;

    padding:
        0
        75px
        0
        52px;

    border:
        1px solid
        var(--gray-200);

    border-radius: 0;

    outline: 0;

    background:
        var(--gray-50);

    color:
        var(--black);

    font-size: 15px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;

}


.input-wrapper input:hover {

    border-color:
        #c6ccd8;

}


.input-wrapper input:focus {

    border-color:
        var(--blue);

    background:
        var(--white);

    box-shadow:
        0 0 0 4px
        rgba(
            32,
            59,
            204,
            0.08
        );

}


.input-wrapper input::placeholder {

    color: #98a2b3;

}


.input-icon {

    position: absolute;

    left: 18px;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 2;

    color: var(--blue);

    font-size: 15px;

    font-weight: 900;

    pointer-events: none;

}


.input-icon--password {

    width: 18px;

    height: 18px;

    display: grid;

    place-items: center;

    border:
        2px solid
        var(--blue);

    font-size: 0;

}


.input-icon--password::after {

    content: "";

    width: 4px;

    height: 4px;

    background: var(--blue);

}


/* =========================================================
   BOUTON VOIR MOT DE PASSE
========================================================= */

.password-toggle {

    position: absolute;

    right: 15px;

    top: 50%;

    transform:
        translateY(-50%);

    border: 0;

    background: transparent;

    color: var(--blue);

    font-size: 12px;

    font-weight: 900;

    cursor: pointer;

}


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

.login-button {

    min-height: 62px;

    margin-top: 5px;

    padding:
        0
        22px;

    border: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--blue);

    color: var(--white);

    font-size: 15px;

    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.login-button:hover {

    transform:
        translateY(-3px);

    background: #182fae;

    box-shadow:
        0 16px 34px
        rgba(
            32,
            59,
            204,
            0.25
        );

}


.login-button__arrow {

    width: 34px;

    height: 34px;

    display: grid;

    place-items: center;

    background:
        var(--yellow);

    color:
        var(--black);

    font-size: 18px;

}


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

.login-help {

    margin-top: 40px;

    display: grid;

    grid-template-columns:
        45px
        1fr;

    align-items: flex-start;

    gap: 15px;

}


.login-help__line {

    height: 3px;

    margin-top: 9px;

    background:
        var(--yellow);

}


.login-help p {

    margin: 0;

    color:
        var(--gray-500);

    font-size: 12px;

    line-height: 1.6;

}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    width: 100%;

    max-width: 520px;

    margin:
        45px
        auto
        0;

    padding-top: 20px;

    border-top:
        1px solid
        var(--gray-200);

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color:
        var(--gray-500);

    font-size: 11px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media
(max-width: 980px) {

    .login-page {

        grid-template-columns:
            0.82fr
            1.18fr;

    }


    .login-visual {

        padding:
            42px
            38px;

    }


    .login-visual h1 {

        font-size:
            clamp(
                46px,
                7vw,
                68px
            );

    }

}



@media
(max-width: 760px) {

    .login-page {

        display: block;

    }


    .login-visual {

        display: none;

    }


    .login-panel {

        min-height: 100vh;

        padding:
            32px
            24px
            24px;

    }


    .login-panel__inner {

        margin: auto;

    }


    .login-panel__mobile-logo {

        display: block;

        width: 110px;

        margin-bottom: 60px;

    }


    .login-intro {

        margin-left: 0;

    }


    .login-footer {

        margin-top: 55px;

    }

}



@media
(max-width: 480px) {

    .login-panel {

        padding:
            25px
            18px
            20px;

    }


    .login-panel__mobile-logo {

        width: 95px;

        margin-bottom: 45px;

    }


    .login-heading h2 {

        font-size: 44px;

    }


    .login-intro {

        margin-bottom: 30px;

    }


    .input-wrapper input {

        height: 55px;

    }


    .login-button {

        min-height: 58px;

    }


    .login-footer {

        flex-direction: column;

        gap: 5px;

    }

}