@charset "UTF-8";

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a314d;
    width: 100vw;
    height: 100vh;
}

main {
    position: relative;
    width: 100vw;
    height: 100vh;
}

section#login {
    position: absolute;
    top: 50%;
    left: 50%;
    
    overflow: hidden;

    background-color: white;
    width: 250px;
    height: 515px;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.685);
    
    transition: width 0.3s, height 0.3s;
    transition-timing-function: ease;
    transform: translate(-50%, -50%);
}

div#imagem {
    display: block;
    background: #1a314d url('../imagens/pattern.jpg') no-repeat;
    height: 200px;
    background-size: cover;
    background-position: top center;

}

section#login > div#formulario {
    display: block;
    padding: 10px;
}

div#formulario > h1 {
    text-align: center;
    margin-bottom: 10px;
}

div#formulario > p {
    font-size: 0.8em;
}

form > div.campo {
    background-color: #1a314d;
    border: 2px solid #1a314d;
    display: block;
    width: 100%;
    height: 40px;
    margin: 5px 0px;
    border-radius: 8px;
}

div.campo > i {
    color: white;
    font-size: 2em;
    width: 40px;
    padding: 5px;
}

div.campo > input {
    background-color: #cbd1d0c2;
    font-size: 1em;
    width: calc(100% - 44.5px);
    padding: 4px;
    height: 100%;
    border: 0px;
    border-radius: 8px;
    transform: translateY(-12px);
}

div.campo > input:focus-within {
    background-color: white;
}

form label {
    display: none;
}

form > input[type=submit] {
    margin-top: 20px;
    display: block;
    font-size: 1em;
    width: 100%;
    height: 40px;
    color: white;
    border: none;
    background-color: #787e7d;
    border-radius: 5px;
    cursor: pointer;
}

form > input[type=submit]:hover {
    background-color: #A5AEAD;
}

form > a.botao {
    display: block;
    text-align: center;
    font-size: 1em;
    width: 100%;
    height: 40px;
    background-color: #787e7d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 5px;
    padding-top: 8px;
}

form > a.botao > i {
    font-size: 0.8em;
}

form > a.botao:hover {
    background-color: #A5AEAD;
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    body {
        background-image: linear-gradient(to top, #1a314d, #979A97)
    }

    section#login {
        width: 90vw;
        height: 300px;
    }

    section#login > div#imagem {
        float: left;
        width: 30%;
        height: 100%;
    }

    section#login > div#formulario {
        float: right;
        width: 70%;
        height: 100%;
    }
}

@media screen and (min-width: 992px) {
    body {
        background-image: linear-gradient(to top, #1a314d, #979A97)
    }
    
    section#login {
        width: 950px;
        height: 325px;
    }

    section#login > div#imagem {
        float: right;
        width: 40%;
        height: 100%;
    }

    section#login > div#formulario {
        float: left;
        width: 60%;
        height: 100%;
    }

    div#formulario > h1 {
        font-size: 2em;
    }

    div#formulario > p {
        font-size: 1em;
    }
}