Bootstrap snippet and html example. bs4 signup form

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: signup,form,login,bs4

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 4.1.1 included, to get the result that you can see in the preview selection


<div class="container">
	<form action="#">
		<div class="row justify-content-md-center">
			<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
				<div class="login-screen">
					<div class="login-box">
						<a href="#" class="login-logo">
							<img src="//ssl.gstatic.com/accounts/ui/logo_2x.png" alt="Bootdey bootstrap snippets bootdey">
						</a>
						<div class="row gutters">
							<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
								<div class="form-group">
									<input type="text" class="form-control" placeholder="First Name">
								</div>
							</div>
							<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
								<div class="form-group">
									<input type="text" class="form-control" placeholder="Last Name">
								</div>
							</div>
							<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
								<div class="form-group">
									<input type="email" class="form-control" placeholder="Email ID">
								</div>
							</div>
							<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
								<div class="form-group">
									<input type="password" class="form-control" placeholder="Password">
								</div>
							</div>
						</div>
						<div class="actions clearfix">
							<button type="submit" class="btn btn-primary btn-block">Signup</button>
						</div>
						<div class="or">
							<span>or signup using</span>
						</div>
						<div class="row gutters">
							<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
								<button type="submit" class="btn btn-tw btn-block">Twitter</button>
							</div>
							<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
								<button type="submit" class="btn btn-fb btn-block">Facebook</button>
							</div>
						</div>
						<a href="#" class="additional-link">Have an Account? <span>Login Now</span></a>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>

CSS code

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 4.1.1 included, to get the result that you can see in the preview selection

