Signup form block for user registration on websites and landing pages.

Dependencies

  • Bootstrap 4
  • FontAwesome
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>FWR Bootstrap Blocks - Signup 2</title>

    <!-- Styles -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
    
    <!-- Custom style -->
    <link rel="stylesheet" href="style.css">
    
</head>
<body>

    <div class="signup-2 d-xl-flex py-md-4 py-xl-5">
        <div class="signup-bg"></div>
        <div class="container">
            <div class="row">
                <div class="col-md-6 py-4 py-md-5">

                    <h1 class="signup-title">Sign Up to discover<br>FWR blocks</h1>
                    <div class="signup-form mt-4">

                        <div class="form-group">
                            <label for="fullname" class="form-label">Name</label>
                            <input type="text" class="form-control" id="fullname" required>
                        </div>

                        <div class="form-group">
                            <label for="email" class="form-label">Email</label>
                            <input type="email" class="form-control" id="email" required>
                        </div>

                        <div class="form-group">
                            <label for="password">Password</label>
                            <input type="password" class="form-control" id="password" required>
                        </div>

                        <div class="custom-control custom-checkbox">
                            <input type="checkbox" class="custom-control-input" id="agree">
                            <label class="custom-control-label" for="agree">By signing up, you agree to Our Terms and Privacy Policy</label>
                        </div>

                        <div class="mt-4 mt-md-5">
                            <button type="submit" class="btn btn-lg btn-primary px-md-4 px-xl-5">Create an Account</button>
                        </div>

                    </div>

                </div>
            </div>
        </div>
    </div>
    <!-- /.signup-2 -->

    <!-- Scripts -->
    <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>
// Bootstrap variables and mixins
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
$grid-breakpoints: map-merge($grid-breakpoints, (xxl: 1440px));
$container-max-widths: map-merge($container-max-widths, (xxl: 1400px));
@import "~bootstrap/scss/mixins";

// Variables
$primary:   #5863f8;
$custom-control-indicator-focus-box-shadow: 0 0 0 1px $body-bg, 0 0 0 .2rem rgba($primary, .25);

// Custom CSS
.signup-title {
  font-size: 1.5rem;
}

.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: $gray-600;
  text-transform: uppercase;
}

.form-control {
  &:focus {
    border-color: rgba($primary, .5);
    box-shadow: 0 0 0 .2rem rgba($primary, .15);
  }
}

.custom-control {
  min-height: 2rem;
  padding-left: 2rem;
}

.custom-checkbox {
  .custom-control-label::before {
    border-radius: 0;
  }

  .custom-control-input {
    &:checked ~ .custom-control-label {
      &::before {
        @include gradient-bg($primary);
        box-shadow: $custom-control-indicator-focus-box-shadow;
      }
    }
  }
}

.custom-control-input {

  &:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width rgba($primary, .25);
  }
}

.custom-control-label {
  padding-top: 6px;
  padding-left: 6px;

  &::before,
  &::after {
    top: .5rem;
    width: 1.5rem;
    height: 1.5rem;
  }
}

.btn {
  border-radius: 1.25rem;
}

.btn-sm {
  border-radius: 1rem;
}

.btn-lg {
  border-radius: 1.5rem;
}

.btn-primary {
  @include button-variant($primary, $primary);
}


@include media-breakpoint-up(md) {

  .signup-2 {
    position: relative;
  }

  .signup-form {
    margin-top: 30px !important;
  }

  .signup-bg {
    background: url('https://assets.free-website-resources.com/img/signup-bg.jpg') no-repeat center center / cover;
    position: absolute;
    right: 0;
    top: 0;
    width: calc(50vw - 24px);
    height: 100%;
  }

  .signup-title {
    font-size: 2rem;
  }

}


@include media-breakpoint-up(xl) {

  .signup-2 {
    //min-height: 100vh;
  }

  .signup-bg {
    width: calc(50vw - 60px);
  }

}


@include media-breakpoint-up(xxl) {

  .signup-bg {
    width: calc(50vw - 100px);
  }

}
.signup-title {
  font-size: 1.5rem;
}

.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
}

.form-control:focus {
  border-color: rgba(88, 99, 248, 0.5);
  -webkit-box-shadow: 0 0 0 0.2rem rgba(88, 99, 248, 0.15);
          box-shadow: 0 0 0 0.2rem rgba(88, 99, 248, 0.15);
}

.custom-control {
  min-height: 2rem;
  padding-left: 2rem;
}

.custom-checkbox .custom-control-label::before {
  border-radius: 0;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #5863f8;
  -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(88, 99, 248, 0.25);
          box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(88, 99, 248, 0.25);
}

.custom-control-input:focus ~ .custom-control-label::before {
  -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(88, 99, 248, 0.25);
          box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(88, 99, 248, 0.25);
}

.custom-control-label {
  padding-top: 6px;
  padding-left: 6px;
}

.custom-control-label::before, .custom-control-label::after {
  top: .5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.btn {
  border-radius: 1.25rem;
}

.btn-sm {
  border-radius: 1rem;
}

.btn-lg {
  border-radius: 1.5rem;
}

.btn-primary {
  color: #fff;
  background-color: #5863f8;
  border-color: #5863f8;
}

.btn-primary:hover {
  color: #fff;
  background-color: #3341f6;
  border-color: #2735f6;
}

.btn-primary:focus, .btn-primary.focus {
  -webkit-box-shadow: 0 0 0 0.2rem rgba(88, 99, 248, 0.5);
          box-shadow: 0 0 0 0.2rem rgba(88, 99, 248, 0.5);
}

.btn-primary.disabled, .btn-primary:disabled {
  color: #fff;
  background-color: #5863f8;
  border-color: #5863f8;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #2735f6;
  border-color: #1b2af5;
}

.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  -webkit-box-shadow: 0 0 0 0.2rem rgba(88, 99, 248, 0.5);
          box-shadow: 0 0 0 0.2rem rgba(88, 99, 248, 0.5);
}

@media (min-width: 768px) {
  .signup-2 {
    position: relative;
  }
  .signup-form {
    margin-top: 30px !important;
  }
  .signup-bg {
    background: url("https://assets.free-website-resources.com/img/signup-bg.jpg") no-repeat center center/cover;
    position: absolute;
    right: 0;
    top: 0;
    width: calc(50vw - 24px);
    height: 100%;
  }
  .signup-title {
    font-size: 2rem;
  }
}

@media (min-width: 1200px) {
  .signup-bg {
    width: calc(50vw - 60px);
  }
}

@media (min-width: 1440px) {
  .signup-bg {
    width: calc(50vw - 100px);
  }
}
aHR0cHM6Ly9mcmVlLXdlYnNpdGUtcmVzb3VyY2VzLmNvbS9ibG9ja3MvYm9vdHN0cmFwL2Zvcm0vc2lnbnVwLWZvcm0tMg==