Bootstrap 5 Sign Up Form with Social Login and Password Strength
A split-screen sign-up page with a brand panel, social sign-in buttons, floating-label fields, a show/hide password toggle with a live strength meter, and a terms checkbox.
<section class="wdw-stage">
<div class="container su-wrap">
<div class="card wdw-card overflow-hidden">
<div class="row g-0">
<aside class="col-lg-5 su-brand wdw-aurora text-white p-4 p-md-5 d-flex flex-column justify-content-between">
<div class="d-flex align-items-center gap-2 fw-semibold">
<span class="su-logo" aria-hidden="true"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 18 10 6l4 8 2-4 4 8"/></svg></span> Orbit
</div>
<div class="my-5 my-lg-0 position-relative">
<h2 class="display-6 fw-bold mb-4" style="letter-spacing:-.02em">Start building in minutes.</h2>
<div class="row g-2 su-stats text-start">
<div class="col-6"><div class="su-stat"><strong>14 days</strong><span>free trial, no card</span></div></div>
<div class="col-6"><div class="su-stat"><strong>12k+</strong><span>teams onboarded</span></div></div>
<div class="col-12"><div class="su-stat d-flex align-items-center gap-3"><strong>99.9%</strong><span>uptime over the last 12 months</span></div></div>
</div>
</div>
<figure class="mb-0 position-relative small opacity-75">
<blockquote class="mb-1">“We shipped our redesign in half the time.”</blockquote>
<figcaption>Elena Moretti, Head of Product</figcaption>
</figure>
</aside>
<div class="col-lg-7 bg-body">
<form class="p-4 p-md-5 su-form" novalidate>
<h1 class="h3 wdw-heading mb-1">Create your account</h1>
<p class="text-body-secondary mb-4">Already registered? <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 d-flex align-items-center justify-content-center gap-2">
<svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path fill="#4285F4" d="M23 12.3c0-.8-.1-1.500-.2-2.200H12v4.200h6.200a5.300 5.300 0 0 1-2.300 3.500v2.900h3.700c2.200-2 3.400-5 3.400-8.400z"/><path fill="#34A853" d="M12 24c3.100 0 5.700-1 7.600-2.800l-3.700-2.900c-1 .7-2.300 1.100-3.900 1.100-3 0-5.500-2-6.400-4.700H1.800v3A12 12 0 0 0 12 24z"/><path fill="#FBBC05" d="M5.600 14.700a7.200 7.200 0 0 1 0-4.600v-3H1.800a12 12 0 0 0 0 10.600z"/><path fill="#EA4335" d="M12 4.800c1.700 0 3.200.6 4.400 1.700l3.300-3.300A12 12 0 0 0 1.800 7.100l3.800 3C6.500 6.800 9 4.800 12 4.800z"/></svg>Google</button></div>
<div class="col-sm-6"><button type="button" class="btn btn-outline-secondary text-body rounded-pill w-100 d-flex align-items-center justify-content-center gap-2">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 .5a11.500 11.500 0 0 0-3.600 22.400c.6.100.8-.2.8-.6v-2c-3.200.7-3.900-1.500-3.900-1.500-.5-1.300-1.300-1.700-1.300-1.700-1-.7.1-.7.1-.7 1.200.1 1.800 1.200 1.800 1.200 1 1.800 2.700 1.300 3.400 1 .1-.8.4-1.300.7-1.600-2.600-.3-5.300-1.300-5.300-5.700 0-1.300.5-2.300 1.200-3.100-.1-.3-.5-1.500.1-3.100 0 0 1-.3 3.200 1.200a11 11 0 0 1 5.800 0c2.200-1.500 3.200-1.200 3.200-1.200.6 1.600.2 2.800.1 3.100.8.800 1.200 1.800 1.200 3.100 0 4.400-2.700 5.400-5.300 5.700.4.400.8 1.100.8 2.200v3.200c0 .4.200.7.800.6A11.500 11.500 0 0 0 12 .5z"/></svg>GitHub</button></div>
</div>
<div class="d-flex align-items-center gap-3 text-body-secondary small my-3"><hr class="flex-grow-1 m-0"><span>or sign up with email</span><hr class="flex-grow-1 m-0"></div>
<div class="form-floating mb-3">
<input type="text" class="form-control" id="su-name" placeholder="Full name" autocomplete="name" required>
<label for="su-name">Full name</label>
</div>
<div class="form-floating mb-3">
<input type="email" class="form-control" id="su-email" placeholder="Email" autocomplete="email" required>
<label for="su-email">Work email</label>
</div>
<div class="mb-3">
<div class="position-relative">
<div class="form-floating">
<input type="password" class="form-control su-pass-input" id="su-pass" placeholder="Password" autocomplete="new-password" minlength="8" required>
<label for="su-pass">Password</label>
</div>
<button class="su-eye" type="button" id="su-toggle" aria-label="Show password" aria-controls="su-pass">
<svg class="su-eye-on" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></svg>
<svg class="su-eye-off d-none" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M17.9 17.9A10.1 10.1 0 0 1 12 19c-6.500 0-10-7-10-7a17.700 17.700 0 0 1 4.100-5M9.900 4.200A9.500 9.500 0 0 1 12 4c6.500 0 10 7 10 7a17.800 17.800 0 0 1-2.200 3.200M1 1l22 22"/></svg>
</button>
</div>
<div class="progress su-progress mt-2" hidden id="su-bar" role="progressbar" aria-label="Password strength" aria-valuemin="0" aria-valuemax="4" aria-valuenow="0"><div class="progress-bar" id="su-meter" style="width:0"></div></div>
<div class="form-text" id="su-hint" role="status" aria-live="polite">Use 8+ characters with a mix of letters, numbers and symbols.</div>
</div>
<div class="form-check mb-4">
<input class="form-check-input" type="checkbox" id="su-terms" required>
<label class="form-check-label small" for="su-terms">I agree to the <a href="#">Terms</a> and <a href="#">Privacy Policy</a></label>
</div>
<button type="submit" class="btn btn-primary w-100 rounded-pill">Create account</button>
<p class="text-success small fw-semibold text-center mt-3 mb-0" id="su-ok" hidden>Account created. Check your inbox to confirm.</p>
</form>
</div>
</div>
</div>
</div>
</section>
/* Web Designer Wall library style — shared base for every Bootstrap 5 snippet.
Indigo accent, Plus Jakarta Sans, soft cards, pill buttons. Works in light and dark. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root,
[data-bs-theme="light"] {
--wdw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--bs-body-font-family: var(--wdw-font);
--bs-primary: #4f46e5;
--bs-primary-rgb: 79, 70, 229;
--bs-primary-text-emphasis: #3730a3;
--bs-primary-bg-subtle: #eef2ff;
--bs-primary-border-subtle: #c7d2fe;
--bs-link-color: #4f46e5;
--bs-link-color-rgb: 79, 70, 229;
--bs-link-hover-color: #4338ca;
--bs-link-hover-color-rgb: 67, 56, 202;
--bs-focus-ring-color: rgba(79, 70, 229, 0.25);
--bs-border-radius: 0.75rem;
--bs-border-radius-lg: 1rem;
--bs-border-radius-xl: 1.25rem;
--wdw-radius-card: 1.25rem;
--wdw-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 40px -16px rgba(16, 24, 40, 0.22);
--wdw-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px -4px rgba(16, 24, 40, 0.12);
--wdw-stage: #f5f6fb;
}
[data-bs-theme="dark"] {
--bs-primary: #818cf8;
--bs-primary-rgb: 129, 140, 248;
--bs-primary-text-emphasis: #c7d2fe;
--bs-primary-bg-subtle: rgba(129, 140, 248, 0.14);
--bs-primary-border-subtle: rgba(129, 140, 248, 0.35);
--bs-link-color: #a5b4fc;
--bs-link-color-rgb: 165, 180, 252;
--bs-link-hover-color: #c7d2fe;
--bs-link-hover-color-rgb: 199, 210, 254;
--bs-focus-ring-color: rgba(129, 140, 248, 0.35);
--wdw-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
--wdw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
--wdw-stage: #0f1117;
}
body { font-family: var(--wdw-font); -webkit-font-smoothing: antialiased; }
/* Bootstrap compiles its blue into these components; point them at the accent. */
.btn-primary {
--bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca;
--bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3;
--bs-btn-disabled-bg: var(--bs-primary); --bs-btn-disabled-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0f1117; --bs-btn-hover-bg: #a5b4fc; --bs-btn-hover-border-color: #a5b4fc; --bs-btn-hover-color: #0f1117; --bs-btn-active-color: #0f1117; }
.btn-outline-primary {
--bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary);
--bs-btn-active-bg: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn { --bs-btn-font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-sm { min-height: 36px; }
.form-control, .form-select { min-height: 44px; border-radius: .75rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--bs-primary-rgb), .6); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--bs-primary); }
.nav { --bs-nav-link-color: var(--bs-secondary-color); --bs-nav-link-hover-color: var(--bs-emphasis-color); }
.pagination { --bs-pagination-active-bg: var(--bs-primary); --bs-pagination-active-border-color: var(--bs-primary); --bs-pagination-color: var(--bs-body-color); --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--bs-primary); }
.list-group { --bs-list-group-active-bg: var(--bs-primary); --bs-list-group-active-border-color: var(--bs-primary); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--bs-primary); border-radius: .875rem; box-shadow: var(--wdw-shadow-sm); }
.accordion { --bs-accordion-active-bg: var(--bs-primary-bg-subtle); --bs-accordion-active-color: var(--bs-primary-text-emphasis); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.badge { font-weight: 600; }
/* Library building blocks — use these instead of re-inventing them per snippet. */
.wdw-stage { min-height: 100vh; display: flex; align-items: center; background: var(--wdw-stage); padding-block: 3rem; }
.wdw-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: var(--wdw-radius-card); box-shadow: var(--wdw-shadow); }
.wdw-card-sm { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: 1rem; box-shadow: var(--wdw-shadow-sm); }
.wdw-aurora { position: relative; color: #fff; background: radial-gradient(60% 55% at 100% 0, #818cf8 0, transparent 70%), radial-gradient(65% 60% at 0 100%, #ec4899 0, transparent 65%), #1e1b4b; }
.wdw-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-primary); }
.wdw-heading { font-weight: 800; letter-spacing: -.02em; color: var(--bs-emphasis-color); }
.wdw-muted { color: var(--bs-secondary-color); }
.wdw-icon { width: 2.75rem; height: 2.75rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: .875rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }
/* Component */
.su-wrap{max-width:980px}
.su-brand{overflow:hidden}
.su-logo{width:28px;height:28px;border-radius:9px;background:#fff;color:#4f46e5;display:inline-flex;align-items:center;justify-content:center}
.su-stat{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:1rem;padding:.9rem 1rem;backdrop-filter:blur(6px)}
.su-stat strong{display:block;font-size:1.5rem;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.su-stat span{font-size:.85rem;opacity:.85}
.su-stat.d-flex strong{display:inline;font-size:1.5rem}
.su-progress[hidden]{display:none}
.su-perks li{position:relative;padding-left:1.75rem;margin-bottom:.75rem;opacity:.9}
.su-perks li::before{content:"";position:absolute;left:0;top:.2em;width:1.1rem;height:1.1rem;border-radius:50%;background:rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='M4 8.5l2.500 2.500L12 5.500'/%3E%3C/svg%3E") center/80% no-repeat}
.su-form a{text-decoration:none}
.su-form a:hover{text-decoration:underline}
#su-meter{transition:width .25s,background-color .25s}
.su-progress{height:6px;border-radius:99px;background:var(--bs-secondary-bg);border:1px solid var(--bs-border-color);overflow:hidden}
.su-progress .progress-bar{border-radius:99px}
.su-pass-input{padding-right:3.25rem}
.su-eye{position:absolute;top:50%;right:.35rem;transform:translateY(-50%);width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--bs-secondary-color);border-radius:50%;z-index:5}
.su-eye:hover{color:var(--bs-emphasis-color)}
.su-eye:focus-visible{outline:2px solid var(--bs-primary);outline-offset:-2px}
function initPasswordToggle() {
const input = document.getElementById('su-pass');
const btn = document.getElementById('su-toggle');
if (!input || !btn) return;
btn.addEventListener('click', () => {
const show = input.type === 'password';
input.type = show ? 'text' : 'password';
btn.querySelector('.su-eye-on').classList.toggle('d-none', show);
btn.querySelector('.su-eye-off').classList.toggle('d-none', !show);
btn.setAttribute('aria-label', show ? 'Hide password' : 'Show password');
});
}
function initPasswordMeter() {
const input = document.getElementById('su-pass');
const bar = document.getElementById('su-meter');
const hint = document.getElementById('su-hint');
if (!input || !bar) return;
const labels = ['Too short', 'Weak', 'Fair', 'Good', 'Strong'];
const colors = ['var(--bs-danger)', 'var(--bs-danger)', 'var(--bs-warning)', 'var(--bs-warning)', 'var(--bs-success)'];
input.addEventListener('input', () => {
const v = input.value;
bar.parentElement.hidden = !v;
let score = 0;
if (v.length >= 8) score++;
if (/[a-z]/.test(v) && /[A-Z]/.test(v)) score++;
if (/\d/.test(v)) score++;
if (/[^A-Za-z0-9]/.test(v)) score++;
if (!v) score = 0;
bar.style.width = (score * 25) + '%';
bar.style.backgroundColor = colors[score];
bar.parentElement.setAttribute('aria-valuenow', score);
hint.textContent = v ? 'Strength: ' + labels[score] : 'Use 8+ characters with a mix of letters, numbers and symbols.';
});
}
function initSignupForm() {
const form = document.querySelector('.su-form');
const ok = document.getElementById('su-ok');
if (!form) return;
form.addEventListener('submit', (e) => {
e.preventDefault();
form.classList.add('was-validated');
if (form.checkValidity() && ok) ok.hidden = false;
});
}
initPasswordToggle();
initPasswordMeter();
initSignupForm();
Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.