html, body {
    margin: 0;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

body.loginPage {
    background-color: #000;
    background-image: url(../img/bg-login.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.loginContent {
    display: flex;
    justify-content: center;
    width: 100%;
}

.loginLayout {
    position: fixed;
    top: 50%;
    margin-top: 100px;
    transform: translateY(calc(-50% - 50px));
    box-sizing: border-box;
    width: max-content;
    min-width: 350px;
    max-width: 100%;
    padding: 24px;
    background-color: #fff;
    color: #575757;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .16);
}

.loginLayout::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    width: 250px;
    height: 100px;
    transform: translateX(-50%);
    background: url(../img/logo_white.svg) center / contain no-repeat;
}

.loginTitle {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loginButton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #8A8A8F;
    border-radius: 4px;
    color: #41454D;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: ease all .3s;
}

.loginButton:hover,
.loginButton:focus-visible {
    border-color: #01828E;
    background-color: #F0F8F9;
    color: #01828E;
    outline: none;
}

.loginButton img {
    height: 24px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
}

/* Petits écrans : la carte prend toute la largeur et le texte des boutons peut passer à la ligne */
@media (max-width: 520px) {
    .loginLayout {
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .loginButton {
        height: auto;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
        white-space: normal;
        text-align: center;
    }

    .loginButton img {
        flex-shrink: 0;
    }
}
