@font-face {
    font-family: Pervitina-Dex;
    src: url('../fonts/Pervitina-Dex-FFP.ttf') format('truetype');
}

:root {
    --fontNyGYM: Pervitina-Dex, sans-serif;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

@media (min-width: 500px) {
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;

        background: 
            url('../images/gym-background-login.png')
            no-repeat
            bottom / cover
        ;

        padding: 5px;
        min-height: 100vh;
    }

    main > h1 {
        padding: 10px;
        color: white;
        font-size: 3em;
        text-align: center;
        font-weight: lighter;
        font-family: var(--fontNyGYM);
        text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.445);
    }

    main > section {
        display: flex;
        flex-direction: row;

        margin: auto;
        overflow: hidden;
        max-width: 600px;
        border-radius: 10px;
        background-color: white;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.473);
    }

    main > section > picture {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    main > section > picture > img {
        width: 300px;
        padding: 10px;
        background-color: burlywood;
    }

    main > section > form {
        width: 100%;
        padding: 10px;
        border-left: 1px solid rgb(199, 199, 199);
    }

    main > section > form > h2 {
        padding: 10px;
        text-align: center;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.479);
    }

    main > section > form > article > div > label {
        padding: 2px;
        margin: 5px 0px;
        font-size: 14px;
        font-weight: bolder;
    }

    main > section > form > article > div > input {
        width: 100%;
        padding: 7px;
        outline: none;
        margin: 5px 0px;
        border-radius: 7px;
        border: 1px solid rgb(161, 161, 161);
        transition-duration: .3s;
    }

    main > section > form > article > div > input:hover {
        cursor: pointer;
        border: 1px solid rgb(77, 77, 77);
        transition-duration: .3s;
    }

    #buttons > div > input {
        width: 100%;
        padding: 5px;
        color: white;
        border-radius: 7px;
        font-weight: bolder;
        margin: 10px 0px 0px 0px;
        border: 1px solid rgb(0, 201, 33);
        background-color: rgb(0, 226, 38);
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.541);
        transition-duration: .3s;
    }

    #buttons > div > input:hover {
        padding: 6px;
        cursor: pointer;
        background-color: rgb(0, 201, 33);
        transition-duration: .3s;
    }

    #buttons > div > a {
        color: white;
        text-decoration: none;
    }

    #buttons > div > a > p {
        padding: 5px;
        font-size: 14px;
        border-radius: 7px;
        text-align: center;
        font-weight: bolder;
        margin: 10px 0px;
        background-color: #00A1FF;
        border: 1px solid #0084ff;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.541);
        transition-duration: .3s;
    }

    #buttons > div > a > p:hover {
        padding: 6px;
        cursor: pointer;
        background-color: #0084ff;
        transition-duration: .3s;
    }

    #reset-pass {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #reset-pass > a {
        text-align: center;
        text-decoration: none;
        color: rgb(97, 97, 97);
    }

    #reset-pass > a > p {
        padding: 10px;
        font-size: 12px;
        font-weight: bolder;
        font-family: 'Courier New', Courier, monospace;
    }

    #reset-pass > a > p:hover {
        cursor: pointer;
        text-decoration: underline;
    }

    #back-page {
        position: absolute;
        left: 0%;
        top: 0%;

        padding: 10px;
        color: white;
        font-weight: bolder;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.514);
        transition-duration: .3s;
    }

    #back-page:hover {
        padding: 11px;
        cursor: pointer;
        transition-duration: .3s;
    }

    #erro-width {
        display: none;
    }
}

