html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
}

body {
    background-image: 
        linear-gradient(165deg, 
            #ececec 49.9%,
            #ececec 50%,
            transparent 50%,
            transparent 50.1%
        ),
        url("img/fond-01.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#logo {
    height: 108px;
    width: auto;
    margin-top: 1%;
    margin-left: 1%;
    position: absolute;
    top: 0;
    left: 0;
}

#cadre {
    height: 69%;
    width: 26%;
    background-color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

H1 {
    color: #ca0047;
    text-align: center;
    font-family: Montserrat;
    font-size: 34px;
    text-transform: uppercase;
    margin-bottom: 0 !important;
    font-weight: 400;
    font-size:195%;
}

p {
        color: #ca0047;
        text-align: center;
        font-family: Montserrat;
        font-size: 34px;
        margin-bottom: 0 !important;
        font-weight: 400;
        font-size:130%;
        margin-top:1%;
    }
#colis {
    max-width: 410px;
    height: auto;
    display: block;
    margin: 20px auto;
    margin-top: -1%;
}

#loginForm {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loginForm .checkbox-container,
#loginForm a {
    align-self: flex-start;
    margin-left: 0;
}

#login {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 55px;
    padding: 15px 25px;
    font-size: 16px;
    font-family: Montserrat;
    background-color: #eef0f3;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    width: 100%;
    margin: 4px 0;
    line-height: 25px;
}

#login::placeholder {
    font-family: Montserrat;
    font-size: 15px;
}

#password {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 55px;
    padding: 15px 25px;
    font-size: 16px;
    font-family: Montserrat;
    background-color: #eef0f3;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    width: 100%;
    margin: 4px 0 0 0;
    line-height: 25px;
}

#password::placeholder {
    font-family: Montserrat;
    font-size: 15px;
}

.checkbox-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -8px;
    margin-bottom: 8px;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-color: #eef0f3;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #58e2b0da;
    position: relative;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: "✓";
    font-size: 14px;
    color: white;
    position: absolute;
    right: 1px;
    top: -1px;
}

.checkbox-container label {
    font-family: Montserrat;
    font-size: 15px;
    cursor: pointer;
}

button {
    background-color: #58e2b0da;
    color: white;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    -webkit-transition: 0.2s;
    transition: 0.2s;
    font-family: Montserrat;
    text-transform: uppercase;
    font-size: 22px;
    margin-bottom: 6px;
    margin-top: 0;
    padding: 15px 25px;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 55px;
    line-height: 25px;
}

button:hover {
    background-color:  #70ceab;
}

a {
    text-decoration: none;
    color: black;
    font-family: Montserrat;
    font-size: 95%;
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 8%;
}

a:hover {
    text-decoration: underline;
}

/* Media Query pour Mobile */
@media screen and (max-width: 768px) {
    body {
        background: white;
        background-image: none;
        display: flex;
        align-items: flex-start;
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }

    #logo {
        display: none;
    }

    #cadre {
        margin: 0;
        width: 100%;
        padding: 5px 0;
        position: static;
        transform: none;
    }

    #loginForm {
        width: 100%;
    }

    #login, #password, button {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        height: 45px;
        font-size: 14px;
        padding: 10px 20px;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    #login::placeholder, #password::placeholder {
        font-size: 14px;
    }

    .checkbox-container {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        margin-top: -6px;
        margin-bottom: 4px;
    }

    .checkbox-container label {
        font-size: 13px;
    }

    .checkbox-container input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    a {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        font-size: 13px;
        margin-bottom: 4%;
    }

    #colis {
        max-width: 70%;
        margin: 5px auto;
    }

    p {
        font-size: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
        width: 100%;
        text-align: center;
    }
}