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 Reset Password Page Examples

A growing collection of reset 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">Reset password</h1>
      <p class="text-sm text-balance text-muted-foreground">
        Please enter your new password below
      </p>
    </div>
    <form
      id="simple-reset-password-page"
      class="field-group"
      action="/reset-password"
      method="post"
    >
      <input type="hidden" name="token" value="" />
      <div class="field">
        <label class="label" for="simple-reset-password-page-email">Email</label
        ><input
          class="input"
          id="simple-reset-password-page-email"
          type="email"
          autocomplete="email"
          required=""
          name="email"
          value="[email protected]"
        />
      </div>
      <div class="field">
        <label class="label" for="simple-reset-password-page-password"
          >Password</label
        >
        <div class="input-group">
          <input
            class="input"
            id="simple-reset-password-page-password"
            type="password"
            placeholder="Password"
            autocomplete="new-password"
            required=""
            name="password"
          />
          <div class="input-group-addon input-group-addon-end">
            <button
              type="button"
              class="btn btn-ghost btn-xs btn-icon"
              aria-label="Show password"
              aria-pressed="false"
              data-password-toggle=""
            >
              <svg
                xmlns="http://www.w3.org/2000/svg"
                viewBox="0 0 24 24"
                fill="none"
                stroke="currentColor"
                stroke-width="2"
                stroke-linecap="round"
                stroke-linejoin="round"
                class="in-aria-pressed:hidden"
              >
                <path
                  d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"
                ></path>
                <circle cx="12" cy="12" r="3"></circle></svg
              ><svg
                xmlns="http://www.w3.org/2000/svg"
                viewBox="0 0 24 24"
                fill="none"
                stroke="currentColor"
                stroke-width="2"
                stroke-linecap="round"
                stroke-linejoin="round"
                class="hidden in-aria-pressed:block"
              >
                <path
                  d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"
                ></path>
                <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"></path>
                <path
                  d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"
                ></path>
                <path d="m2 2 20 20"></path>
              </svg>
            </button>
          </div>
        </div>
      </div>
      <div class="field">
        <label
          class="label"
          for="simple-reset-password-page-password-confirmation"
          >Confirm password</label
        >
        <div class="input-group">
          <input
            class="input"
            id="simple-reset-password-page-password-confirmation"
            type="password"
            placeholder="Confirm password"
            autocomplete="new-password"
            required=""
            name="password_confirmation"
          />
          <div class="input-group-addon input-group-addon-end">
            <button
              type="button"
              class="btn btn-ghost btn-xs btn-icon"
              aria-label="Show password"
              aria-pressed="false"
              data-password-toggle=""
            >
              <svg
                xmlns="http://www.w3.org/2000/svg"
                viewBox="0 0 24 24"
                fill="none"
                stroke="currentColor"
                stroke-width="2"
                stroke-linecap="round"
                stroke-linejoin="round"
                class="in-aria-pressed:hidden"
              >
                <path
                  d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"
                ></path>
                <circle cx="12" cy="12" r="3"></circle></svg
              ><svg
                xmlns="http://www.w3.org/2000/svg"
                viewBox="0 0 24 24"
                fill="none"
                stroke="currentColor"
                stroke-width="2"
                stroke-linecap="round"
                stroke-linejoin="round"
                class="hidden in-aria-pressed:block"
              >
                <path
                  d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"
                ></path>
                <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"></path>
                <path
                  d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"
                ></path>
                <path d="m2 2 20 20"></path>
              </svg>
            </button>
          </div>
        </div>
      </div>
      <button type="submit" class="btn">Reset password</button>
      <script>
        {
          const form = document.currentScript.closest("form");
          for (const button of form.querySelectorAll(
            "[data-password-toggle]",
          )) {
            button.addEventListener("click", () => {
              const input = button
                .closest(".input-group")
                .querySelector("input");
              const show = input.type === "password";
              input.type = show ? "text" : "password";
              button.setAttribute("aria-pressed", show);
            });
          }
        }
      </script>
    </form>
  </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">Reset password</h1>
          <p class="text-sm text-balance text-muted-foreground">
            Please enter your new password below
          </p>
        </div>
        <form
          id="card-reset-password-page"
          class="field-group"
          action="/reset-password"
          method="post"
        >
          <input type="hidden" name="token" value="" />
          <div class="field">
            <label class="label" for="card-reset-password-page-email"
              >Email</label
            ><input
              class="input"
              id="card-reset-password-page-email"
              type="email"
              autocomplete="email"
              required=""
              name="email"
              value="[email protected]"
            />
          </div>
          <div class="field">
            <label class="label" for="card-reset-password-page-password"
              >Password</label
            >
            <div class="input-group">
              <input
                class="input"
                id="card-reset-password-page-password"
                type="password"
                placeholder="Password"
                autocomplete="new-password"
                required=""
                name="password"
              />
              <div class="input-group-addon input-group-addon-end">
                <button
                  type="button"
                  class="btn btn-ghost btn-xs btn-icon"
                  aria-label="Show password"
                  aria-pressed="false"
                  data-password-toggle=""
                >
                  <svg
                    xmlns="http://www.w3.org/2000/svg"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    stroke-width="2"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    class="in-aria-pressed:hidden"
                  >
                    <path
                      d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"
                    ></path>
                    <circle cx="12" cy="12" r="3"></circle></svg
                  ><svg
                    xmlns="http://www.w3.org/2000/svg"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    stroke-width="2"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    class="hidden in-aria-pressed:block"
                  >
                    <path
                      d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"
                    ></path>
                    <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"></path>
                    <path
                      d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"
                    ></path>
                    <path d="m2 2 20 20"></path>
                  </svg>
                </button>
              </div>
            </div>
          </div>
          <div class="field">
            <label
              class="label"
              for="card-reset-password-page-password-confirmation"
              >Confirm password</label
            >
            <div class="input-group">
              <input
                class="input"
                id="card-reset-password-page-password-confirmation"
                type="password"
                placeholder="Confirm password"
                autocomplete="new-password"
                required=""
                name="password_confirmation"
              />
              <div class="input-group-addon input-group-addon-end">
                <button
                  type="button"
                  class="btn btn-ghost btn-xs btn-icon"
                  aria-label="Show password"
                  aria-pressed="false"
                  data-password-toggle=""
                >
                  <svg
                    xmlns="http://www.w3.org/2000/svg"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    stroke-width="2"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    class="in-aria-pressed:hidden"
                  >
                    <path
                      d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"
                    ></path>
                    <circle cx="12" cy="12" r="3"></circle></svg
                  ><svg
                    xmlns="http://www.w3.org/2000/svg"
                    viewBox="0 0 24 24"
                    fill="none"
                    stroke="currentColor"
                    stroke-width="2"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    class="hidden in-aria-pressed:block"
                  >
                    <path
                      d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"
                    ></path>
                    <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"></path>
                    <path
                      d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"
                    ></path>
                    <path d="m2 2 20 20"></path>
                  </svg>
                </button>
              </div>
            </div>
          </div>
          <button type="submit" class="btn">Reset password</button>
          <script>
            {
              const form = document.currentScript.closest("form");
              for (const button of form.querySelectorAll(
                "[data-password-toggle]",
              )) {
                button.addEventListener("click", () => {
                  const input = button
                    .closest(".input-group")
                    .querySelector("input");
                  const show = input.type === "password";
                  input.type = show ? "text" : "password";
                  button.setAttribute("aria-pressed", show);
                });
              }
            }
          </script>
        </form>
      </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">Reset password</h1>
        <p class="text-sm text-balance text-muted-foreground">
          Please enter your new password below
        </p>
      </div>
      <form
        id="split-reset-password-page"
        class="field-group"
        action="/reset-password"
        method="post"
      >
        <input type="hidden" name="token" value="" />
        <div class="field">
          <label class="label" for="split-reset-password-page-email"
            >Email</label
          ><input
            class="input"
            id="split-reset-password-page-email"
            type="email"
            autocomplete="email"
            required=""
            name="email"
            value="[email protected]"
          />
        </div>
        <div class="field">
          <label class="label" for="split-reset-password-page-password"
            >Password</label
          >
          <div class="input-group">
            <input
              class="input"
              id="split-reset-password-page-password"
              type="password"
              placeholder="Password"
              autocomplete="new-password"
              required=""
              name="password"
            />
            <div class="input-group-addon input-group-addon-end">
              <button
                type="button"
                class="btn btn-ghost btn-xs btn-icon"
                aria-label="Show password"
                aria-pressed="false"
                data-password-toggle=""
              >
                <svg
                  xmlns="http://www.w3.org/2000/svg"
                  viewBox="0 0 24 24"
                  fill="none"
                  stroke="currentColor"
                  stroke-width="2"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  class="in-aria-pressed:hidden"
                >
                  <path
                    d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"
                  ></path>
                  <circle cx="12" cy="12" r="3"></circle></svg
                ><svg
                  xmlns="http://www.w3.org/2000/svg"
                  viewBox="0 0 24 24"
                  fill="none"
                  stroke="currentColor"
                  stroke-width="2"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  class="hidden in-aria-pressed:block"
                >
                  <path
                    d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"
                  ></path>
                  <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"></path>
                  <path
                    d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"
                  ></path>
                  <path d="m2 2 20 20"></path>
                </svg>
              </button>
            </div>
          </div>
        </div>
        <div class="field">
          <label
            class="label"
            for="split-reset-password-page-password-confirmation"
            >Confirm password</label
          >
          <div class="input-group">
            <input
              class="input"
              id="split-reset-password-page-password-confirmation"
              type="password"
              placeholder="Confirm password"
              autocomplete="new-password"
              required=""
              name="password_confirmation"
            />
            <div class="input-group-addon input-group-addon-end">
              <button
                type="button"
                class="btn btn-ghost btn-xs btn-icon"
                aria-label="Show password"
                aria-pressed="false"
                data-password-toggle=""
              >
                <svg
                  xmlns="http://www.w3.org/2000/svg"
                  viewBox="0 0 24 24"
                  fill="none"
                  stroke="currentColor"
                  stroke-width="2"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  class="in-aria-pressed:hidden"
                >
                  <path
                    d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"
                  ></path>
                  <circle cx="12" cy="12" r="3"></circle></svg
                ><svg
                  xmlns="http://www.w3.org/2000/svg"
                  viewBox="0 0 24 24"
                  fill="none"
                  stroke="currentColor"
                  stroke-width="2"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  class="hidden in-aria-pressed:block"
                >
                  <path
                    d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"
                  ></path>
                  <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"></path>
                  <path
                    d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"
                  ></path>
                  <path d="m2 2 20 20"></path>
                </svg>
              </button>
            </div>
          </div>
        </div>
        <button type="submit" class="btn">Reset password</button>
        <script>
          {
            const form = document.currentScript.closest("form");
            for (const button of form.querySelectorAll(
              "[data-password-toggle]",
            )) {
              button.addEventListener("click", () => {
                const input = button
                  .closest(".input-group")
                  .querySelector("input");
                const show = input.type === "password";
                input.type = show ? "text" : "password";
                button.setAttribute("aria-pressed", show);
              });
            }
          }
        </script>
      </form>
    </div>
  </div>
</div>