{# password-reset-form override — request stage only, matching builtin. Wiring UNTOUCHABLE: /api/auth/request-password-reset (email), hx-target #reset-message, #request-reset-panel. Only classes/styles/copy reskinned to earthen. #}
<div data-block-override="earthen:password-reset-form" class="password-reset-form earthen-panel mx-auto max-w-md p-8">
  <div id="reset-message"></div>
  <div id="request-reset-panel" class="text-center">
    <svg aria-hidden="true" class="mx-auto mb-3 h-10 w-10" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" style="color:hsl(var(--primary));"><path d="M24 4v18"></path><path d="M24 22c-4 4-9 5-13 4M24 22c4 4 9 5 13 4M24 22c-2 7-3 12-5 16M24 22c2 7 3 12 5 16M24 22c0 9-1 15-1 20"></path><circle cx="24" cy="22" r="2"></circle></svg>
    <h2 class="text-2xl crayon-underline w-fit mx-auto" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--foreground));">Reset password</h2>
    <p class="mt-3 text-sm" style="color:hsl(var(--muted-foreground));font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif);">Enter your email and we will send a link to reset your password.</p>
    <form hx-post="/api/auth/request-password-reset" hx-target="#reset-message" hx-swap="innerHTML" class="mt-6 text-left">
      <div class="mb-4"><label class="block text-xs font-medium mb-1" style="color:hsl(var(--primary));">Email</label><input type="email" name="email" required class="w-full rounded-lg border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:border-[hsl(var(--primary))] focus:ring-1 focus:ring-ring" /></div>
      <button type="submit" class="earthen-cta w-full" hx-disabled-elt="this">Send reset link</button>
    </form>
    <p class="text-center mt-4 text-sm"><a href="/login" class="earthen-link">Back to sign in</a></p>
  </div>
</div>
