html, body { overflow: hidden; }

header { overflow: hidden; }

header
{
    display : flex;
    grid-column : 1 / -1; /* IMPORTANT : prend les 12 colonnes */
    align-items : center;
    justify-content : space-evenly;
    gap: 105px;
    height : 60px;
    border-bottom: 1px solid #dbdbdb;
}

header img
{
    margin-top: 5px;
    width: 170px;
    height: 170px;
    object-fit: contain;  
    /* garde les proportions */
}

div.header-button
{
    display: flex;
    margin-right: 25px;
    gap: 12px;
}

header a.text
{
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 6px;
    padding-bottom: 6px;
    text-decoration: none;
    font-size: 15px;
    color :#5063F9;
    transform: translateY(2px);
}

header a.text,
header a.button
{
    display: inline-block;
    white-space: nowrap;

}


header a.text:hover
{
    text-decoration: underline;
}

header a.button
{
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 8px;
    padding-bottom: 5px;

    border-radius: 10px;
    background: #5063F9;
    border: none; /* Enlève la bordure par défaut */
    outline: none; /* Enlève le contour au focus (optionnel) */
    color: #fafafa;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
}

main
{
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 4 / 10; /* IMPORTANT : prend les 12 colonnes */
    grid-row: 5/8;
    width: 400px;
    height: 510px;
    justify-self: center;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
}

main img.padlock
{
    margin-top: 25px;
    margin-bottom: 12px;

    width: 100px;
    height: 100px;
    object-fit: contain;
}

p.padlock1
{
    font-weight: bold;
    margin-bottom: 8px;
}

p.padlock2,
p.padlock3
{
    font-size: 14px;
    color: #666666;
}

p.padlock3
{
    margin-bottom: 10px;
}

button.login-link
{
    background: #B7C6FF;
    width: 290px;
    padding-top: 8px;
    padding-bottom: 7px;
    border-radius: 8px;
    border: none;
    color :#fafafa;
    font-weight: bold;
    margin-bottom: 10px;
}

/* OR delimitation */

.or 
{
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 9px;

}

.left.or
{
    width: 130px;
    background: #ddd;
    height: 1px;
    transform: translateY(-px);
}

span.or
{
    padding: 0 10px;
    color: #666;
    font-weight: bold;
}

.right.or
{
    width: 130px;
    background: #ddd;
    height: 1px;
    transform: translateY(-1px);
}

a.create-account
{
    text-decoration: none;
    color: #262626;
    font-size: 14px;
}

a.create-account:hover
{
    text-decoration: underline;
}


a.login-back
{
    font-size: 15px;
    text-decoration: none;
    color: #262626;
    transform: translateY(1px);
}

a.login-back:hover
{
    text-decoration: underline;
}

a.reset-password
{
    text-decoration: none;
    font-size: 13px;
    color :  #1557d2;
}


main input
{
    width: 290px;
    padding: 9px 0 7px 8px;
    border: 1px solid #dbdbdb; 
    border-radius: 3px;
    outline: none; 
}

div.bottom
{
    display: flex;
    width: 100%;
    height: 45px;
    background: #F0F0F0;
    border-top: 1px solid #dbdbdb;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

form
{
    display: flex;
    flex-direction: column;
    gap : 11px;
    margin-bottom: 10px;
}


div.snackbar {
    display: none;
    position: fixed;
    bottom: 80px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #262626;
    padding: 12px 24px;
    min-width: 300px;
    max-width: 450px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    color: #FAFAFA;
    font-size: 14px;
    z-index: 1000;
}

div.snackbar.show 
{
    display: flex;
}

div.snackbar p {
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

#snackbar-success {
    color: #fff;
}

#snackbar-failure {
    color: #fff;
}


#snackbar-error {
    color: #fff;
}

p.error-timeout
{
    display : none;
    text-align: center;
    margin-top: 15px;
    color : #ED4956;
    font-size: 14px;
}


@media (max-height: 630px)
{
    footer
    {
        display: none;
    }
}


@media (max-width: 480px) {
    header {
        padding: 0 10px;
        gap: 0;
        justify-content: space-between;
    }
    div.header-button {
        gap: 6px;
    }
}