1import{u as n,d,j as e,H as c,L as m}from"./app-Lg2tb55k.js";function u(){const s=n({email:""}),{flash:l}=d().props,i=l?.error,t=l?.success;function o(r){r.preventDefault(),s.post("/admin/forgot-password")}const a=i??s.errors.email??null;return e.jsxs(e.Fragment,{children:[e.jsx(c,{title:"Mot de passe oublié â Admin Axiom"}),e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-bg px-4",children:e.jsxs("div",{className:"w-full max-w-sm space-y-8",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("img",{src:"/logo-axiom-blanc.png",alt:"Axiom",className:"h-8 w-auto"})}),e.jsxs("div",{className:"rounded-xl border border-border bg-bg-surface p-6",children:[e.jsx("h1",{className:"mb-2 text-center text-lg font-semibold text-text",children:"Mot de passe oublié ?"}),e.jsx("p",{className:"mb-6 text-center text-sm text-text-muted",children:"Entrez votre email et nous vous enverrons un lien pour réinitialiser votre mot de passe."}),t&&e.jsxs("div",{role:"status","aria-live":"polite",className:"mb-4 flex items-start gap-2 rounded-lg border border-emerald-500/20 bg-emerald-500/10 px-4 py-3 text-sm text-emerald-400",children:[e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"mt-0.5 shrink-0","aria-hidden":"true",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})}),e.jsx("span",{children:t})]}),a&&!t&&e.jsxs("div",{role:"alert","aria-live":"polite",className:"mb-4 flex items-start gap-2 rounded-lg border border-red-500/20 bg-red-500/10 px-4 py-3 text-sm text-red-400",children:[e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"mt-0.5 shrink-0","aria-hidden":"true",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),e.jsx("span",{children:a})]}),e.jsxs("form",{onSubmit:o,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"mb-1.5 block text-sm font-medium text-text-secondary",children:"Email"}),e.jsx("input",{id:"email",type:"email",autoComplete:"email",autoFocus:!0,required:!0,value:s.data.email,onChange:r=>s.setData("email",r.target.value),"aria-invalid":!!s.errors.email,className:"w-full rounded-lg border border-border bg-bg-elevated px-3.5 py-2.5 text-sm text-text outline-none transition-colors focus:border-accent"})]}),e.jsx("button",{type:"submit",disabled:s.processing,className:"w-full rounded-lg bg-accent-hover px-4 py-2.5 text-sm font-medium text-white transition-colors hover:bg-[#1D4ED8] disabled:opacity-50",children:s.processing?"Envoiâ¦":"Envoyer le lien"})]}),e.jsx("div",{className:"mt-6 text-center",children:e.jsx(m,{href:"/admin/login",className:"text-sm text-text-muted underline-offset-4 transition-colors hover:text-text hover:underline",children:"Retour à la connexion"})})]})]})})]})}export{u as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.