input {
display: block;
width: 100%;
padding: 10px 20px;
color: #4f4f4f;
background-color: #fff;
border: 1px solid #bdbdbd;
max-width: 400px;
border-radius: 4px;
outline:0;
}
input:focus {
box-shadow: inset 0 0 0 1px #478cff;
border: 1px solid #1266f1;
}
span {
opacity: 0;
margin: 0 0 0 8px;
transition: 1s linear;
background: #fff;
left: 8px;
height: 10px;
position: absolute;
padding: 0 10px;
color: #454545;
}
label input:focus + span {
display: block;
transform: translateY(-60px);
background: #fff;
padding: 5px 10px;
z-index: 10;
opacity:1 ;
}
input::-webkit-input-placeholder {
color: #999;
transition: 1s linear
}
input:focus::-webkit-input-placeholder {
color: transparent;
}