import{e as n,j as e,H as c,M as x,g as u,A as p}from"./vendor-laZsiqLO.js";import{G as f}from"./GuestLayout-Bncnlxxo.js";import{B as h}from"./button-B8f8jW4H.js";import{I as j}from"./input-CT5MkJwj.js";import{L as g}from"./label-BDbCc0wv.js";import{C as _,a as b,b as w,c as N,d as y,e as v}from"./card-BKDXjfy_.js";import{u as C}from"./useTranslation-BW0o-tkY.js";import"./SiteLogo-DML5Oulk.js";import"./dropdown-menu-CpMN0BZ0.js";import"./utils-RgT4yCq8.js";import"./sheet-Cp4V1hdh.js";import"./useFlashMessages-CQoLOBuv.js";import"./AdSlot-HY9FvbmL.js";import"./RightSidebarFooter-BO77c1r9.js";import"./avatar-1RNhlzAH.js";function q({status:a}){const{t:s}=C(),{data:i,setData:l,post:m,processing:t,errors:o}=n({email:""}),d=r=>{r.preventDefault(),m(route("password.email"))};return e.jsxs(f,{children:[e.jsx(c,{title:s("_forgot_password_title","Forgot Password")}),e.jsx("div",{className:"flex items-center justify-center min-h-screen bg-muted/40 px-4",children:e.jsxs(_,{className:"w-full max-w-md shadow-lg border-0 sm:border",children:[e.jsxs(b,{className:"space-y-1",children:[e.jsx(w,{className:"text-2xl font-bold text-center",children:s("_reset_password","Reset Password")}),e.jsx(N,{className:"text-center",children:s("_reset_password_desc","Enter your email address and we'll send you a link to reset your password.")})]}),e.jsxs(y,{children:[a&&e.jsx("div",{className:"mb-4 p-3 rounded-md bg-green-50 text-green-600 text-sm font-medium border border-green-200",children:a}),e.jsxs("form",{onSubmit:d,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(g,{htmlFor:"email",children:s("_email_address","Email Address")}),e.jsxs("div",{className:"relative",children:[e.jsx(x,{className:"absolute start-3 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(j,{id:"email",type:"email",name:"email",placeholder:"name@example.com",value:i.email,className:"ps-9",autoFocus:!0,onChange:r=>l("email",r.target.value),required:!0})]}),o.email&&e.jsx("p",{className:"text-sm text-red-500 font-medium",children:o.email})]}),e.jsx(h,{className:"w-full",disabled:t,children:t?s("_sending_link","Sending Link..."):s("_send_reset_link","Send Password Reset Link")})]})]}),e.jsx(v,{className:"flex justify-center border-t p-4 bg-muted/20",children:e.jsxs(u,{href:route("login"),className:"flex items-center text-sm text-muted-foreground hover:text-primary transition-colors",children:[e.jsx(p,{className:"h-4 w-4 ms-2 rtl:-scale-x-100"}),s("_back_to_login","Back to Login")]})})]})})]})}export{q as default};
