@charset "UTF-8";

/* 
  Paleta de cor
  Verde: #49a09d
  Lilas: #5f2c82
*/

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

body, html {
  background-color: #5f2c82;
  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: 260px;
  height: 530px;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.514);
  
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s;
  transition-timing-function: ease;
}

section#login div#image {
  display: block;
  background: #5f2c82 url(../images/background.jpg) no-repeat;
  background-position: center center;
  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: 0.8em;
}

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

form label {
  display: none;
}

div.campo span {
  color: #fff;
  font-size: 2em;
  width: 40px;
  padding: 5px;
}

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

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

form > input[type=submit] {
  display: block;
  font-size: 1em;
  width: 100%;
  height: 35px;
  background-color: #49a09d;
  color: #fff;
  border: none;
  border-radius: 5px;
}

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

form a.botao {
  display: block;
  text-align: center;
  font-size: 1em;
  width: 100%;
  height: 35px;
  padding-top: 5px;
  margin-top: 5px;
  background-color: white;
  border: 1px solid #337471;
  color: #1d4442;
  border-radius: 7px;
  text-decoration: none;
}

form a.botao:hover {
  background-color: #64dbd7;
}

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