;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f0be6beb-8fc4-5dfb-7eae-466ae7b9da51")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,780377,e=>{"use strict";var t=e.i(319181),r=e.i(595052),s=e.i(190642);function n(){let[e,n]=(0,r.useState)(""),[l,a]=(0,r.useState)(!1),[i,d]=(0,r.useState)(""),[o,c]=(0,r.useState)(!1);async function m(t){t.preventDefault(),c(!0),d("");try{let t=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});if(!t.ok){let e=await t.json();d(e.error||"Something went wrong."),c(!1);return}a(!0)}catch{d("Something went wrong. Please try again.")}finally{c(!1)}}return(0,t.jsx)("div",{className:"min-h-screen bg-[#0a0a0b] flex items-center justify-center px-4",children:(0,t.jsxs)("div",{className:"w-full max-w-sm",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-zinc-100 text-center mb-2",children:"Reset your password"}),(0,t.jsx)("p",{className:"text-zinc-500 text-center text-sm mb-8",children:"Enter your email and we'll send you a reset link."}),l?(0,t.jsxs)("div",{className:"bg-emerald-900/30 border border-emerald-800 text-emerald-300 px-4 py-3 rounded-lg text-sm text-center",children:[(0,t.jsx)("p",{className:"font-medium mb-1",children:"Check your inbox"}),(0,t.jsx)("p",{className:"text-emerald-400/80",children:"If an account exists with that email, you'll receive a password reset link shortly."}),(0,t.jsx)(s.default,{href:"/login",className:"inline-block mt-4 text-emerald-400 hover:underline",children:"Back to sign in"})]}):(0,t.jsxs)(t.Fragment,{children:[i&&(0,t.jsx)("div",{className:"bg-red-900/30 border border-red-800 text-red-300 px-4 py-3 rounded-lg mb-4 text-sm",children:i}),(0,t.jsxs)("form",{onSubmit:m,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm text-zinc-400 mb-1.5",children:"Email"}),(0,t.jsx)("input",{type:"email",value:e,onChange:e=>n(e.target.value),required:!0,className:"w-full bg-zinc-900 border border-zinc-700 rounded-lg px-4 py-2.5 text-zinc-100 placeholder-zinc-600 focus:outline-none focus:border-emerald-600",placeholder:"you@company.com"})]}),(0,t.jsx)("button",{type:"submit",disabled:o,className:"w-full bg-emerald-600 hover:bg-emerald-500 disabled:opacity-50 text-white font-medium py-2.5 rounded-lg transition-colors",children:o?"Sending...":"Send reset link"})]}),(0,t.jsxs)("p",{className:"text-zinc-500 text-center text-sm mt-6",children:["Remember your password?"," ",(0,t.jsx)(s.default,{href:"/login",className:"text-emerald-400 hover:underline",children:"Sign in"})]})]})]})})}e.s(["default",()=>n])}]); //# debugId=f0be6beb-8fc4-5dfb-7eae-466ae7b9da51 //# sourceMappingURL=070605dcbbcef924.js.map