@charset "UTF-8";

/*
    Paleta de cores:
    Verde: #49a09d
    Lilás: #5f2c82
*/

*{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}
body, html{
    background-color: #5f2c82;
    height: 100vh;
    width: 100vw;
}
main{
    position: relative;
    height: 100vh;
    width: 100vw;
}
section#login{
    position: absolute;
    left: 50%;
    top: 50%;
    overflow: hidden;
    background-color: white;
    width: 250px;
    height: 515px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.471);
    transition: width .3s, height .3s;
    transition-timing-function: ease;
    transform: translate(-50%, -50%);
}
section#login > div#imagem{
    display: block;
    background: #5f2c82 url(../imagens/metal.jpg) left bottom no-repeat;
    background-size: cover;
    height: 200px;
}
section#login > div#formulario{
    display: block;
    padding: 10px;
}
div#formulario > h1{
    text-align: center;
    margin-bottom: 10px;
}
div#formulario > p{
    font-size: .8em;
}
form > div.campo{
    display: block;
    background-color: #5f2c82;
    border: 5px solid #5f2c82;
    width: 100%;
    height: 40px;
    border-radius: 7px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 5px;
    margin-top: 5px;
}
div.campo > input{
    background-color: #a9e7e5;
    font-size: 1em;
    width: calc(100% - 45px);
    height: 100%;
    border: 0;
    border-radius: 7px;
    padding: 4px;
    transform: translateY(-15px);
}
i{
    color: white;
    width: 40px;
    padding: 5px;
    transform: translateY(-6px);
}
a > i{
    color: #2d6462;
    padding: 0;
    width: 0;
}
div.campo > input:focus-within {
    background-color: white;
    outline: none;
}
form > input[type=submit]{
    display: block;
    font-size: 1em;
    width: 100%;
    height: 40px;
    background-color: #49a09d;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}
form > input[type=submit]:hover{
    background-color: #2d6462;
}
form > a.botao{
    display: block;
    text-align: center;
    font-size: 1em;
    width: 100%;
    height: 40px;
    color: #2d6462;
    border: 2px solid #49a09d;
    border-radius: 7px;
    text-decoration: none;
    padding-top: 7px;
    margin-top: 5px;
}
form > a.botao:hover{
    background-color: #49a09d;
}
form > a.botao > i{
    font-size: .8em;
}