/* =========================================================
   PAGE DE CONNEXION
   ========================================================= */

.page-connexion {
    display: grid;
    min-height: 100vh;
    place-items: center;

    margin: 0;
    padding: 24px;

    background:
        linear-gradient(
            135deg,
            #f5f2eb 0%,
            #e9e4da 100%
        );
}

.connexion-conteneur {
    width: min(420px, 100%);
}

.connexion-carte {
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 42px;

    border: 1px solid #c9c4ba;
    background: #ffffff;

    box-shadow:
        0 22px 55px rgba(37, 37, 37, 0.13);

    text-align: center;
}

.connexion-logo {
    display: block;

    width: 220px;
    height: auto;

    margin-bottom: 30px;

    object-fit: contain;
}

.connexion-identite h1 {
    margin: 0;

    color: #14533e;

    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.connexion-identite p {
    margin: 8px 0 0;

    color: #6b665e;

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

.connexion-bouton {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;

    margin-top: 38px;
    padding: 16px 20px;

    border: 0;

    background: #14533e;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.connexion-bouton:hover {
    background: #0f4432;

    box-shadow:
        0 8px 20px rgba(20, 83, 62, 0.2);

    transform: translateY(-1px);
}

.connexion-bouton:focus-visible {
    outline: 3px solid rgba(20, 83, 62, 0.28);
    outline-offset: 4px;
}

.connexion-bouton:active {
    transform: translateY(0);
}

@media screen and (max-width: 500px) {

    .page-connexion {
        padding: 16px;
    }

    .connexion-carte {
        min-height: 360px;
        padding: 32px 24px;
    }

    .connexion-logo {
        width: 78px;
        height: 78px;
    }

    .connexion-identite h1 {
        font-size: 30px;
    }
}