Auth Forms

Workspace SSO gate

Email first, then SSO or password

Live preview
Create an email-first sign-in card with Tailwind CSS, max-w-sm on a neutral background. Start with a logo badge, a "Sign in to Northwind" heading, and a line explaining that the work email decides the sign-in method. The form holds an email field with a hidden inline error line, a hidden identity row that shows the confirmed address in a grey pill with a "Change" button, a hidden password field, a full-width dark Continue button, and a hidden note about single sign-on. Finish with a "Create an account" link. Then add JavaScript for the two-step flow: on Continue, validate the address and reveal the error if it is malformed; otherwise lock the email into the identity pill and look up its domain in a small map of SSO-enabled companies — matched domains relabel the button "Continue with Okta" (or whichever provider) and reveal the SSO note, unmatched domains reveal the password field and relabel the button "Sign in". "Change" restores the first step, and the button label always reflects the current step.