Bootstrap snippet and html example. LoginFormsInspiration

Bootstrap 3.3.7 snippet "LoginFormsInspiration" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.

HTML code

Clean, semantic HTML that powers this Bootstrap 3.3.7 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet">

  </head>

  <body>
    
	<div class="container">
		<div class="login login-1">
			<header class="login--header login-1--header text-center">
				<span class="icon icon-medium fa fa-lock"></span>
				<h3>login</h3>
				<span class="arrow-down login--header__arrow"></span>
			</header>
			<form class="login--form">
				<div class="login--form__input-area input-group">
					<span class="input-group-addon"><span class="fa fa-user"></span></span>
					<input type="email" class="form-control" placeholder="email" />
				</div>
				<div class="login--form__input-area input-group">
					<span class="input-group-addon"><span class="fa fa-lock"></span></span>
					<input type="password" class="form-control" placeholder="password" />
				</div>
				<label class="login--form__input-area checkbox-label">
					<input type="checkbox" />
					<span class="checkgraph fa fa-check"></span>
					Remember me?
				</label>
				<button type="button" class="login--form__button btn btn-default" value="submit">sign in</button>
			</form>
			<footer class="login--footer text-center">
				<p class="login--footer__text">Or you can login with one of the following</p>
				<div class="login--footer__social-buttons">
					<a href="#"><span class="icon icon-small icon-fb fa fa-facebook"></span></a>
					<a href="#"><span class="icon icon-small icon-tw fa fa-twitter"></span></a>
					<a href="#"><span class="icon icon-small icon-gp fa fa-google-plus"></span></a>
				</div>
				<p class="login--footer__text">dont have an account? <strong><a href="#">sign up</a></strong></p>
			</footer>
		</div>
		<div class="login login-2">
			<header class="login--header login-2--header text-center">
				<span class="icon icon-medium fa fa-user"></span>
				<h3>Register</h3>
				<span class="arrow-down login--header__arrow"></span>
			</header>
			<form class="login--form">
				<div class="login--form__input-area input-group">
					<span class="input-group-addon"><span class="fa fa-user"></span></span>
					<input type="email" class="form-control" placeholder="email" />
				</div>
				<div class="login--form__input-area input-group">
					<span class="input-group-addon"><span class="fa fa-lock"></span></span>
					<input type="password" class="form-control" placeholder="password" />
				</div>
				<div class="login--form__input-area input-group">
					<span class="input-group-addon"><span class="fa fa-lock"></span></span>
					<input type="password" class="form-control" placeholder="confirm password" />
				</div>
				<div class="login--form__input-area input-group">
					<span class="input-group-addon"><span class="fa fa-envelope-o"></span></span>
					<input type="password" class="form-control" placeholder="E-mail" />
				</div>
				<label class="login--form__input-area checkbox-label">
					<input type="checkbox" />
					<span class="checkgraph fa fa-check"></span>
					Remember me?
				</label>
				<button type="button" class="login--form__button btn btn-default" value="submit">sign up</button>
			</form>
			<footer class="login--footer text-center">
				<p class="login--footer__text">Already have an account? <strong><a href="#">login here</a></strong></p>
			</footer>
		</div>
		<div class="login login-3">
			<header class="login--header login-3--header text-center">
				<span class="icon icon-medium fa fa-key"></span>
				<h3>account settings</h3>
				<span class="arrow-down login--header__arrow"></span>
			</header>
			<form class="login--form">
				<div class="login--form__input-area input-group">
					<span class="input-group-addon"><span class="fa fa-envelope-o"></span></span>
					<input type="password" class="form-control" placeholder="E-mail" />
				</div>
				<button type="button" class="login--form__button btn btn-default" value="submit">sign up</button>
			</form>
		</div>
	</div>
  </body>
</html>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 3.3.7 to keep the design, spacing, and responsiveness consistent.


