@charset "UTF-8";

*{
    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;
}

h1{
   color: #2B2B2B;
}

p{
    color: #2B2B2B;
}

body, html{
    background-color:#F2E9E4;
    height: 100vh;
    width: 100vw;
}

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

section#login{
    background-color:#FAF7F5;
    width:250px;
    height:500px;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

section#login > div#imagem {
    display: block;
    background:#F2E9E4 url(../imagens/pexels-esra-afsar-123882149-34793685.jpg);
    background-size: cover;
    height: 200px;
    background-position: 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: #3B2A24;
    display: flex; /* TROCA block por flex */
    align-items: center; /* centraliza vertical */
    width: 100%;
    height: 40px;
    border-radius: 8px;
    margin: 5px 0px;
}

div.campo > label{
    display: none;
    
}

div.campo > span {
    color: #F2E9E4;
    font-size: 1.5em;
    padding: 0 10px;
}
div.campo > input {
    background-color: #D6D3D1;
    font-size: 1em;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    padding: 0 10px; /* espaço interno bonito */
}


form > input[type=submit]{
    display: block;
    font-size: 1em;
    width: 100%;
    height: 30px;
    background-color: #3B2A24;
    color: white;
    border: none;
    border-radius: 5px;
}

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

form > button{
    display: block;
    font-size: 0.8em;
    width: 100%;
    height: 30px;
    background-color: transparent;
    color: #3B2A24;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}