Snippets Form

Bootstrap 5 Sign Up Form with Brand Panel

A split-screen sign-up card with a brand panel on one side and a form on the other: social sign-in buttons, floating-label fields for name, email and password, and inline validation. Submitting valid details shows a confirmation message.

Bootstrap 5 No jQuery Apr 2020 2.1K views

<section class="wdw-stage">
  <div class="container" style="max-width:1040px">
    <div class="wdw-card overflow-hidden">
      <div class="row g-0">
        <div class="col-lg-5 wdw-aurora p-4 p-lg-5 d-flex flex-column justify-content-between gap-5">
          <div class="d-flex align-items-center gap-2 fw-bold fs-5">
            <span class="signup-logo" aria-hidden="true">M</span> Mello
          </div>
          <div>
            <div class="signup-stack mb-4" aria-hidden="true">
              <div class="signup-chip"><span class="dot"></span><span class="bar w-50"></span></div>
              <div class="signup-chip"><span class="dot"></span><span class="bar w-75"></span></div>
              <div class="signup-chip"><span class="dot"></span><span class="bar w-25"></span></div>
            </div>
            <h2 class="h3 fw-bold mb-2">Collect everything in one place</h2>
            <p class="mb-0 opacity-75">Notes, links and files from every tool you use, organised into boards your whole team can search.</p>
          </div>
        </div>
        <div class="col-lg-7">
          <form class="p-4 p-lg-5 needs-validation" id="signupForm" novalidate>
            <h1 class="wdw-heading h3 mb-1">Create your Mello account</h1>
            <p class="wdw-muted mb-4">Already have an account? <a href="#" class="fw-semibold link-underline-opacity-0">Log in</a></p>
            <div class="row g-2 mb-3">
              <div class="col-sm-6">
                <button type="button" class="btn btn-outline-secondary text-body rounded-pill w-100">
                  <span class="fw-bold" aria-hidden="true">G</span>
                  Google
                </button>
              </div>
              <div class="col-sm-6">
                <button type="button" class="btn btn-outline-secondary text-body rounded-pill w-100">
                  <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 19c-4 1.2-4-2-6-2m12 4v-3.5c0-1 .1-1.4-.5-2 2.800-.3 5.500-1.400 5.500-6a4.600 4.600 0 0 0-1.300-3.200 4.200 4.200 0 0 0-.1-3.200s-1.100-.3-3.500 1.300a12 12 0 0 0-6.200 0C6.500 2.800 5.400 3.100 5.400 3.100a4.200 4.200 0 0 0-.1 3.200A4.600 4.600 0 0 0 4 9.500c0 4.600 2.700 5.700 5.500 6-.6.600-.6 1.200-.5 2V21"/></svg>
                  GitHub
                </button>
              </div>
            </div>
            <div class="d-flex align-items-center gap-3 wdw-muted small mb-3"><hr class="flex-grow-1 m-0"><span>or with email</span><hr class="flex-grow-1 m-0"></div>
            <div class="row g-3">
              <div class="col-sm-6 form-floating">
                <input type="text" class="form-control" id="suFirst" placeholder="First name" autocomplete="given-name" required>
                <label for="suFirst" class="ms-2">First name</label>
                <div class="invalid-feedback">Enter your first name.</div>
              </div>
              <div class="col-sm-6 form-floating">
                <input type="text" class="form-control" id="suLast" placeholder="Last name" autocomplete="family-name" required>
                <label for="suLast" class="ms-2">Last name</label>
                <div class="invalid-feedback">Enter your last name.</div>
              </div>
              <div class="col-12 form-floating">
                <input type="email" class="form-control" id="suEmail" placeholder="Email" autocomplete="email" required>
                <label for="suEmail" class="ms-2">Email address</label>
                <div class="invalid-feedback">Enter a valid email address.</div>
              </div>
              <div class="col-12 form-floating">
                <input type="password" class="form-control" id="suPass" placeholder="Password" autocomplete="new-password" minlength="8" required>
                <label for="suPass" class="ms-2">Password (8+ characters)</label>
                <div class="invalid-feedback">Use at least 8 characters.</div>
              </div>
            </div>
            <div class="d-flex flex-column flex-sm-row align-items-sm-center gap-3 mt-4">
              <button type="submit" class="btn btn-primary rounded-pill px-4 flex-none">Create account</button>
              <small class="wdw-muted">By creating an account you agree to the <a href="#">Terms of Service</a> and <a href="#">Privacy Policy</a>.</small>
            </div>
            <div class="alert alert-success mt-4 mb-0 d-none" id="signupOk" role="status">Account created. Check your inbox to confirm your email.</div>
          </form>
        </div>
      </div>
    </div>
  </div>
</section>

Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.

Free to use in personal and commercial projects under the MIT license.