content logo

Bootstrap Forms:

Minimal Login Screen with Bootstrap 5

If you move to websites, you may have seen the login form while entering. This post explains a code with the same performance. In this post, we are going to explain to you a functional code with a different design. This is the Minimal Login Screen with Bootstrap 5 and you can apply it on your website. Most website admins tend to use this Bootstrap 5 Login Form to gain more followers. By using this Pure CSS Login Form, you can gain the necessary information from your users. So, look at the preview of this code and use it on your website.

As you see, this Login Web Form Code has a white and yellow theme and you can use it on your light page. There is an icon with the shape of home at the top of the page with a yellow color. You can see two fields in the middle of the page for the email address and its password. These fields in the Login Form with Image have borders. If you want to save the password, select the “Remember me” option. If you have forgotten it, click on the “Forget Password”. Then, you should select the login button with a dark background and white text in the Bootstrap 5 Login Screen.

#

Bootstrap 5 Login Form

#

Login Form with Image

#

Pure CSS Login Form

#

Login Web Form Code

#

Bootstrap 5 Login Screen

<!-- This script got from frontendfreecode.com -->
<section class="row mx-0 min-vh-100">
    <div class="col-md-6 col-lg-7 d-none d-md-block position-relative" style=" background: url(http://frontendfreecode.com/img/home.jpg) no-repeat center/cover;">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"
                class="position-absolute top-0 end-0 h-100">
            <polygon fill="#fff" points="80,0 100,0 100,100"></polygon>
        </svg>
    </div>
    <div class="col-md-6 col-lg-5 d-flex align-items-center px-md-4 px-lg-5">
        <div class="w-100">
            <h4>
                <svg xmlns="http://www.w3.org/2000/svg" class="bg-warning rounded-circle p-1 shadow-sm" fill="none" viewBox="0 0 24 24" stroke="currentColor" style="width:2rem; height:2rem">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
                </svg>
                Welcome Back
            </h4>
            <div class="border-bottom border-2 border-dark mb-4" style="width:13rem;"></div>
            <form action="">
                <div class="mb-3">
                    <label for="" class="form-label">Email Address</label>
                    <input type="text" name="email" class="form-control" required>
                </div>
                <div class="mb-3">
                    <label for="" class="form-label">Password</label>
                    <input type="password" name="password" class="form-control" required>
                </div>
                <div class="d-flex justify-content-between mb-3 small">
                    <div class="form-check">
                        <input class="form-check-input" type="checkbox" value="" id="remember-me">
                        <label class="form-check-label" for="remember-me">
                            Remember me
                        </label>
                    </div>

                    <a href="#" class="text-decoration-none text-muted">Forget Password</a>
                </div>
                <button type="submit" class="btn btn-dark w-100 shadow-sm">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" style="width:1.2rem; height:1.2rem">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1" />
                    </svg>
                    Login
                </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=Karla&display=swap');
:root {
	--bs-font-sans-serif: 'Karla', sans-serif;
}
.form-control:focus {
	box-shadow: none;
	border-color: #000;
}
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css'>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css'>
<style>
@import url('https://fonts.googleapis.com/css2?family=Karla&display=swap');
:root {
	--bs-font-sans-serif: 'Karla', sans-serif;
}
.form-control:focus {
	box-shadow: none;
	border-color: #000;
}
</style>

</head>
<body>
<section class="row mx-0 min-vh-100">
    <div class="col-md-6 col-lg-7 d-none d-md-block position-relative" style=" background: url(http://frontendfreecode.com/img/home.jpg) no-repeat center/cover;">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"
                class="position-absolute top-0 end-0 h-100">
            <polygon fill="#fff" points="80,0 100,0 100,100"></polygon>
        </svg>
    </div>
    <div class="col-md-6 col-lg-5 d-flex align-items-center px-md-4 px-lg-5">
        <div class="w-100">
            <h4>
                <svg xmlns="http://www.w3.org/2000/svg" class="bg-warning rounded-circle p-1 shadow-sm" fill="none" viewBox="0 0 24 24" stroke="currentColor" style="width:2rem; height:2rem">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
                </svg>
                Welcome Back
            </h4>
            <div class="border-bottom border-2 border-dark mb-4" style="width:13rem;"></div>
            <form action="">
                <div class="mb-3">
                    <label for="" class="form-label">Email Address</label>
                    <input type="text" name="email" class="form-control" required>
                </div>
                <div class="mb-3">
                    <label for="" class="form-label">Password</label>
                    <input type="password" name="password" class="form-control" required>
                </div>
                <div class="d-flex justify-content-between mb-3 small">
                    <div class="form-check">
                        <input class="form-check-input" type="checkbox" value="" id="remember-me">
                        <label class="form-check-label" for="remember-me">
                            Remember me
                        </label>
                    </div>

                    <a href="#" class="text-decoration-none text-muted">Forget Password</a>
                </div>
                <button type="submit" class="btn btn-dark w-100 shadow-sm">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" style="width:1.2rem; height:1.2rem">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1" />
                    </svg>
                    Login
                </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