content logo

Bootstrap Forms:

Gradient Bootstrap Login & Register Form Design

You may have seen many websites with login sections. In these kinds of websites, audiences can register and log into the website in order to access their needed information. The Gradient Bootstrap Login & Register Form Design is designed for the same purpose and you can use it to gain more visitors. By using this Bootstrap Login Form, people can enter different websites and use more information. If you want to let your visitors see all areas of your website, you can use the following Gradient Login Form Code.

As you see in the following preview, this CSS Login Form Code has a blue and white theme. So, if your website has the same color, this code can be a good choice for you. The blue color exists at the top and bottom of the page. The title of the Stylish Login Form Code is white and the main part has a white background in the middle of the page. The first field is designed for your username with a person icon. The second section of this Stylish Login Form Code is presented for your password with a fingerprint icon. The login and register fields have a blue background with white text.

#

Bootstrap Login Form

#

Gradient Login Form Code

#

Login Form with Icon

#

Stylish Login Form Code

#

CSS Login Form Code

<!-- This script got from frontendfreecode.com -->
<head>
    <title>Login & Register Form Design</title>
</head>
<section class="login-register-content">
    <div class="card-content">
        <div class="card-header">
            <h2>Login & Register</h2>
            <p>Login & Register Description</p>
        </div>
        <div class="card-body">
            <form method="post">
                <input type="text" name="username" placeholder="Username">
                <i class="far fa-user"></i>
                <input type="password" name="password" placeholder="Password">
                <i class="fas fa-fingerprint"></i>
                <!-- <a href="#"><i id="password" class="far fa-eye"></i></a> -->
                <button type="button">Login & Register</button>
            </form>
        </div>
    </div>
</section><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
* {
	margin: 0;
	padding: 0;
	font-family: 'Roboto', sans-serif;
}
.login-register-content {
	width: 100%;
	height: 100vh;
	background: linear-gradient(160deg, #000428, #004e92);
	display: flex;
	align-items: center;
	justify-content: center;
}
.card-content {
	width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}
.card-header {
	width: 100%;
	heigth: auto;
	padding: 15px;
	background: linear-gradient(-160deg, #000428, #004e92);
}
.card-header h2 {
	color: #fff;
	font-weight: 700;
	margin-bottom: 8px;
}
.card-header p {
	color: #fff;
}
.card-body {
	width: 100%;
	height: auto;
	background-color: #fff;
}
.card-body form {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.card-body form input {
	padding: 15px 50px;
	border-radius: 50px;
	border: 1px solid rgba(0, 0, 0, 0.3);
}
.card-body form i {
	width: 42px;
	height: 42px;
	background: linear-gradient(-160deg, #000428, #004e92);
	position: relative;
	top: -55px;
	left: 3px;
	border-radius: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	margin-bottom: -42px;
}
.card-body form #password {
	top: -65px;
	left: 425px;
	margin-bottom: -60px;
}
.card-body form button {
	padding: 15px;
	border-radius: 30px;
	background: linear-gradient(-160deg, #000428, #004e92);
	color: #fff;
	font-weight: 400;
	font-size: 18px;
	border: 1px solid rgba(0, 0, 0, 0.3);
}
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
* {
	margin: 0;
	padding: 0;
	font-family: 'Roboto', sans-serif;
}
.login-register-content {
	width: 100%;
	height: 100vh;
	background: linear-gradient(160deg, #000428, #004e92);
	display: flex;
	align-items: center;
	justify-content: center;
}
.card-content {
	width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}
.card-header {
	width: 100%;
	heigth: auto;
	padding: 15px;
	background: linear-gradient(-160deg, #000428, #004e92);
}
.card-header h2 {
	color: #fff;
	font-weight: 700;
	margin-bottom: 8px;
}
.card-header p {
	color: #fff;
}
.card-body {
	width: 100%;
	height: auto;
	background-color: #fff;
}
.card-body form {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.card-body form input {
	padding: 15px 50px;
	border-radius: 50px;
	border: 1px solid rgba(0, 0, 0, 0.3);
}
.card-body form i {
	width: 42px;
	height: 42px;
	background: linear-gradient(-160deg, #000428, #004e92);
	position: relative;
	top: -55px;
	left: 3px;
	border-radius: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	margin-bottom: -42px;
}
.card-body form #password {
	top: -65px;
	left: 425px;
	margin-bottom: -60px;
}
.card-body form button {
	padding: 15px;
	border-radius: 30px;
	background: linear-gradient(-160deg, #000428, #004e92);
	color: #fff;
	font-weight: 400;
	font-size: 18px;
	border: 1px solid rgba(0, 0, 0, 0.3);
}
</style>

</head>
<body>
<head>
    <title>Login & Register Form Design</title>
</head>
<section class="login-register-content">
    <div class="card-content">
        <div class="card-header">
            <h2>Login & Register</h2>
            <p>Login & Register Description</p>
        </div>
        <div class="card-body">
            <form method="post">
                <input type="text" name="username" placeholder="Username">
                <i class="far fa-user"></i>
                <input type="password" name="password" placeholder="Password">
                <i class="fas fa-fingerprint"></i>
                <!-- <a href="#"><i id="password" class="far fa-eye"></i></a> -->
                <button type="button">Login & Register</button>
            </form>
        </div>
    </div>
</section><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview