*, :before, :after {
box-sizing: border-box;
}
body {
background: #424242;
}
form {
width: 320px;
/* margin: 45px auto; */
}
.group {
position: relative;
margin: 25px 0;
}
textarea {
resize: none;
}
input, textarea {
background: none;
color: #062A47;
font-size: 18px;
padding: 10px 10px 10px 5px;
display: block;
width: 320px;
border: none;
border-radius: 0;
border-bottom: 1px solid #555657;
}
input:focus, textarea:focus {
outline: none;
}
input:focus ~ label, textarea:focus ~ label, input:valid ~ label, textarea:valid ~ label {
top: -14px;
font-size: 12px;
color: #23A437;
}
input:focus ~ .bar:before, textarea:focus ~ .bar:before {
width: 320px;
}
input[type="password"] {
letter-spacing: 0.3em;
}
label {
color: #555657;
font-size: 16px;
font-weight: normal;
position: absolute;
pointer-events: none;
left: 5px;
top: 10px;
transition: 300ms ease all;
}
.bar {
position: relative;
display: block;
width: 320px;
}
.bar:before {
content: '';
height: 2px;
width: 0;
bottom: 0px;
position: absolute;
background: #23A437;
transition: 300ms ease all;
left: 0%;
}
.btn {
background: #fff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 3px;
letter-spacing: 0.06em;
text-transform: uppercase;
text-decoration: none;
outline: none;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn:hover {
color: #FFF;
box-shadow: 0 7px 14px rgba(0, 0, 0, 0.18), 0 5px 5px rgba(0, 0, 0, 0.12);
}
.btn.btn-link {
background: #23A437;
color: #d3eafd;
}
.btn.btn-link:hover {
background: #23A437;
color: #FFF;
}
.btn.btn-submit {
background: #23A437;
color: #bce0fb;
}
.btn.btn-submit:hover {
background: #23A437;
color: #FFF;
}
.btn-box {
text-align: center;
margin: 20px 0;
}
