v1.3.0 28

Auth

Sign in, sign up, and password reset blocks for authentication flows.

Sign In

Providers, email and password, remember me and a link to reset the password.

html

Welcome back

Sign in to your account

or
Forgot password?
<div class="vt-auth">
  <div class="vt-auth-header">
    <div class="vt-icon-badge vt-icon-badge-lg vt-icon-badge-square">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
        <path d="M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </div>
    <div class="vt-auth-heading">
      <h2 class="vt-auth-title">Welcome back</h2>
      <p class="vt-auth-description">Sign in to your account</p>
    </div>
  </div>
  <div class="vt-card vt-auth-card">
    <div class="vt-auth-social">
      <div class="vt-auth-providers">
        <button type="button" class="vt-btn vt-btn-bordered"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="vt-w-4 vt-h-4" aria-hidden="true">
            <path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844a9.59 9.59 0 0 1 2.504.337c1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.02 10.02 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"></path>
          </svg> GitHub</button>
        <button type="button" class="vt-btn vt-btn-bordered"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="vt-w-4 vt-h-4" aria-hidden="true">
            <path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path>
            <path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path>
            <path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path>
            <path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path>
            <path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>
          </svg> <span>Figma</span></button>
      </div>
      <div class="vt-separator-label">
        <div class="vt-separator vt-separator-h"></div>
        or
        <div class="vt-separator vt-separator-h"></div>
      </div>
    </div>
    <form class="vt-form" onsubmit="event.preventDefault()">
      <div class="vt-field">
        <label class="vt-label" for="signin-email">Email</label>
        <input id="signin-email" type="email" autocomplete="email" placeholder="you@example.com" class="vt-input">
      </div>
      <div class="vt-field">
        <label class="vt-label" for="signin-password">Password</label>
        <input id="signin-password" type="password" autocomplete="current-password" placeholder="Enter your password" class="vt-input">
      </div>
      <div class="vt-auth-options">
        <label class="vt-check-label" onclick="this.querySelector('.vt-checkbox').classList.toggle('checked')">
          <div class="vt-checkbox" role="checkbox" aria-checked="false"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
              <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
            </svg></div>
          Remember me
        </label>
        <a href="#" class="vt-link">Forgot password?</a>
      </div>
      <div class="vt-form-actions vt-form-actions-block">
        <button type="submit" class="vt-btn vt-btn-primary"><span>Sign in</span></button>
      </div>
    </form>
  </div>
  <p class="vt-auth-footer">No account? <a href="#" class="vt-link">Sign up</a></p>
</div>

Sign Up

Registration with providers, name, email and password, and consent to the terms.

html

Create an account

Start your free trial today

or
<div class="vt-auth">
  <div class="vt-auth-header">
    <div class="vt-icon-badge vt-icon-badge-lg vt-icon-badge-square">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
        <path d="M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </div>
    <div class="vt-auth-heading">
      <h2 class="vt-auth-title">Create an account</h2>
      <p class="vt-auth-description">Start your free trial today</p>
    </div>
  </div>
  <div class="vt-card vt-auth-card">
    <div class="vt-auth-social">
      <div class="vt-auth-providers">
        <button type="button" class="vt-btn vt-btn-bordered"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="vt-w-4 vt-h-4" aria-hidden="true">
            <path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844a9.59 9.59 0 0 1 2.504.337c1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.02 10.02 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"></path>
          </svg> <span>GitHub</span></button>
        <button type="button" class="vt-btn vt-btn-bordered"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="vt-w-4 vt-h-4" aria-hidden="true">
            <path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path>
            <path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path>
            <path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path>
            <path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path>
            <path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>
          </svg> <span>Figma</span></button>
      </div>
      <div class="vt-separator-label">
        <div class="vt-separator vt-separator-h"></div>
        or
        <div class="vt-separator vt-separator-h"></div>
      </div>
    </div>
    <form class="vt-form" onsubmit="event.preventDefault()">
      <div class="vt-form-row">
        <div class="vt-field">
          <label class="vt-label" for="signup-first">First name</label>
          <input id="signup-first" type="text" autocomplete="given-name" placeholder="John" class="vt-input">
        </div>
        <div class="vt-field">
          <label class="vt-label" for="signup-last">Last name</label>
          <input id="signup-last" type="text" autocomplete="family-name" placeholder="Doe" class="vt-input">
        </div>
      </div>
      <div class="vt-field">
        <label class="vt-label" for="signup-email">Email</label>
        <input id="signup-email" type="email" autocomplete="email" placeholder="you@example.com" class="vt-input">
      </div>
      <div class="vt-field">
        <label class="vt-label" for="signup-password">Password</label>
        <input id="signup-password" type="password" autocomplete="new-password" placeholder="At least 8 characters" class="vt-input">
      </div>
      <label class="vt-check-label" onclick="this.querySelector('.vt-checkbox').classList.toggle('checked')">
        <div class="vt-checkbox" role="checkbox" aria-checked="false"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
            <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
          </svg></div>
        <span>I agree to the <a href="#" class="vt-link">Terms</a> and <a href="#" class="vt-link">Privacy Policy</a></span>
      </label>
      <div class="vt-form-actions vt-form-actions-block">
        <button type="submit" class="vt-btn vt-btn-primary"><span>Create account</span></button>
      </div>
    </form>
  </div>
  <p class="vt-auth-footer">Already have an account? <a href="#" class="vt-link">Sign in</a></p>