/*****************globals*************/
body {
  font-family: 'open sans';
  overflow-x: hidden;
  background-color: #00b3a7;
  color: #555; }

img {
  max-width: 100%; }

.login {
  max-width: 400px;
  width: auto;
  margin: 50px auto;
  background-color: #eee;
  font-size: 1.3rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); }
  .login-1--header {
    background-color: #ffc414; }
  .login-1 .arrow-down {
    border-top: 20px solid #ffc414; }
  .login-1 .input-group-addon {
    background-color: #ffc414; }
  .login-1 .btn-default {
    background-color: #ffc414; }
  .login-1 .login--footer__text:first-of-type {
    border-top: 1px dotted #444; }
  .login-2--header {
    background-color: #6d008f; }
  .login-2 .arrow-down {
    border-top: 20px solid #6d008f; }
  .login-2 .btn-default {
    background-color: #6d008f; }
  .login-2 .input-group-addon {
    background-color: #6d008f; }
  .login-3--header {
    background-color: #b33000; }
  .login-3 .arrow-down {
    border-top: 20px solid #b33000; }
  .login-3 .btn-default {
    background-color: #b33000; }
  .login-3 .input-group-addon {
    background-color: #b33000; }
  .login--header {
    padding: .7em 0;
    color: #fff;
    position: relative; }
    .login--header h3 {
      text-transform: UPPERCASE; }
  .login--form {
    padding: 40px 20px; }
    .login--form__input-area {
      width: 100%; }
  .login--footer {
    padding: 0 20px 20px 20px; }
    .login--footer__text:first-of-type {
      padding-top: 10px; }
  .login .btn {
    border: none;
    border-radius: 0;
    display: block;
    width: 100%;
    text-transform: UPPERCASE;
    color: #fff; }

/***********utility************/
.arrow-down {
  z-index: 999;
  border: 20px solid transparent;
  position: absolute;
  margin: 0 auto;
  top: 100%;
  display: block;
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%); }

.form-control {
  height: auto;
  padding: .7em;
  background-color: #ccc; }

input.form-control, span.input-group-addon {
  border-radius: 0;
  border: none; }

span.input-group-addon {
  color: #fff;
  font-size: 1.2em;
  width: 14%; }

span.icon {
  display: inline-block !important; }
  span.icon-small {
    font-size: 1.8em;
    line-height: 1.9em;
    width: 2em;
    text-align: center; }
  span.icon-medium {
    font-size: 2.5em;
    line-height: 1.9em;
    width: 2em;
    text-align: center; }

.login--header .icon {
  border: 2px solid #fff;
  border-radius: 50%; }

.login--form__input-area,
.login--footer__text,
.login--footer__social-buttons {
  margin-bottom: 20px; }

.btn-default {
  padding: 1em; }

span.icon {
  color: #fff; }
  .icon-fb {
    background-color: #0069e0; }
  .icon-tw {
    background-color: #8accff; }
  .icon-gp {
    background-color: #c22a00; }

a {
  color: inherit; }
  a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #444; }

.checkbox-label {
  position: relative;
  padding-left: 30px;
  vertical-align: middle; }

input[type="checkbox"] {
  visibility: hidden; }

.checkgraph {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #ccc;
  left: 0; }

.checkgraph:before {
  max-width: 0px;
  display: block;
  overflow: hidden;
  line-height: 30px;
  text-align: center;
  font-size: 1.7em; }

input:checked ~ .checkgraph:before {
  max-width: 30px;
  -webkit-animation-name: check;
          animation-name: check;
  -webkit-animation-duration: .3s;
          animation-duration: .3s; }

@-webkit-keyframes check {
  0% {
    max-width: 0; }
  100% {
    max-width: 30px; } }

@keyframes check {
  0% {
    max-width: 0; }
  100% {
    max-width: 30px; } }

/*# sourceMappingURL=style.css.map */

Similar snippets

Bootstrap example and template. owl carousel events

owl carousel events

Bootstrap example and template. Simple admin dashboard home

Simple admin dashboard home

Bootstrap example and template. social network dashboard count

social network dashboard count

Bootstrap example and template. box colored

box colored

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. payment credit card form

payment credit card form

Bootstrap example and template. Ecommerce checkout with customer info and order summary

Ecommerce checkout with customer info and order summary

Bootstrap example and template. blog post image widget

blog post image widget

FAQ

How do I use this snippet?

Include Bootstrap 3.3.7, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 3.3.7.

Bootstrap example and template. LoginFormsInspiration

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 1.3K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.7

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.7 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working