@charset "UTF-8";

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    --cor1: #49a09d;
    --cor2: #5f2c82;
}

body, html {
    background-color: var(--cor2);
    height: 100vh;
    width: 100vw;
}


main {
    position: relative;

    height: 100vh;
    width: 100vw;
}

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

    background-color: white;
    width: 250px;
    height: 515px;
    border-radius: 20px;
    box-shadow: 0px -1px 5px black;

    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    transition-timing-function: ease;
}

section#login > div#imagem {
    display: block;
    background: var(--cor2) url(../imagens/pexels-mattysm-3693599.jpg) no-repeat;
    background-position: top center;
    background-size: cover;
    height: 200px;
}

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

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

section#login > div#formulario > p {
    text-align: justify;
    font-size: 0.8rem;
    margin: 20px 0px;
}

form > div.campo > span {
    color: white;

    width: 40px;
    font-size: 2rem;
    padding: 5px;
}

form > div.campo > label {
    display: none;
}

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

div.campo > input {

    width: calc(100% - 44.4px);
    height:100%;
    border-radius: 8px;
    border: none;
    background-color: #5dc9c5;
    padding: 5px;
    transform: translate(0.5px, -13px);
}

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

form > input[type=submit] {
    display: block;
    font-size: 1rem;
    width: 100%;
    height: 40px;
    background-color: var(--cor1);
    color: white;
    border: none;
    border-radius: 5px;
}

form > input[type=submit]:hover {
    background-color: #2e6462;
    cursor: pointer;
}

form > a.botao {
    display: block;
    text-decoration: none;
    text-align: center;
    color: #2e6462;
    background-color: white;
    font-size: 1rem;
    border-radius: 5px;
    width: 100%;
    height: 40px;
    border: 1px solid #2e6462;
    margin-top: 5px;
}

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

form > a.botao > span {
    padding-top: 5px;
}
