SCSS
@import url('https://fonts.googleapis.com/css?family=Raleway:400,900');
$padrao: #20262e;
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
background-color: $padrao;
color: #fff;
font-family: 'Raleway', sans-serif;
}
.area-login {
width: 100%;
height: 100%;
display: flex;
h1 {
text-transform: uppercase;
}
.box-login {
margin: 50px auto 0 auto;
border: 1px solid #fff;
border-radius: 10px;
padding: 15px 20px;
min-width: 300px;
min-height: 200px;
text-align: center;
.input-area {
margin: 0 0 20px;
position: relative;
width: 100%;
.linha {
position: absolute;
left: 0;
bottom: 0;
width: 0%;
height: 1px;
display: block;
background-color: #fff;
transition: all .2s ease-in-out;
&.animacao {
animation: loader 1s infinite alternate;
background-color: #0084ff;
}
@keyframes loader {
10% {
width: 0%;
left: 0%;
}
50% {
width: 100%;
left: 0%;
}
90% {
width: 0;
left: 100%;
}
}
}
input {
display: block;
width: 100%;
padding: 10px;
margin: 0;
background-color: transparent;
color: #fff;
border: none;
border-bottom: 1px solid black;
&:focus + .linha {
width: 100%;
}
}
}
button {
display: block;
width: 100%;
background-color: white;
color: $padrao;
border: 1px solid transparent;
border-radius: 4px;
padding: 10px 0;
margin: 0;
&:hover {
background-color: $padrao;
color: #fff;
border-color: #fff;
}
}
}
}