index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<section>
<form>
<h1>Login</h1>
<div class="inputbox">
<ion-icon name="mail-outline"></ion-icon>
<input type="email" required>
<label for="">Email</label>
</div>
<div class="inputbox">
<ion-icon name="lock-closed-outline"></ion-icon>
<input type="password" required>
<label for="🛅">Password</label>
</div>
<div class="forget">
<label for="🔓"><input type="checkbox">Remember Me</label>
<a href="#">Forget Password</a>
</div>
<button>Log in</button>
<div class="register">
<p>Don't have a account <a href="#">Register</a></p>
</div>
</form>
</section>
</body>
</html>
style.css
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'poppins', sans-serif;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-image: url(https://th.bing.com/th/id/R.5913cfd6237c5df885920f79e1d9bbd2?rik=Cmo8Btqu8xM4aA&riu=http%3a%2f%2ffc02.deviantart.net%2ffs71%2ff%2f2012%2f244%2f3%2fe%2fnegeri_di_awan_by_edwin1303-d5d60zf.jpg&ehk=LjUKr2PW4OnPavCaOBO%2fTe%2baCroI2Rt7M9HT%2bzbMv28%3d&risl=&pid=ImgRaw&r=0);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
section {
position: relative;
max-width: 400px;
background-color: transparent;
border: 2px solid rgba (255, 255, 255, 0.5);
border-radius: 20px;
backdrop-filter: blur(55px);
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 3rem;
}
h1 {
font-size: 2rem;
color: #fff;
text-align: center;
}
.inputbox {
position: relative;
margin: 40px 0;
max-width: 310px;
border-bottom: 2px solid #fff;
}
.inputbox label {
position: absolute;
top: 50%;
left: 6px;
transform: translateY(-50%);
color: #fff;
font-size: 1rem;
pointer-events: none;
transition: all 0.5s ease-in-out;
}
input:focus ~ label,
input:valid ~ label {
top: -5px
}
.inputbox input {
width: 100%;
height: 90px;
background: transparent;
border: none;
outline: none;
font-size: 1rem;
padding: 0 35px 0 5px;
color: #fff;
}
.inputbox ion-icon {
position: absolute;
right: 8px;
color: #fff;
font-size: 1.2rem;
top: 20px;
}
.forget {
margin: 35px 0;
font-size: 0.85rem;
color: #fff;
display: flex;
justify-content: space-between;
}
.forget label {
display: flex;
align-items: start;
}
.forget label input {
margin-right: 3px;
}
.forget a {
color: #fff;
text-decoration: none;
font-weight: 600;
}
.forget a:hover {
text-decoration: underline;
}
button {
width: 100%;
height: 40px;
border-radius: 40px;
background-color: rgb(255, 255, 255, 1);
border: none;
outline: none;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: all 0.4s ease;
}
button:hover {
background-color: rgb(255, 255, 255, 0.5);
}
.register {
font-size: 0.9rem;
color: #fff;
text-align: center;
margin: 25px 0 10px;
}
.register p a {
text-decoration: none;
color: #fff;
font-weight: 600;
}
.register p a:hover {
text-decoration: underline;
}
0 Komentar