import{C as r,l as a,n as t,t as i,x as n,p as x,q as g,v as b,u as o,A as c,B as d,D as u,_ as k,g as v}from"./Button-d1z8wTLU.js";import{u as y,l as h,a as z}from"./app-taG9CRVs.js";const w={class:"flex min-h-screen flex-col items-center justify-center bg-zinc-50 px-4 dark:bg-zinc-950"},_={class:"w-full max-w-sm space-y-6"},V={key:0,class:"rounded-xl bg-emerald-50 px-4 py-3 text-sm text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-300"},B={key:0,class:"mt-1.5 text-sm text-red-600 dark:text-red-400"},E={class:"text-center"},F={__name:"ForgotPassword",setup(N){const m=z(),l=v(()=>m.props.flash?.status??null),s=y({email:""});function f(){s.post("/esqueci-senha",{preserveScroll:!0,onFinish:()=>s.reset("email")})}return(q,e)=>(r(),a("div",w,[t("div",_,[e[3]||(e[3]=t("img",{src:"https://cdn.getfy.cloud/collapsed-logo.png",alt:"Getfy",class:"mx-auto h-12 w-auto object-contain"},null,-1)),e[4]||(e[4]=t("h1",{class:"text-center text-2xl font-bold text-zinc-900 dark:text-white"},"Recuperar senha",-1)),e[5]||(e[5]=t("p",{class:"text-center text-sm text-zinc-600 dark:text-zinc-400"}," Informe seu e-mail para receber o link de redefinição. ",-1)),l.value?(r(),a("div",V,i(l.value),1)):n("",!0),t("form",{class:"space-y-5",onSubmit:x(f,["prevent"])},[t("div",null,[e[1]||(e[1]=t("label",{for:"email",class:"block text-sm font-medium text-zinc-700 dark:text-zinc-300"},"E-mail",-1)),g(t("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=p=>o(s).email=p),type:"email",autocomplete:"email",required:"",class:"mt-1.5 block w-full rounded-xl border border-zinc-300 dark:border-zinc-600 bg-white dark:bg-zinc-900 px-4 py-3 text-zinc-900 dark:text-white placeholder-zinc-500 shadow-sm transition focus:border-[var(--color-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)]/20",placeholder:"seu@email.com"},null,512),[[b,o(s).email]]),o(s).errors.email?(r(),a("p",B,i(o(s).errors.email),1)):n("",!0)]),c(k,{type:"submit",class:"w-full !bg-[#c8fa64] !text-zinc-900 hover:!opacity-90",disabled:o(s).processing},{default:d(()=>[u(i(o(s).processing?"Enviando…":"Enviar link"),1)]),_:1},8,["disabled"])],32),t("p",E,[c(o(h),{href:"/login",class:"text-sm font-medium text-[#c8fa64] hover:underline focus:outline-none focus:ring-2 focus:ring-[#c8fa64]/30 focus:ring-offset-2 dark:focus:ring-offset-zinc-950 rounded"},{default:d(()=>[...e[2]||(e[2]=[u(" Voltar ao login ",-1)])]),_:1})])])]))}};export{F as default};
