/* ==========================================================
   VALORESSENCE — CONNEXION
========================================================== */

.login-page {
    min-height: calc(100vh - 80px);

    background: #f7f3ee;
}


.login-shell {
    min-height: calc(100vh - 80px);

    display: grid;

    grid-template-columns:
        minmax(380px, .9fr)
        minmax(500px, 1.1fr);
}


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

.login-shell__visual {
    position: relative;

    display: flex;
    align-items: flex-end;

    padding: 70px;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(30,17,11,.72),
            rgba(30,17,11,.88)
        ),
        url('/assets/images/annuaire-hero.jpg')
        center / cover no-repeat;

    color: #fff;
}


.login-shell__visual::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 3px;

    background: #df792a;
}


.login-shell__visual-content {
    position: relative;

    z-index: 1;

    max-width: 520px;
}


.login-eyebrow {
    display: block;

    margin-bottom: 20px;

    color: #df792a;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .07em;

    text-transform: uppercase;
}


.login-shell__visual h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(48px, 5vw, 76px);
    line-height: .98;

    font-weight: 300;

    letter-spacing: -2.5px;
}


.login-shell__visual h1 em {
    color: #df792a;

    font-weight: 300;
}


.login-shell__visual p {
    max-width: 460px;

    margin: 30px 0 0;

    color: #c9b9ae;

    font-size: 12px;
    line-height: 1.8;
}


/* ==========================================================
   PANEL
========================================================== */

.login-shell__panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 50px;

    background: #fff;
}


.login-box {
    width: min(500px, 100%);
}


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

.login-box__heading {
    margin-bottom: 34px;
}


.login-box__heading > span {
    display: block;

    margin-bottom: 11px;

    color: #df792a;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .07em;

    text-transform: uppercase;
}


.login-box__heading h2 {
    margin: 0 0 14px;

    color: #21130e;

    font-size: 44px;
    line-height: 1;

    font-weight: 300;

    letter-spacing: -1.5px;
}


.login-box__heading h2 em {
    color: #df792a;

    font-weight: 300;
}


.login-box__heading p {
    max-width: 430px;

    margin: 0;

    color: #7f6f65;

    font-size: 11px;
    line-height: 1.7;
}


/* ==========================================================
   FORM
========================================================== */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.login-form__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 16px;
}


.login-field {
    display: block;
}


.login-field > span {
    display: block;

    margin-bottom: 7px;

    color: #332119;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}


.login-field input {
    width: 100%;
    height: 50px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid #d8cac0;
    border-radius: 4px;

    outline: none;

    background: #fff;

    color: #21130e;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.login-field input:focus {
    border-color: #df792a;

    box-shadow:
        0 0 0 3px
        rgba(223,121,42,.08);
}


.login-field small {
    display: block;

    margin-top: 6px;

    color: #a18e82;

    font-size: 8px;
}


/* ==========================================================
   SUBMIT
========================================================== */

.login-submit {
    width: 100%;
    height: 51px;

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

    margin-top: 7px;
    padding: 0 18px;

    border: 0;
    border-radius: 4px;

    background: #df792a;

    color: #21130e;

    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.login-submit:hover {
    transform: translateY(-1px);

    background: #e68a3c;
}


.login-submit span {
    font-size: 14px;
}


/* ==========================================================
   SWITCH
========================================================== */

.login-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid #eee2d9;
}


.login-switch span {
    color: #89786e;

    font-size: 9px;
}


.login-switch a {
    color: #df792a;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}


/* ==========================================================
   MESSAGE
========================================================== */

.login-message {
    margin-bottom: 25px;
    padding: 14px 16px;

    border-radius: 4px;

    font-size: 10px;
    line-height: 1.6;
}


.login-message--error {
    border: 1px solid rgba(130,53,39,.18);

    background: rgba(130,53,39,.06);

    color: #813b2e;
}


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

@media (max-width: 900px) {

    .login-shell {
        grid-template-columns: 1fr;
    }


    .login-shell__visual {
        min-height: 360px;

        padding: 50px 30px;
    }


    .login-shell__panel {
        padding: 55px 25px;
    }

}


@media (max-width: 540px) {

    .login-form__grid {
        grid-template-columns: 1fr;
    }


    .login-box__heading h2 {
        font-size: 37px;
    }


    .login-switch {
        align-items: flex-start;
        flex-direction: column;
    }

}