/*
    Fichier qui gère le responsive en fonction du type d'écran.
    On utilise le display grid pour wide screen et desktop.
*/

@media only screen and (min-width: 1280px) {
    /* For wide screens: */
}

@media only screen and (min-width: 980px) and (max-width: 1280px) {
    /* For desktop: */
}

@media only screen and (min-width: 740px) and (max-width: 980px) {
    /* For tablets: */

    .card {
        height: 560px;
        width: 400px;
    }

    input:nth-child(2) {
        margin-bottom: 110px;
        margin-top: 60px;
    }

    button {
        margin-bottom: 60px;
    }
}

@media only screen and (min-width: 572px) and (max-width: 740px) {
    .card {
        height: 560px;
        width: 400px;
    }

    input:nth-child(2) {
        margin-bottom: 110px;
        margin-top: 60px;
    }

    button {
        margin-bottom: 60px;
    }
}

@media only screen and (min-width: 260px) and (max-width: 572px) {
    * {
        box-sizing: border-box;
    }
    body {
        font-size: 11px;
    }
    .card {
        height: 425px;
        width: 290px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    form {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .rememberme-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        /* SUPPRIME margin-right: -20px; */
        width: auto;
    }
    
    input[type="checkbox"] {
        margin: 0;
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
        max-width: 16px;
        max-height: 16px;
        flex: none;
        padding: 0;
        box-sizing: border-box;
    }
    
    label[for="rememberme"] {
        font-size: 14px;
        color: #555;
        cursor: pointer;
        display: inline-block;
        margin-left: 0;
        text-align: left;
        white-space: nowrap;
    }

    input {
        margin: 0;
        padding: 0;
        width: 200px;
    }

    img {
        width: 120px;
    }

    input:nth-child(2) {
        padding: 0;
        margin-bottom: 60px;
        margin-top: 30px;
    }

    button {
        margin-bottom: 30px;
        width: 170px;
    }

    h1 {
        border-bottom: 2px solid #707070;
    }

    #mdpoublie {
        display: block;
        text-align: center;
        margin: 10px auto 0 auto;
        width: auto;
        font-size: 1em;
        color: #333;
        word-break: break-word;
        position: static;
    }
}

@media only screen and (max-width: 260px) {
    /* For watch: */
    label[for="rememberme"] {
        font-size: 12px;
        color: #666;
        cursor: pointer;
        display: inline-block;
        margin-left: 5px;
        text-align: center;
    }
    #mdpoublie {
        font-size: 0.9em;
    }
}