Bootstrap snippet and html example. locked screen page

Bootstrap 3.3.4 snippet "locked screen page" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: user,password,screen

HTML code

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

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container bootstrap snippets bootdey">
    <div class="row">
		<div class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-12">
            <div class="panel panel-primary" id="locked-screen">
                <div class="panel-heading">
                    <h3 class="panel-title">     
                  Anderson corbrick
                </h3>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form">
                      <div class="profile-pic text-center">
                                <img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="" class="img-circle img-thumbnail img-user">
                            </div>
                        <div class="form-group">
                            <div class="col-md-12">
                                <input type="password" class="form-control" id="password" placeholder="Password">
                                <i class="fa fa-lock"></i>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-12">
                                <a href="#" class="btn btn-primary btn-block">Unlock</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>    	    
		</div>
	</div>
</div>

CSS code

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

body {
  color: #565656;
  background: #ddd;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 100%;
  padding: 0px;
  margin: 0px;
  min-height: 100%;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#locked-screen{
    margin-top:80px;    
}

.img-user{
    margin:auto;
}

.panel-primary > .panel-heading {
  color: #fff;
  background-color: #39bbdb;
  border-color: #556b8d;
}

.panel > .panel-heading {
  font-weight: 400;
  text-transform: uppercase;
  padding: 14px 10px;
}

.panel {
  border: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
  border-radius: 0;
}

.panel-heading > .panel-title {
  height: auto;
  font-size: 0.813em;
}

.profile-pic {
  margin: 15px 0;
}

.profile-pic img {
  border: 7px solid #e5e6ea;
}

.btn-primary, a.btn-primary:link, a.btn-primary:visited {
  color: #fff;
  background-color: #39bbdb;
  border-radius:0px;
}

#password {
  padding-left: 32px;
}

.form-control {
  border: 2px solid #e8ebed;
  border-radius: 2px;
  box-shadow: none;
  height: 37px;
  padding: 8px 12px 9px 12px;
}

.form-group i {
  position: absolute;
  left: 27px;
  top: 11px;
}

Similar snippets

Bootstrap example and template. User Profile with tabs

User Profile with tabs

Bootstrap example and template. 2FA Security form

2FA Security form

Bootstrap example and template. profile cards widget

profile cards widget

Bootstrap example and template. friend zone user list

friend zone user list

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. top customers list

top customers list

Bootstrap example and template. Whatsapp web chat template

Whatsapp web chat template

Bootstrap example and template. Team member

Team member

FAQ

How do I use this snippet?

Include Bootstrap 3.3.4, 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.4.

Bootstrap example and template. locked screen page

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

Bootstrap 3.3.4

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

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

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