<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- <link rel="stylesheet" href="1.css"> -->
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: serif;
}
section {
display: flex;
justify-content: center;
align-items: center;
min-height: 110vh;
background: linear-gradient(-30deg, #3a78b7 0%, #3a78b7 50%, #262626 50%, #607b8b 100%);
filter: hue-rotate(120deg);
animation: animate 10s linear infinite;
}
@keyframes animate {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
.box {
position: relative;
padding: 50px;
width: 360px;
height: 480px;
display: flex;
justify-content: center;
align-items: center;
background: rgba(255, 255, 255, .1);
border-radius: 6px;
box-shadow: 0 5px 35px rgba(0, 0, 0, .2);
}
.box::after {
content: '';
position: absolute;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
border-radius: 5px;
pointer-events: none;
background: linear-gradient(to bottom, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .1) 15%,
transparent 50%, transparent 85%, grba(255, 255, 255, .3) 100%);
}
.box .form {
position: relative;
width: 100%;
}
.box .form h2 {
color: #fff;
font-weight: 600;
letter-spacing: 2px;
margin-bottom: 30px;
}
.box .form .inputbx {
position: relative;
width: 100%;
margin-bottom: 20px;
}
.box .form .inputbx input {
width: 100%;
outline: none;
border: 1px solid rgba(255, 255, 255, .3);
background: transparent;
padding: 8px 10px;
border-radius: 6px;
font-size: 16px;
font-weight: 300;
color: #fff;
box-shadow: inset 0 0 25px rgba(0, 0, 0, .2);
}
.box .form .inputbx input::placeholder {
color: #fff;
}
.box .form .inputbx input[type="submit"] {
background: #fff;
color: #111;
max-width: 100px;
padding: 8px 10px;
box-shadow: none;
font-weight: 500;
letter-spacing: 1px;
cursor: pointer;
}
.remeber {
position: relative;
display: inline-block;
color: #fff;
font-weight: 300;
margin-bottom: 10px;
cursor: pointer;
}
.box .form p {
color: #fff;
font-weight: 300;
font-size: 15px;
margin-top: 5px;
}
.box .form a {
color: #fff;
}
</style>
</head>
<body>
<section>
<div class="box">
<div class="form">
<h2>Login</h2>
<form action="">
<div class="inputbx">
<input type="text" name="" id="" placeholder="Username">
<img src="" alt="">
</div>
<div class="inputbx">
<input type="password" name="" id="" placeholder="Password">
<img src="" alt="">
</div>
<!-- <label for="" class="remeber"><input type="checkbox" name="" id="">Remeber Me</label> -->
<div class="inputbx">
<input type="submit" name="" id="" value="Login">
</div>
</form>
<p>Forget <a href="#">Password</a></p>
<p>Need an <a href="#">Account</a></p>
</div>
</div>
</section>
</body>
</html>