body{
background: linear-gradient(90deg, #a3cf5c, #e05d73);
}
.login{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
border-radius: 10px;
width: 30%;
box-shadow: 2px 2px 5px whitesmoke;
}
.login h1{
text-align: center;
padding: 0 0 20px 0;
border-bottom: 1px solid rgb(83, 82, 82);
font-family:'Trebuchet MS';
}
.login form{
padding: 0 40px;
}
form .text{
position: relative;
border-bottom: 2px solid #464343;
margin: 30px 0;
}
.text input{
width: 100%;
padding: 0 5px;
height: 40px;
font-size: 16px;
border: none;
background: none;
outline: none;
}
.text i{
position: absolute;
top: 50%;
left: 5px;
color: #6d6a6a;
transform: translateY(-50%);
font-size: 16px;
pointer-events: none;
}
.text span::before{
content: '';
position: absolute;
top: 40px;
left: 0;
width: 0px;
height: 2px;
background: #2691d9;
transition: .5s;
}
.text input:focus ~ i,
.text input:valid ~ i{
top: -5px;
color: #2691d9;
}
.text input:focus ~ span::before,
.text input:Valid ~ span::before{
width: 100%;
}
.forget-password{
margin: -5px 0 20px 5px;
color: #504e4e;
cursor: pointer;
}
.forget-password:hover{
text-decoration: underline;
}
input[type="Submit"]{
width: 100%;
height: 50px;
border: 1px solid;
border-radius: 25px;
font-size: 18px;
font-weight: 700;
cursor: pointer;
}
input[type="Submit"]:hover{
background: #2691d9;
color: #e9f4fb;
transition: .10s;
}
.signup_link{
margin: 30px 0;
text-align: center;
font-size: 16px;
color: #666666;
}
.signup_link a{
color: #2691d9;
text-decoration: none;
}
.signup_link a:hover{
text-decoration: underline;
}