Starting Point
v0.41.0

Search documentation

Search for a page and jump to it.

Start typing to search...
Go to Page
escClose

Tailwind CSS Forgot Password Page Examples

A growing collection of forgot password page examples for Tailwind CSS. Copy and paste the HTML into your project and adjust it with utility classes.

<div class="flex min-h-svh flex-col items-center justify-center p-6 md:p-10">
  <div class="flex w-full max-w-sm flex-col gap-6">
    <a
      href="#"
      class="self-center text-foreground [&>svg]:size-7"
      aria-label="Starting Point"
      ><svg
        xmlns="http://www.w3.org/2000/svg"
        viewBox="4 4 16 16"
        fill="currentColor"
      >
        <path
          d="M6.5 16.5 16.5 6.5"
          fill="none"
          stroke="currentColor"
          stroke-width="4"
          stroke-linecap="round"
        ></path>
        <circle cx="17" cy="17" r="2.5"></circle></svg
    ></a>
    <div class="grid justify-items-center gap-2 text-center">
      <h1 class="text-xl font-medium tracking-tight">Forgot password</h1>
      <p class="text-sm text-balance text-muted-foreground">
        Enter your email to receive a password reset link
      </p>
    </div>
    <form
      id="simple-forgot-password-page"
      class="field-group"
      action="/forgot-password"
      method="post"
    >
      <div class="field">
        <label class="label" for="simple-forgot-password-page-email"
          >Email address</label
        ><input
          class="input"
          id="simple-forgot-password-page-email"
          type="email"
          placeholder="[email protected]"
          autocomplete="email"
          required=""
          autofocus=""
          name="email"
        />
      </div>
      <button type="submit" class="btn">Email password reset link</button>
    </form>
    <p
      class="text-center text-sm text-muted-foreground [&_a]:font-medium [&_a]:text-foreground [&_a]:underline-offset-4 [&_a:hover]:underline"
    >
      Or, return to <a href="#">log in</a>
    </p>
  </div>
</div>
<div
  class="flex min-h-svh flex-col items-center justify-center bg-muted p-6 md:p-10"
>
  <div class="flex w-full max-w-md flex-col gap-6">
    <a
      href="#"
      class="self-center text-foreground [&>svg]:size-7"
      aria-label="Starting Point"
      ><svg
        xmlns="http://www.w3.org/2000/svg"
        viewBox="4 4 16 16"
        fill="currentColor"
      >
        <path
          d="M6.5 16.5 16.5 6.5"
          fill="none"
          stroke="currentColor"
          stroke-width="4"
          stroke-linecap="round"
        ></path>
        <circle cx="17" cy="17" r="2.5"></circle></svg
    ></a>
    <div class="card gap-0 py-0">
      <div class="card-content grid gap-6 px-6 py-8 sm:px-10">
        <div class="grid justify-items-center gap-2 text-center">
          <h1 class="text-xl font-medium tracking-tight">Forgot password</h1>
          <p class="text-sm text-balance text-muted-foreground">
            Enter your email to receive a password reset link
          </p>
        </div>
        <form
          id="card-forgot-password-page"
          class="field-group"
          action="/forgot-password"
          method="post"
        >
          <div class="field">
            <label class="label" for="card-forgot-password-page-email"
              >Email address</label
            ><input
              class="input"
              id="card-forgot-password-page-email"
              type="email"
              placeholder="[email protected]"
              autocomplete="email"
              required=""
              autofocus=""
              name="email"
            />
          </div>
          <button type="submit" class="btn">Email password reset link</button>
        </form>
        <p
          class="text-center text-sm text-muted-foreground [&_a]:font-medium [&_a]:text-foreground [&_a]:underline-offset-4 [&_a:hover]:underline"
        >
          Or, return to <a href="#">log in</a>
        </p>
      </div>
    </div>
  </div>
</div>
<div class="grid min-h-svh lg:grid-cols-2">
  <div
    class="relative hidden flex-col bg-neutral-900 p-10 text-white lg:flex dark:border-e"
  >
    <img
      src="https://images.unsplash.com/photo-1513569771920-c9e1d31714af?w=1400&amp;q=80&amp;auto=format&amp;fit=crop"
      alt=""
      class="absolute inset-0 size-full object-cover"
    />
    <div
      class="absolute inset-0 bg-linear-to-b from-black/30 via-transparent to-black/60"
    ></div>
    <a href="#" class="brand relative text-lg text-white"
      ><span class="brand-logo brand-logo-lg bg-white text-neutral-900"
        ><svg
          xmlns="http://www.w3.org/2000/svg"
          viewBox="0 0 24 24"
          fill="currentColor"
        >
          <path
            d="M6.5 16.5 16.5 6.5"
            fill="none"
            stroke="currentColor"
            stroke-width="4"
            stroke-linecap="round"
          ></path>
          <circle cx="17" cy="17" r="2.5"></circle></svg></span
      ><span class="brand-name text-lg">Starting Point</span></a
    >
    <figure class="relative mt-auto grid gap-2">
      <blockquote class="text-base font-medium">
        “Simplicity is the ultimate sophistication.”
      </blockquote>
      <figcaption class="text-base text-white/70">Leonardo da Vinci</figcaption>
    </figure>
  </div>
  <div class="flex items-center justify-center p-6 md:p-10">
    <div class="flex w-full max-w-sm flex-col gap-6">
      <a
        href="#"
        class="self-center text-foreground [&>svg]:size-7 lg:hidden"
        aria-label="Starting Point"
        ><svg
          xmlns="http://www.w3.org/2000/svg"
          viewBox="4 4 16 16"
          fill="currentColor"
        >
          <path
            d="M6.5 16.5 16.5 6.5"
            fill="none"
            stroke="currentColor"
            stroke-width="4"
            stroke-linecap="round"
          ></path>
          <circle cx="17" cy="17" r="2.5"></circle></svg
      ></a>
      <div class="grid justify-items-center gap-2 text-center">
        <h1 class="text-xl font-medium tracking-tight">Forgot password</h1>
        <p class="text-sm text-balance text-muted-foreground">
          Enter your email to receive a password reset link
        </p>
      </div>
      <form
        id="split-forgot-password-page"
        class="field-group"
        action="/forgot-password"
        method="post"
      >
        <div class="field">
          <label class="label" for="split-forgot-password-page-email"
            >Email address</label
          ><input
            class="input"
            id="split-forgot-password-page-email"
            type="email"
            placeholder="[email protected]"
            autocomplete="email"
            required=""
            autofocus=""
            name="email"
          />
        </div>
        <button type="submit" class="btn">Email password reset link</button>
      </form>
      <p
        class="text-center text-sm text-muted-foreground [&_a]:font-medium [&_a]:text-foreground [&_a]:underline-offset-4 [&_a:hover]:underline"
      >
        Or, return to <a href="#">log in</a>
      </p>
    </div>
  </div>
</div>