body{
background:#eee    
}
.login-screen {
    position: relative;
    box-shadow: 0px 30px 50px #c4d2e2;
    background: #ffffff;
    margin: 60px auto;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

.login-screen .login-logo {
    margin: 20px 0 30px 0;
    display: block;
}

.login-screen .login-logo > img {
    margin: 0;
    max-height: 36px;
}

.login-screen .login-box {
    padding: 30px 30px;
}

.login-screen .login-box h5 {
    margin: 0 0 20px 0;
    color: #5a99ee;
    text-align: center;
}

.login-screen .actions {
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

.login-screen .actions a {
    color: #5a99ee;
    text-decoration: none;
    margin-top: 12px;
    display: block;
    font-size: .8rem;
}

.login-screen .actions a:hover {
    text-decoration: underline;
}

.login-screen .actions .btn {
    padding: 8px 25px;
    text-transform: uppercase;
}

.login-screen a.additional-link {
    text-decoration: none;
    margin: 30px auto 0 auto;
    text-align: center;
    display: block;
}

.login-screen a.additional-link span {
    text-decoration: underline;
    color: #5a99ee;
}

.login-screen p.info {
    padding: 0;
    margin: 0 0 20px 0;
    line-height: 150%;
    color: #8796af;
    text-align: center;
}

/*************** 13 B. OR | Line between two blocks ***************/
.or {
  position: relative;
  text-align: center;
  margin-bottom: 20px; }
  .or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 70%;
    height: 1px;
    background-color: #e6ecf3; }
  .or span {
    position: relative;
    background-color: #ffffff;
    padding: 0 10px;
    z-index: 10; }
    
    /*************** 17 C. Buttons ***************/
.btn {
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  border: 0;
  padding: .375rem 1rem; }
  .btn .icon {
    font-size: 1.4rem;
    vertical-align: middle;
    margin-top: -4px;
    display: inline-block; }
  .btn.focus, .btn:focus {
    color: #ffffff; }

.btn-sm {
  padding: .25rem .75rem; }
  .btn-sm .icon {
    font-size: 1rem;
    vertical-align: middle;
    margin-top: -2px;
    display: inline-block; }

.btn-rounded {
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  border-radius: 50px; }

.btn-primary {
  background: #5a99ee;
  color: #ffffff; }
  .btn-primary:hover {
    background: #438bec;
    color: #ffffff; }
  .btn-primary:focus {
    box-shadow: 0 0 0 3px #fcfdff; }

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background: #5a99ee; }

.btn-primary.disabled, .btn-primary:disabled {
  background: #5a99ee; }

.btn-secondary {
  background: #647996;
  color: #ffffff; }
  .btn-secondary:hover {
    background: #5a6d87;
    color: #ffffff; }
  .btn-secondary:focus {
    box-shadow: 0 0 0 3px #a3b0c2; }

.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active,
.show > .btn-secondary.dropdown-toggle {
  background: #647996; }

.btn-secondary.disabled, .btn-secondary:disabled {
  background: #647996; }

.btn-success {
  background: #3ecfac; }
  .btn-success:hover {
    background: #30c3a0; }
  .btn-success:focus {
    box-shadow: 0 0 0 3px #c5f1e6; }

.btn-success:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.show > .btn-success.dropdown-toggle {
  background: #3ecfac; }

.btn-success.disabled, .btn-success:disabled {
  background: #3ecfac; }

.btn-danger {
  background: #fc6d4c; }
  .btn-danger:hover {
    background: #fc5933; }
  .btn-danger:focus {
    box-shadow: 0 0 0 3px #fec7ba; }

.btn-danger:not(:disabled):not(.disabled).active,
.btn-danger:not(:disabled):not(.disabled):active,
.show > .btn-danger.dropdown-toggle {
  background: #fc6d4c; }

.btn-danger.disabled, .btn-danger:disabled {
  background: #fc6d4c; }

.btn-warning {
  background: #ffc139;
  color: #000000; }
  .btn-warning:hover {
    background: #ffb920;
    color: #000000; }
  .btn-warning:focus {
    box-shadow: 0 0 0 3px #fff1d2;
    color: #000000; }

.btn-warning:not(:disabled):not(.disabled).active,
.btn-warning:not(:disabled):not(.disabled):active,
.show > .btn-warning.dropdown-toggle {
  background: #ffc139; }

.btn-warning.disabled, .btn-warning:disabled {
  background: #ffc139; }

.btn-info {
  background: #5a99ee; }
  .btn-info:hover {
    background: #438bec; }
  .btn-info:focus {
    box-shadow: 0 0 0 3px #fcfdff; }

.btn-info:not(:disabled):not(.disabled).active,
.btn-info:not(:disabled):not(.disabled):active,
.show > .btn-info.dropdown-toggle {
  background: #5a99ee; }

.btn-info.disabled, .btn-info:disabled {
  background: #5a99ee; }

.btn-white {
  background: #ffffff;
  color: #000000;
  border: 1px solid #e1e5f1; }
  .btn-white:hover {
    background: #f2f2f2;
    color: #1a1a1a; }
  .btn-white:focus {
    box-shadow: 0 0 0 3px #f2f2f2;
    color: #1a1a1a; }

.btn-white:not(:disabled):not(.disabled).active,
.btn-white:not(:disabled):not(.disabled):active,
.show > .btn-light.dropdown-toggle {
  background: #ffffff; }

.btn-white.disabled, .btn-white:disabled {
  background: #ffffff; }

.btn-light {
  background: #e4ebf2; }
  .btn-light:hover {
    background: #d3deea; }
  .btn-light:focus {
    box-shadow: 0 0 0 3px #f5f8fa; }

.btn-light:not(:disabled):not(.disabled).active,
.btn-light:not(:disabled):not(.disabled):active,
.show > .btn-light.dropdown-toggle {
  background: #e4ebf2; }

.btn-light.disabled, .btn-light:disabled {
  background: #e4ebf2; }

.btn-dark {
  background: #28394d;
  color: #ffffff; }
  .btn-dark:hover {
    background: #31455e;
    color: #ffffff; }
  .btn-dark:focus {
    box-shadow: 0 0 0 3px #39526f; }

.btn-dark:not(:disabled):not(.disabled).active,
.btn-dark:not(:disabled):not(.disabled):active,
.show > .btn-dark.dropdown-toggle {
  background: #6184ad; }

.btn-dark.disabled, .btn-dark:disabled {
  background: #28394d; }

.btn-lighter {
  background: #e6ecf3;
  color: #000000;
  border: 1px solid #e1e5f1; }
  .btn-lighter:hover {
    color: #1a1a1a;
    background: #dce4ee; }
  .btn-lighter:focus {
    box-shadow: 0 0 0 3px white;
    color: #1a1a1a; }

.btn-lighter:not(:disabled):not(.disabled).active,
.btn-lighter:not(:disabled):not(.disabled):active,
.show > .btn-light.dropdown-toggle {
  background: #e6ecf3; }

.btn-lighter.disabled, .btn-lighter:disabled {
  background: #e6ecf3; }

.btn-fb {
  background: #3B5998;
  color: #ffffff; }
  .btn-fb:hover {
    background: #344e86;
    color: #ffffff; }
  .btn-fb:focus {
    box-shadow: 0 0 0 3px #4c70ba; }

.btn-fb:not(:disabled):not(.disabled).active,
.btn-fb:not(:disabled):not(.disabled):active,
.show > .btn-fb.dropdown-toggle {
  background: #3B5998; }

.btn-facebook.disabled, .btn-facebook:disabled {
  background: #3B5998; }

.btn-tw {
  background: #55ACEE;
  color: #ffffff; }
  .btn-tw:hover {
    background: #3ea1ec;
    color: #ffffff; }
  .btn-tw:focus {
    box-shadow: 0 0 0 3px #2795e9; }

.btn-tw:not(:disabled):not(.disabled).active,
.btn-tw:not(:disabled):not(.disabled):active,
.show > .btn-tw.dropdown-toggle {
  background: #55ACEE; }

.btn-twitter.disabled, .btn-twitter:disabled {
  background: #55ACEE; }

.btn-orange {
  background: #ff5000;
  color: #ffffff; }
  .btn-orange:hover {
    background: #e64800;
    color: #ffffff; }
  .btn-orange:focus {
    box-shadow: 0 0 0 3px #ffb999;
    color: #ffffff; }

.btn-orange:not(:disabled):not(.disabled).active,
.btn-orange:not(:disabled):not(.disabled):active,
.show > .btn-orange.dropdown-toggle {
  background: #ff5000; }

.btn-orange.disabled, .btn-orange:disabled {
  background: #ff5000; }

.btn-link {
  color: #5a99ee; }
  .btn-link:hover {
    text-decoration: none; }

/*************** 17 D. Outline Buttons ***************/
.btn-outline-primary {
  border: 1px solid #5a99ee; }
  .btn-outline-primary:hover {
    background: #5a99ee; }

.btn-outline-secondary {
  border: 1px solid #647996; }
  .btn-outline-secondary:hover {
    background: #647996; }

.btn-outline-success {
  border: 1px solid #3ecfac; }
  .btn-outline-success:hover {
    background: #3ecfac; }

.btn-outline-danger {
  border: 1px solid #fc6d4c; }
  .btn-outline-danger:hover {
    background: #fc6d4c; }

.btn-outline-warning {
  border: 1px solid #ffc139; }
  .btn-outline-warning:hover {
    background: #ffc139; }

.btn-outline-info {
  border: 1px solid #5a99ee;
  color: #5a99ee; }
  .btn-outline-info:hover {
    background: #5a99ee; }

.btn-outline-light {
  border: 1px solid #e4ebf2;
  color: #8796af; }
  .btn-outline-light:hover {
    background: #e4ebf2;
    border: 1px solid #ccd9e6; }

.btn-outline-dark {
  border: 1px solid #28394d; }
  .btn-outline-dark:hover {
    background-color: #1f2d3c;
    /* Fallback Color */
    background-image: -webkit-gradient(linear, left top, left bottom, from(#28394d), to(#1f2d3c));
    /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(top, #28394d, #1f2d3c);
    /* Chrome 10+, Saf5.1+, iOS 5+ */
    background-image: -moz-linear-gradient(top, #28394d, #1f2d3c);
    /* FF3.6 */
    background-image: -ms-linear-gradient(top, #28394d, #1f2d3c);
    /* IE10 */
    background-image: -o-linear-gradient(top, #28394d, #1f2d3c);
    /* Opera 11.10+ */
    background-image: linear-gradient(top, #28394d, #1f2d3c); }

.btn-outline-orange {
  border: 1px solid #ff5000;
  color: #ff5000; }
  .btn-outline-orange:hover {
    background-color: #e64800;
    /* Fallback Color */
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ff5000), to(#e64800));
    /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(top, #ff5000, #e64800);
    /* Chrome 10+, Saf5.1+, iOS 5+ */
    background-image: -moz-linear-gradient(top, #ff5000, #e64800);
    /* FF3.6 */
    background-image: -ms-linear-gradient(top, #ff5000, #e64800);
    /* IE10 */
    background-image: -o-linear-gradient(top, #ff5000, #e64800);
    /* Opera 11.10+ */
    background-image: linear-gradient(top, #ff5000, #e64800);
    color: #ffffff; }

.btn-bdr-white {
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  padding: .5rem 1.5rem; }
  .btn-bdr-white:hover {
    opacity: 0.9;
    color: #ffffff; }
  .btn-bdr-white:focus {
    box-shadow: 0 0 0 3px white; }

.btn.disabled,
.btn:disabled {
  pointer-events: none; }

Similar snippets

Bootstrap example and template. Dark Login

Dark Login

Bootstrap example and template. User profile porlet with tabs

User profile porlet with tabs

Bootstrap example and template. payment credit card form

payment credit card form

Bootstrap example and template. social network profile head

social network profile head

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. Messages Board

Messages Board

Bootstrap example and template. latest news widget

latest news widget

Bootstrap example and template. calendar schedule table

calendar schedule table

Bootstrap example and template. bs4 signup form

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 9.5K views, Using this bootstrap snippet you have the following benefits:

Bootstrap 4.1.1

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

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