</div>

Forgot Password

Password reset — the user enters an email to receive a reset link.

html

Forgot password?

Enter your email and we'll send you a reset link

<div class="vt-auth">
  <div class="vt-auth-header">
    <div class="vt-icon-badge vt-icon-badge-lg vt-icon-badge-square">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
        <path d="M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </div>
    <div class="vt-auth-heading">
      <h2 class="vt-auth-title">Forgot password?</h2>
      <p class="vt-auth-description">Enter your email and we'll send you a reset link</p>
    </div>
  </div>
  <div class="vt-card vt-auth-card">
    <form class="vt-form" onsubmit="event.preventDefault()">
      <div class="vt-field">
        <label class="vt-label" for="forgot-email">Email</label>
        <input id="forgot-email" type="email" autocomplete="email" placeholder="you@example.com" class="vt-input">
      </div>
      <div class="vt-form-actions vt-form-actions-block">
        <button type="submit" class="vt-btn vt-btn-primary"><span>Send reset link</span></button>
      </div>
    </form>
  </div>
  <p class="vt-auth-footer">Remember your password? <a href="#" class="vt-link">Sign in</a></p>
</div>

Split Layout

The block beside a quote panel; the panel appears from 1024px.

html

"The best UI kit I've ever worked with."

Jane Smith, Product Designer

Sign in

Welcome back

<div class="vt-auth-split">
  <div class="vt-auth-aside">
    <p class="vt-auth-quote">"The best UI kit I've ever worked with."</p>
    <p class="vt-auth-quote-author">Jane Smith, Product Designer</p>
  </div>
  <div class="vt-auth-split-main">
    <div class="vt-auth">
      <div class="vt-auth-header">
        <div class="vt-auth-heading">
          <h2 class="vt-auth-title">Sign in</h2>
          <p class="vt-auth-description">Welcome back</p>
        </div>
      </div>
      <div class="vt-card vt-auth-card">
        <form class="vt-form" onsubmit="event.preventDefault()">
          <div class="vt-field">
            <label class="vt-label" for="split-email">Email</label>
            <input id="split-email" type="email" autocomplete="email" placeholder="you@example.com" class="vt-input">
          </div>
          <div class="vt-field">
            <label class="vt-label" for="split-password">Password</label>
            <input id="split-password" type="password" autocomplete="current-password" placeholder="Enter your password" class="vt-input">
          </div>
          <div class="vt-form-actions vt-form-actions-block">
            <button type="submit" class="vt-btn vt-btn-primary"><span>Sign in</span></button>
          </div>
        </form>
      </div>
      <p class="vt-auth-footer">No account? <a href="#" class="vt-link">Sign up</a></p>
    </div>
  </div>
</div>

Guidelines

Do Keep auth forms minimal — ask only for what you need.
Don't Don't overload sign-in with fields you don't need to authenticate.

API Reference

Class Type Description
vt-auth Base Column of header, card and footer, 24px apart; full width up to 24rem
vt-auth-header Part Centered logo tile (vt-icon-badge vt-icon-badge-lg vt-icon-badge-square) above the heading, 16px apart
vt-auth-heading Part Title and description, centered, 4px apart
vt-auth-title Part Heading/MD title
vt-auth-description Part Body/SM muted line under the title
vt-cardvt-auth-card Part The card (Card) holding the form: 24px padding, parts 16px apart
vt-auth-social Part Sign-in providers and the "or" line, 16px apart
vt-auth-providers Part Row of bordered vt-btn provider buttons sharing the width equally, 12px apart
vt-separator-label Part Separator with a caption: "or" between two vt-separator vt-separator-h lines (vt-auth-divider is its older name and still renders)
vt-form Component The fields (Form): vt-field blocks 16px apart, vt-form-row for fields side by side
vt-auth-options Part Row with a vt-check-label (Remember me) at the start and a vt-link at the end
vt-form-actionsvt-form-actions-block Component Full-width submit button
vt-auth-footer Part Body/SM muted line under the card with a vt-link, centered
vt-auth-split Layout Bordered two-column frame: a quote panel beside the block
vt-auth-aside Part Quote panel on a moderate surface, shown from 1024px
vt-auth-quote Part Heading/SM quote
vt-auth-quote-author Part Body/SM secondary attribution
vt-auth-split-main Part The side that centers the block, 32px padding

Accessibility

Feature Details
Heading On a page of its own the title is the h1; inside a page (as here) an h2
Labels Every input has a <label> with matching for/id attributes
Autocomplete Use autocomplete="email", "current-password", "new-password" on the relevant inputs
Providers The brand logo is decorative (aria-hidden); the button text names the provider
Error messages Link errors to inputs with aria-describedby and set aria-invalid="true"
Submit button Use <button type="submit"> inside the <form>