@media (max-width: 499px) {
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;

        background: 
            url('../images/gym-background-login.png')
            no-repeat
            bottom right / cover
        ;

        padding: 5px;
        min-height: 100vh;
    }

    main > h1 {
        padding: 10px;
        color: white;
        font-size: 3em;
        text-align: center;
        font-weight: lighter;
        font-family: var(--fontNyGYM);
        text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.445);
    }

    main > section {
        display: flex;
        flex-direction: column;

        margin: auto;
        overflow: hidden;
        max-width: 600px;
        border-radius: 10px;
        background-color: white;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.473);
    }

    main > section > picture {
        display: none;
    }

    main > section > form {
        width: 100%;
        padding: 10px;
        border-left: 1px solid rgb(199, 199, 199);
    }

    main > section > form > h2 {
        padding: 10px;
        text-align: center;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.479);
    }

    main > section > form > article > div > label {
        padding: 2px;
        margin: 5px 0px;
        font-size: 14px;
        font-weight: bolder;
    }

    main > section > form > article > div > input {
        width: 100%;
        padding: 7px;
        outline: none;
        margin: 5px 0px;
        border-radius: 7px;
        border: 1px solid rgb(161, 161, 161);
        transition-duration: .3s;
    }

    main > section > form > article > div > input:hover {
        cursor: pointer;
        border: 1px solid rgb(77, 77, 77);
        transition-duration: .3s;
    }

    #buttons > div > input {
        width: 100%;
        padding: 5px;
        color: white;
        border-radius: 7px;
        font-weight: bolder;
        margin: 10px 0px 0px 0px;
        border: 1px solid rgb(0, 201, 33);
        background-color: rgb(0, 226, 38);
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.541);
        transition-duration: .3s;
    }

    #buttons > div > input:hover {
        padding: 6px;
        cursor: pointer;
        background-color: rgb(0, 201, 33);
        transition-duration: .3s;
    }

    #buttons > div > a {
        color: white;
        text-decoration: none;
    }

    #buttons > div > a > p {
        padding: 5px;
        font-size: 14px;
        border-radius: 7px;
        text-align: center;
        font-weight: bolder;
        margin: 10px 0px;
        background-color: #00A1FF;
        border: 1px solid #0084ff;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.541);
        transition-duration: .3s;
    }

    #buttons > div > a > p:hover {
        padding: 6px;
        cursor: pointer;
        background-color: #0084ff;
        transition-duration: .3s;
    }

    #reset-pass {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #reset-pass > a {
        text-align: center;
        text-decoration: none;
        color: rgb(97, 97, 97);
    }

    #reset-pass > a > p {
        padding: 10px;
        font-size: 12px;
        font-weight: bolder;
        font-family: 'Courier New', Courier, monospace;
    }

    #reset-pass > a > p:hover {
        cursor: pointer;
        text-decoration: underline;
    }

    #back-page {
        position: absolute;
        left: 0%;
        top: 0%;

        padding: 10px;
        color: white;
        font-weight: bolder;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.514);
        transition-duration: .3s;
    }

    #back-page:hover {
        padding: 11px;
        cursor: pointer;
        transition-duration: .3s;
    }

    #erro-width {
        display: none;
    }
}

@media (max-width: 319px) {
    body {
        background:
        url('../images/gym-background-sad.png')
        no-repeat
        bottom right / cover;
    }

    header {
        display: none;
    }

    main {
        display: none;
    }

    footer {
        display: none;
    }

    #erro-width {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        height: 100vh;
        text-align: center;
    }

    #erro-width > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;

        padding: 10px;
        margin: 10px 10px;
        font-weight: bolder;
        border-radius: 10px;
        background-color: white;
        border: 1px solid rgb(199, 199, 199);
        box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.486);
    }

    #erro-width > div > div {
        padding: 10px;
        color: white;
        font-size: 2em;
        border-radius: 50%;
        background-color: red;
    }

    #erro-width > div > h1 {
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.479);
    }

    #erro-width > div > p {
        font-size: 14px;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.479);
    }
}

#erro-email {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 300px;
    padding: 10px;
    margin: 10px 10px;
    text-align: center;
    font-weight: bolder;
    border-radius: 10px;
    background-color: white;
    border: 1px solid rgb(199, 199, 199);
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.486);
}

#erro-email > div {
    padding: 10px;
    color: white;
    font-size: 2em;
    border-radius: 50%;
    background-color: red;
}
