It's free and you have access to premium codes!
Welcome back! Please login to your account.
Don't worry, we'll send you a message to help you to recover your acount.
Please check your email for instructions to activate your account.
Written by 27 March 2021
In the following code, we have a login form that has a special style and is useful for websites with a dark background. This form has a glassy glowing background and in various rainbow colors, which are constantly changing. This dynamic form can attract and surprise your website visitors.
<!-- this script is provided by https://www.htmlbestcodes.com coded by: Kerixa Inc. -->
<style>
* {
margin-bottom: 10px;
}
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000000;
font-family: black Arial, Helvetica, sans-serif;
}
/* form dark gray background*/
.container {
position: relative;
width: 300px;
min-height: 425px;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0 5px 15px rgba(0, 0, 0, 1);
}
/*form light gray 1/2 background*/
.container:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
pointer-events: none;
}
/* form content and styling*/
.form {
position: absolute;
width: 100%;
height: 100%;
padding: 40px;
box-sizing: border-box;
z-index: 1;
}
.form h2 {
text-align: center;
margin: 0;
padding: 0;
color: #fff;
font-size: 24px;
}
.form .inputBox input {
width: 100%;
background: transparent;
border: none;
border-bottom: 2px solid #ffffff;
outline: none;
color: #fff;
font-size: 18px;
padding: 5px 0;
margin-top: 30px;
}
::placeholder {
color: #eee;
}
.form .inputBox input[type="submit"] {
margin-left: 39%;
background: #fff;
color: #000000;
border: none;
border-radius: 5px;
font-weight: 900;
max-width: 100px;
cursor: pointer;
}
.form p {
color: #eee;
text-align: center;
}
.form p a {
text-align: center;
text-decoration: none;
color: #fff;
}
/* form glowing background*/
.container::after {
content: '';
position: absolute;
top: -5px;
left: -5px;
right: -5px;
bottom: -5px;
background: linear-gradient(45deg,#ff0047,#6eff00);
pointer-events: none;
animation: animate 10s linear infinite;
}
@keyframes animate {
0% {
filter: blur(50px) hue-rotate(0deg);
}
100% {
filter: blur(50px) hue-rotate(360deg);
}
}
</style>
<div class="container">
<div class="form">
<h2>Login Form</h2>
<form >
<div class="inputBox">
<input type="text" name="" placeholder="Username">
</span>
<span class="line"></span>
</div>
<div class="inputBox">
<input type="password" name="" placeholder="password">
</span>
<span class="line"></span>
</div>
<div class="inputBox">
<input type="submit" value="Login">
<p>Forgot password ?<a href="#"> reset your password.</a></p>
<p>You don't have an account ?<a href="#"> create one.</a></p>
</div>
</form>
</div>
</div><a target='_blank' href='https://www.htmlbestcodes.com' style='font-size: 8pt; text-decoration: none'>Html Best Codes</a>
Comments
Here you can leave us commments. Let us know what you think about this code tutorial!