1import{j as e}from"./vendor-wHC2ntYA.js";import{C as f}from"./Checkbox-kRsL4VU_.js";import{I as p}from"./InputError-sYI1RUTE.js";import{I as m}from"./InputLabel-Ci6p2K74.js";import{P as h}from"./PrimaryButton-C8LzVF4J.js";import{S as j}from"./SocialLoginButtons-kzsRMxBE.js";import{T as n}from"./TextInput-bWCKf1zE.js";import{G as g}from"./GuestLayout-C0fnNcgr.js";import{u as b,H as v,L as i}from"./inertia-BxUlTYdw.js";function D({status:o,canResetPassword:l}){const{data:r,setData:t,post:c,processing:d,errors:a,reset:u}=b({email:"",password:"",remember:!0}),x=s=>{s.preventDefault(),c(route("login"),{onFinish:()=>u("password")})};return e.jsxs(g,{children:[e.jsx(v,{title:"Log in"}),o&&e.jsx("div",{className:"mb-4 text-sm font-medium text-green-600",children:o}),e.jsx("h1",{className:"mb-6 text-center text-2xl font-serif text-zinc-900",children:"Log in"}),a.email&&e.jsx("div",{className:"mb-4 rounded-card border border-red-200 bg-red-50 p-3 text-center text-sm text-red-700",children:a.email}),e.jsx(j,{}),e.jsxs("form",{onSubmit:x,children:[e.jsxs("div",{children:[e.jsx(m,{htmlFor:"email",value:"Email"}),e.jsx(n,{id:"email",type:"email",name:"email",value:r.email,className:"mt-1 block w-full",autoComplete:"username",isFocused:!0,onChange:s=>t("email",s.target.value)})]}),e.jsxs("div",{className:"mt-4",children:[e.jsx(m,{htmlFor:"password",value:"Password"}),e.jsx(n,{id:"password",type:"password",name:"password",value:r.password,className:"mt-1 block w-full",autoComplete:"current-password",onChange:s=>t("password",s.target.value)}),e.jsx(p,{message:a.password,className:"mt-2"})]}),e.jsx("div",{className:"mt-4 block",children:e.jsxs("label",{className:"flex items-center",children:[e.jsx(f,{name:"remember",checked:r.remember,onChange:s=>t("remember",s.target.checked)}),e.jsx("span",{className:"ms-2 text-sm text-zinc-600",children:"Remember me"})]})}),e.jsxs("div",{className:"mt-4 flex items-center justify-end",children:[l&&e.jsx(i,{href:route("password.request"),className:"rounded-md text-sm text-zinc-600 underline hover:text-zinc-900 focus:outline-none focus:ring-2 focus:ring-zinc-500 focus:ring-offset-2",children:"Forgot your password?"}),e.jsx(h,{className:"ms-4",disabled:d,children:"Log in"})]})]}),e.jsxs("div",{className:"mt-6 text-center text-sm text-zinc-600",children:["Don't have an account?"," ",e.jsx(i,{href:route("register"),className:"rounded-md underline hover:text-zinc-900 focus:outline-none focus:ring-2 focus:ring-zinc-500 focus:ring-offset-2",children:"Register"})]})]})}export{D 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.