import{u as n,j as e,H as d}from"./app-DiaC3P1v.js";/* empty css            */function h(){const{data:l,setData:r,post:i,processing:c,errors:a}=n({email:"",password:"",remember:!1}),m=s=>{s.preventDefault(),i(route("login"))};return e.jsxs(e.Fragment,{children:[e.jsx(d,{title:"Login"}),e.jsx("div",{className:"container mt-5",children:e.jsx("div",{className:"row justify-content-center",children:e.jsx("div",{className:"col-md-6",children:e.jsx("div",{className:"card shadow",children:e.jsxs("div",{className:"card-body",children:[e.jsx("h3",{className:"mb-4 text-center",children:"Login"}),e.jsxs("form",{onSubmit:m,children:[e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:"form-label",children:"Email"}),e.jsx("input",{type:"email",className:`form-control ${a.email?"is-invalid":""}`,value:l.email,onChange:s=>r("email",s.target.value)}),a.email&&e.jsx("div",{className:"invalid-feedback",children:a.email})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:"form-label",children:"Password"}),e.jsx("input",{type:"password",className:`form-control ${a.password?"is-invalid":""}`,value:l.password,onChange:s=>r("password",s.target.value)}),a.password&&e.jsx("div",{className:"invalid-feedback",children:a.password})]}),e.jsxs("div",{className:"form-check mb-3",children:[e.jsx("input",{className:"form-check-input",type:"checkbox",checked:l.remember,onChange:s=>r("remember",s.target.checked)}),e.jsx("label",{className:"form-check-label",children:"Remember Me"})]}),e.jsx("button",{type:"submit",className:"btn btn-primary w-100",disabled:c,children:"Login"})]})]})})})})})]})}export{h as default};
