Today I will show how to create Transparent Login Form Design with Html and Css
HTML
<div class="login-box">
<div class="user-box">
<i class="fas fa-user-tie"></i>
</div>
<h1>Login Here</h1>
<form action="#">
<p>Username</p>
<input type="text" name="username" placeholder="Username">
<p>Password</p>
<input type="password" name="password" placeholder="Password">
<input type="submit" name="submit" value="Login">
<a href="#">Forget Password</a>
</form>
</div>
CSS
@import "https://use.fontawesome.com/releases/v5.5.0/css/all.css";
/*
colors
brown = #A76542
grey...= #A9B3B4
*/
body{
margin: 0;
padding: 0;
background: url(bg.jpg);
background-size: cover;
background-position: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
display: flex;
justify-content: center;
align-items: center;
}
.login-box{
width: 320px;
height: 420px;
background: rgba(0,0,0,0.5);
color: #ffffff;
padding: 70px 30px;
border-radius: 5px;
}
.login-box .user-box{
background: #A76542;
width: 100px;
height: 100px;
border-radius: 50%;
position: absolute;
top: 45px;
left:calc(50% - 50px)
}
.login-box .user-box .fas{
font-size: 60px;
position: absolute;
top: 17px;
left: 24px;
}
h1{
margin: 0;
padding: 0 0 20px;
text-align:center;
font-size: 22px;
}
.login-box p{
margin: 0;
padding: 0;
font-weight: bold;
}
.login-box input{
width: 100%;
margin-bottom: 20px;
}
.login-box input[type="text"],
input[type="password"]{
color: #ffffff;
background: transparent;
border: none;
border-bottom: 1px solid #ffffff;
outline: none;
height: 40px;
font-size: 16px;
}
.login-box input[type="submit"]{
border: none;
border-radius: 19px;
outline: none;
height: 40px;
background: #A76542;
color:#ffffff;
font-size: 18px;
}
.login-box input[type="submit"]:hover{
background: #A9B3B4;
cursor: pointer;
}
.login-box a{
text-decoration: none;
font-size: 14px;
color: #ffffff;
}
.login-box a:hover{
color: #A9B3B4;
}
(Visited 1,965 times, 1 visits today)