Skip to content

SSO Domain Lookup

A copy-paste login & auth component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Login & AuthHTMLCSSany framework
Sign in with SSO
SSO found for example.com

Copy into your project

HTML
<div class="nuda-au2-sso-domain">
  <div class="nuda-au2-sso-domain__title">Sign in with SSO</div>
  <form class="nuda-au2-sso-domain__form">
    <label class="nuda-au2-sso-domain__label" for="au2-sso-email">Work email</label>
    <input id="au2-sso-email" class="nuda-au2-sso-domain__input" type="email" autocomplete="email" value="you@example.com" required />
    <div class="nuda-au2-sso-domain__detected" role="status">
      <svg class="nuda-au2-sso-domain__check" aria-hidden="true" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
        <path d="M3 8.5l3 3 7-7" />
      </svg>
      <span>SSO found for <strong>example.com</strong></span>
    </div>
    <button class="nuda-au2-sso-domain__cta" type="submit">Continue with SSO</button>
  </form>
</div>
CSS
.nuda-au2-sso-domain {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  width: 100%;
  max-width: 290px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

.nuda-au2-sso-domain__title {
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
}

.nuda-au2-sso-domain__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nuda-au2-sso-domain__label {
  color: #cfcfcf;
  font-size: 11px;
}

.nuda-au2-sso-domain__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-sso-domain__input:focus-visible {
  border-color: #e4ff54;
  box-shadow: 0 0 0 3px rgba(228,255,84,.15);
}

.nuda-au2-sso-domain__detected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(228,255,84,.08);
  border: 1px solid rgba(228,255,84,.25);
  border-radius: 10px;
  color: #cfe89a;
  font-size: 11.5px;
  opacity: 0;
  transform: scale(.9);
  animation: nuda-au2-sso-domain-pop .45s cubic-bezier(.16,1,.3,1) .2s both;
}

.nuda-au2-sso-domain__detected strong {
  color: #e4ff54;
  font-weight: 600;
}

.nuda-au2-sso-domain__check {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #e4ff54;
}

.nuda-au2-sso-domain__cta {
  min-height: 44px;
  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-sso-domain__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.nuda-au2-sso-domain__cta:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

@keyframes nuda-au2-sso-domain-pop {
  from {
    opacity: 0;
    transform: scale(.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-au2-sso-domain__detected {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

How to use SSO Domain Lookup

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.

More login & auth components

← Browse all NudaUI components