content logo

Bootstrap Forms:

Bootstrap 5.1.3 Login Form

We have prepared a functional bootstrap in this post with a beautiful design. This code is so functional and you can use it on all kinds of websites. The Bootstrap 5.1.3 Login Form is presented in this post with a different theme. If you have a website and want to allow your audiences to enter all areas of your website, you can use this Bootstrap Login Form Code. When people enter your website with this field, they are allowed to use all elements and services of your website. Using this ready-made HTML Login Form eases your job.

As the following preview represents, this Pure CSS Login Form has a purple theme. So, you can use this code if you have a purple and colorful page. The title is placed at the top of the page with a blue color on a purple background. There is a purple field in the middle of the page with a person icon. This is designed for the login admin. This Purple Login Code includes two sections for username and password. These sections have white backgrounds. The “Enter” button is placed at the bottom of the page in a field with a blue text.

#

Bootstrap Login Form Code

#

Purple Login Code

#

HTML Login Form

#

Pure CSS Login Form

<!-- This script got from frontendfreecode.com -->
<header class="head-ubuntu">
    <div class="d-flex justify-content-center">
    Title
    </div>
</header>
<main class="main container">
    <!-- Logo -->
    <div class="d-flex flex-column my-2">
    <div class="d-flex justify-content-center">
        <div class="bg-shinobu text-center rounded-pill">
        <div class="d-flex-column">
            <i class="p-2 flex-fill bi bi-person-circle display-4"></i>
            <h2 class="p-2 flex-fill text-ubuntu">Login Admin</h2>
        </div>    
        </div> 
        </div>
    <!-- Logo -->
    <!-- Formulario -->
    <div class="d-flex justify-content-center mt-2">
        <div class="d-flex justify-content-center">
        <div class="bg-shinobu rounded">
            <div class="container">
            <form action="" class="form-horizontal text-ubuntu">
                <div class="form-group row py-2">
                <label for="admin" class="col-12 col-sm-4">User Name: </label>
                <div class="col-12 col-sm-8">
                    <input type="text" class="form-control" id="nombre" placeholder="User name">
                </div>
                </div>
                <div class="form-group row">
                <label for="contraseña" class="col-12 col-sm-4 mb-4">Password: </label>
                <div class="col-12 col-sm-8">
                    <input type="password" class="form-control" id="contraseña" placeholder="Password">
                </div>
                </div>
                <button type="submit" class="mi-btn btn-shinobu">Enter</button>
            </form>
            </div>
        </div>
        </div>
    </div>
    <!-- Formulario -->
    </div>
</main><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
header {
	background: #5D5373;
	width: 100%;
	height: auto;
	margin: 0px;
}
.head-ubuntu {
	font-family: 'Ubuntu', sans-serif;
	font-size: 40px;
	letter-spacing: 2px;
	color: #5EF2E3;
	text-shadow: 0px 0px 0px black, 1px 1px 0px black, 2px 2px 0px black;
	transition: all 500ms;
	line-height: 90px;
}
.bg-shinobu {
	background: #A191D9;
}
.text-ubuntu {
	font-family: "Ubuntu", sans-serif;
}
.mi-btn {
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
	font-family: "Ubuntu", sans-serif;
	padding: 0.5em;
	border-radius: 0.5em;
	border: 1px solid #156785;
	cursor: pointer;
}
.btn-shinobu {
	background: #5D5373;
	color: #5EF2E3;
}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
<style>
header {
	background: #5D5373;
	width: 100%;
	height: auto;
	margin: 0px;
}
.head-ubuntu {
	font-family: 'Ubuntu', sans-serif;
	font-size: 40px;
	letter-spacing: 2px;
	color: #5EF2E3;
	text-shadow: 0px 0px 0px black, 1px 1px 0px black, 2px 2px 0px black;
	transition: all 500ms;
	line-height: 90px;
}
.bg-shinobu {
	background: #A191D9;
}
.text-ubuntu {
	font-family: "Ubuntu", sans-serif;
}
.mi-btn {
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
	font-family: "Ubuntu", sans-serif;
	padding: 0.5em;
	border-radius: 0.5em;
	border: 1px solid #156785;
	cursor: pointer;
}
.btn-shinobu {
	background: #5D5373;
	color: #5EF2E3;
}
</style>

</head>
<body>
<header class="head-ubuntu">
    <div class="d-flex justify-content-center">
    Title
    </div>
</header>
<main class="main container">
    <!-- Logo -->
    <div class="d-flex flex-column my-2">
    <div class="d-flex justify-content-center">
        <div class="bg-shinobu text-center rounded-pill">
        <div class="d-flex-column">
            <i class="p-2 flex-fill bi bi-person-circle display-4"></i>
            <h2 class="p-2 flex-fill text-ubuntu">Login Admin</h2>
        </div>    
        </div> 
        </div>
    <!-- Logo -->
    <!-- Formulario -->
    <div class="d-flex justify-content-center mt-2">
        <div class="d-flex justify-content-center">
        <div class="bg-shinobu rounded">
            <div class="container">
            <form action="" class="form-horizontal text-ubuntu">
                <div class="form-group row py-2">
                <label for="admin" class="col-12 col-sm-4">User Name: </label>
                <div class="col-12 col-sm-8">
                    <input type="text" class="form-control" id="nombre" placeholder="User name">
                </div>
                </div>
                <div class="form-group row">
                <label for="contraseña" class="col-12 col-sm-4 mb-4">Password: </label>
                <div class="col-12 col-sm-8">
                    <input type="password" class="form-control" id="contraseña" placeholder="Password">
                </div>
                </div>
                <button type="submit" class="mi-btn btn-shinobu">Enter</button>
            </form>
            </div>
        </div>
        </div>
    </div>
    <!-- Formulario -->
    </div>
</main><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview