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 1</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">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1" crossorigin="anonymous">

    <!-- Custom style -->
    <link rel="stylesheet" href="style.css">
    
</head>
<body>

    <div class="signup-1 d-flex align-items-center">

        <div class="container">
            <div class="row">
                <div class="col-sm-10 col-md-8 col-lg-6 col-xl-5 mx-auto">

                    <div class="box bg-white p-4 px-md-5 pt-md-5">
                        <h1 class="h2 text-center font-weight-normal">Create Your Account</h1>
                        <div class="signup-form mt-4 mt-md-5">
                            <div class="input-group mb-3">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">
                                        <span class="far fa-user"></span>
                                    </span>
                                </div>
                                <input type="text" class="form-control" placeholder="Username">
                            </div>
                            <div class="input-group mb-3">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">
                                        <span class="far fa-envelope"></span>
                                    </span>
                                </div>
                                <input type="email" class="form-control" placeholder="E-mail">
                            </div>
                            <div class="input-group mb-3">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">
                                        <span class="fas fa-asterisk"></span>
                                    </span>
                                </div>
                                <input type="password" class="form-control" placeholder="Password">
                            </div>

                            <p class="small text-center mt-4">By signing up, you agree to our <a href="#">Terms</a> and <a href="#">Privacy Policy</a></p>

                            <div class="text-center mt-4 mt-md-5">
                                <button class="btn btn-lg btn-primary px-md-4 btn-signup">Sign Up<span class="far fa-paper-plane ml-2"></span></button>
                            </div>

                        </div>
                        <div class="border-top mt-4 mt-md-5 pt-3">
                            <p class="text-muted text-center mb-0">Already have an account, <a href="#">Sign In</a></p>
                        </div>
                    </div>

                </div>
            </div>
        </div>

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

    <!-- 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";
@import "~bootstrap/scss/mixins";

// Variables
$primary:   #5863f8;

// Custom CSS
.signup-1 {
  background: url('https://assets.free-website-resources.com/img/pexels-photo-85745.jpeg') no-repeat center center / cover;
  height: 100vh;
  position: relative;

  &:before {
    content: '';
    background-color: rgba($black, .5);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
  }

  a {
    color: $primary;

    @include hover {
      color: darken($primary, 15%);
    }
  }
}

.box {
  border-radius: 2rem;
  border-top: 10px solid $primary;
}

.signup-form {

  .input-group-text {
    background-color: $white;
    border: 2px solid $gray-300;
    border-right: none;
    color: $gray-500;
    padding: 10px 9px 10px 12px;
    width: 40px;
  }

  .input-group {
    .form-control {
      border: 2px solid $gray-300;
      border-left: none;
      padding: 10px 12px 10px 6px;

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

  .far {
    font-size: 1rem;
  }

  .fas {
    font-size: .875rem;
  }
}

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

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

.btn-signup {
  .far {
    font-size: 1.25rem;
  }
}


@include media-breakpoint-down(sm) {

  .h2 {
    font-size: 1.5rem;
  }

}
.signup-1 {
  background: url("https://assets.free-website-resources.com/img/pexels-photo-85745.jpeg") no-repeat center center/cover;
  height: 100vh;
  position: relative;
}

.signup-1:before {
  content: '';
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.signup-1 a {
  color: #5863f8;
}

.signup-1 a:hover {
  color: #0f1ef5;
}

.box {
  border-radius: 2rem;
  border-top: 10px solid #5863f8;
}

.signup-form .input-group-text {
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-right: none;
  color: #adb5bd;
  padding: 10px 9px 10px 12px;
  width: 40px;
}

.signup-form .input-group .form-control {
  border: 2px solid #dee2e6;
  border-left: none;
  padding: 10px 12px 10px 6px;
}

.signup-form .input-group .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);
}

.signup-form .far {
  font-size: 1rem;
}

.signup-form .fas {
  font-size: .875rem;
}

.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);
}

.form-control:focus {
  -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);
}

.btn-signup .far {
  font-size: 1.25rem;
}

@media (max-width: 767.98px) {
  .h2 {
    font-size: 1.5rem;
  }
}
aHR0cHM6Ly9mcmVlLXdlYnNpdGUtcmVzb3VyY2VzLmNvbS9ibG9ja3MvYm9vdHN0cmFwL2Zvcm0vc2lnbnVwLWZvcm0tMQ==