Password Policy Checklist
A copy-paste login & auth component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Login & AuthHTMLCSSany framework
Copy into your project
HTML
<form class="nuda-au2-password-policy">
<label class="nuda-au2-password-policy__label" for="au2-pw-new">New password</label>
<input id="au2-pw-new" class="nuda-au2-password-policy__input" type="password" autocomplete="new-password" value="Sunrise!482" required />
<ul class="nuda-au2-password-policy__list">
<li class="nuda-au2-password-policy__item nuda-au2-password-policy__item--ok">
<svg class="nuda-au2-password-policy__check" aria-hidden="true" viewBox="0 0 16 16"><path d="M3 8.5l3 3 7-7" /></svg>
<span>At least 8 characters</span>
</li>
<li class="nuda-au2-password-policy__item nuda-au2-password-policy__item--ok">
<svg class="nuda-au2-password-policy__check" aria-hidden="true" viewBox="0 0 16 16"><path d="M3 8.5l3 3 7-7" /></svg>
<span>One uppercase letter</span>
</li>
<li class="nuda-au2-password-policy__item nuda-au2-password-policy__item--ok">
<svg class="nuda-au2-password-policy__check" aria-hidden="true" viewBox="0 0 16 16"><path d="M3 8.5l3 3 7-7" /></svg>
<span>One number</span>
</li>
<li class="nuda-au2-password-policy__item nuda-au2-password-policy__item--ok">
<svg class="nuda-au2-password-policy__check" aria-hidden="true" viewBox="0 0 16 16"><path d="M3 8.5l3 3 7-7" /></svg>
<span>One symbol</span>
</li>
</ul>
<button class="nuda-au2-password-policy__cta" type="submit">Create account</button>
</form>CSS
.nuda-au2-password-policy {
display: flex;
flex-direction: column;
gap: 10px;
padding: 22px;
width: 100%;
max-width: 290px;
background: #0a0a0a;
border: 1px solid rgba(255,255,255,.08);
border-radius: 16px;
}
.nuda-au2-password-policy__label {
color: #cfcfcf;
font-size: 11px;
}
.nuda-au2-password-policy__input {
width: 100%;
box-sizing: border-box;
padding: 12px;
background: rgba(255,255,255,.03);
border: 1px solid rgba(255,255,255,.1);
border-radius: 10px;
color: #fafafa;
font-size: 13px;
outline: none;
transition: border-color .2s,box-shadow .2s;
}
.nuda-au2-password-policy__input:focus-visible {
border-color: #e4ff54;
box-shadow: 0 0 0 3px rgba(228,255,84,.15);
}
.nuda-au2-password-policy__list {
list-style: none;
margin: 2px 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
.nuda-au2-password-policy__item {
display: flex;
align-items: center;
gap: 8px;
color: #777;
font-size: 11.5px;
}
.nuda-au2-password-policy__item--ok {
color: #cfcfcf;
}
.nuda-au2-password-policy__check {
width: 15px;
height: 15px;
flex: 0 0 auto;
fill: none;
stroke: #e4ff54;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.nuda-au2-password-policy__item--ok .nuda-au2-password-policy__check {
stroke-dasharray: 16;
stroke-dashoffset: 16;
animation: nuda-au2-password-policy-draw .4s ease forwards;
}
.nuda-au2-password-policy__item:nth-child(1) .nuda-au2-password-policy__check {
animation-delay: .1s;
}
.nuda-au2-password-policy__item:nth-child(2) .nuda-au2-password-policy__check {
animation-delay: .28s;
}
.nuda-au2-password-policy__item:nth-child(3) .nuda-au2-password-policy__check {
animation-delay: .46s;
}
.nuda-au2-password-policy__item:nth-child(4) .nuda-au2-password-policy__check {
animation-delay: .64s;
}
.nuda-au2-password-policy__cta {
min-height: 44px;
margin-top: 4px;
padding: 10px;
background: #e4ff54;
color: #0a0a0a;
border: 0;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: filter .2s,transform .15s;
}
.nuda-au2-password-policy__cta:hover {
filter: brightness(1.08);
transform: translateY(-1px);
}
.nuda-au2-password-policy__cta:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 2px;
}
@keyframes nuda-au2-password-policy-draw {
to {
stroke-dashoffset: 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-au2-password-policy__item--ok .nuda-au2-password-policy__check {
animation: none;
stroke-dashoffset: 0;
}
}
How to use Password Policy Checklist
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.