Bootstrap snippet and html example. Login and register form

Bootstrap 3.3.6 snippet "Login and register form" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: form,login,register,input

HTML code

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

<div class="col-sm-10 col-sm-push-1 col-md-6 col-md-push-3 col-lg-6 col-lg-push-3">
  <h2 class="text-primary center m-a-2">
     <span class="icon-text">Admin Plus</span>
  </h2>
  <div class="card-group">
    <div class="card bg-transparent">
      <div class="card-block">
        <div class="center">
          <h4 class="m-b-0"><span class="icon-text">Login</span></h4>
          <p class="text-muted">Access your account</p>
        </div>
        <form action="index.html" method="get">
          <div class="form-group">
            <input type="email" class="form-control" placeholder="Email Address">
          </div>
          <div class="form-group">
            <input type="password" class="form-control" placeholder="Password">
            <a href="#" class="pull-xs-right">
              <small>Forgot?</small>
            </a>
            <div class="clearfix"></div>
          </div>
          <div class="center">
            <button type="submit" class="btn  btn-primary-outline btn-circle-large">
              <i class="material-icons">lock</i>
            </button>
          </div>
        </form>
      </div>
    </div>
    <div class="card">
      <div class="card-block center">
        <h4 class="m-b-0">
          <i class="material-icons">person_add</i> <span class="icon-text">Sign Up</span>
        </h4>
        <p class="text-muted">Create a new account</p>
        <form action="index.html" method="get">
          <div class="form-group">
            <input type="text" class="form-control" placeholder="Full Name">
          </div>
          <div class="form-group">
            <input type="email" class="form-control" placeholder="Email">
          </div>
          <div class="form-group">
            <input type="password" class="form-control" placeholder="Password">
          </div>
          <div class="form-group">
            <input type="password" class="form-control" placeholder="Confirm Password">
          </div>
          <button type="submit" class="btn btn-primary btn-rounded">Register</button>
        </form>
      </div>
    </div>
  </div>
</div>

CSS code

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

body{margin-top:20px;}

.card {
    position: relative;
    background-color: #fff;
    border: 1px solid #fbe7e7;
    border-radius: 3px;
}

.card, .list-group {
    margin-bottom: 1.25rem;
}

.card {
    box-shadow: 0 2px 3px rgba(0,0,0,.05);
}

@media (min-width: 544px) {
.card-group .card {
    display: table-cell;
    vertical-align: top;
}
}

@media (min-width: 544px) {
.card-group .card+.card {
    margin-left: 0;
    border-left: 0;
}
}

@media (min-width: 544px) {
.card-group .card:last-child {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}
}

.card-group {
    margin-bottom: 1.25rem;
}

@media (min-width: 544px){
.card-group {
    display: table;
    width: 100%;
    table-layout: fixed;
}
}

@media (min-width: 544px) {
.card-group .card:first-child {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
}

.card>.card-block>:last-child, .card>:last-child {
    margin-bottom: 0!important;
}

.card-block {
    padding: 1.25rem;
}

.center {
    text-align: center;
}
.m-a-2 {
    margin: 1.5rem!important;
}
.text-primary {
    color: #EF5350!important;
}

Similar snippets

Bootstrap example and template. jquery2dotnet Google Style Login

jquery2dotnet Google Style Login

Bootstrap example and template. login box

login box

Bootstrap example and template. Login form with css3 animation

Login form with css3 animation

Bootstrap example and template. Get in Touch form

Get in Touch form

Bootstrap example and template. Bootstrap Colored Panel Pricing Table

Bootstrap Colored Panel Pricing Table

Bootstrap example and template. Bootstrap 3 Toggle Switch buttons

Bootstrap 3 Toggle Switch buttons

Bootstrap example and template. subscription form

subscription form

Bootstrap example and template. product catalog

product catalog

FAQ

How do I use this snippet?

Include Bootstrap 3.3.6, 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.6.

Bootstrap example and template. Login and register form

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.6K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.6

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

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

This code example is based on bootstrap 3.3.6 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