Bootstrap snippet and html example. Locked Screen

Bootstrap 3.3.1 snippet "Locked Screen" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: 2fa-authentification,2fa,locked

HTML code

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

                        
<div class="container bootstrap snippets bootdey">
    	<div class="row">
			<div class="col-sm-8 col-md-5 col-md-offset-4">
				<div class="panel panel-success panel-circle">
					<div class="panel-body">
						<form role="form" action="#" method="POST">
							<fieldset>
                                <div class="row text-center">
                                    <p class="bg-success title">Daniel snathanson</p>
                                    <br/>
                                </div> 
								<div class="row">
									<div class="center-block">
										<img class="profile-img img-thumbnail" src="https://bootdey.com/img/Content/User_for_snippets.png" alt="">
									</div>
								</div>
								<div class="row">
									<div class="col-sm-12 col-md-10  col-md-offset-1 ">
										<div class="form-group">
											<div class="input-group text-center">
											    <small>
    										        Lorem Ipsum is simply dummy text of the printing and typesetting industry printing. 
                                                    Donec non dignissim eros
											    </small>
											</div>
										</div>
										<div class="form-group">
											<div class="input-group">
												<span class="input-group-addon">
													<i class="glyphicon glyphicon-lock"></i>
												</span>
												<input class="form-control" placeholder="Password" name="password" type="password" value="" autofocus>
											</div>
										</div>
										<div class="form-group">
                                            <button type="submit" class="btn btn-lg btn-success btn-block">
                                                <i class="glyphicon glyphicon-share-alt"></i>
                                                Continue   
                                            </button>  
										</div>
									</div>
								</div>
							</fieldset>
						</form>
					</div>
                </div>
			</div>
		</div>
	</div>                    

CSS code

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

                        
.title{
 width:80%;
 font-size:18px;
 margin:auto;
}

.panel-circle{
    -moz-border-radius: 20%;
    -webkit-border-radius: 20%;
    border-radius: 20%;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.08);
}

.panel-heading {
    padding: 5px 15px;
}

.panel-footer {
    padding: 1px 15px;
	color: #A0A0A0;
}

.profile-img {
	width: 96px;
	height: 96px;
	margin: 0 auto 10px;
	display: block;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}                    

Similar snippets

Bootstrap example and template. 2 step verification form inside a card

2 step verification form inside a card

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. login with overlay image

login with overlay image

Bootstrap example and template. cards with numbers

cards with numbers

Bootstrap example and template. Image Columns Bootstrap

Image Columns Bootstrap

FAQ

How do I use this snippet?

Include Bootstrap 3.3.1, 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.1.

Bootstrap example and template. Locked Screen

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

Bootstrap 3.3.1

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

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

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