import{m as x,e as n,b as d,u as s,k as p,w as m,a as e,p as y,g as u,i as g,v as b,o as l,t as i,l as _,d as v,F as w}from"./app-iLLm8RtX.js";import{_ as h}from"./Layout-C0f8t0-G.js";/* empty css            */const k={class:"py-12 flex items-center justify-center"},V={class:"max-w-md w-full bg-white rounded-lg shadow-md p-6"},S={class:"mb-4"},A={key:0,class:"text-red-600 text-sm mt-1"},B={class:"mb-6"},C={key:0,class:"text-red-600 text-sm mt-1"},E=["disabled"],N={class:"mt-6 text-center"},j={__name:"Login",props:{errors:Object},setup(r){const o=x({email:"",access_code:""}),f=()=>{o.post("/partner/login")},{processing:c}=o;return(F,t)=>(l(),n(w,null,[d(s(p),{title:"Partner Login - ARP OS | Center Management Access"}),d(h,null,{default:m(()=>[e("div",k,[e("div",V,[t[5]||(t[5]=e("div",{class:"text-center mb-6"},[e("h1",{class:"text-2xl font-bold text-gray-900"},"Partner Login"),e("p",{class:"text-gray-600 mt-2"},"Access your center dashboard")],-1)),e("form",{onSubmit:y(f,["prevent"])},[e("div",S,[t[2]||(t[2]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Email",-1)),u(e("input",{"onUpdate:modelValue":t[0]||(t[0]=a=>s(o).email=a),type:"email",class:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-orange-500 focus:border-orange-500",placeholder:"Enter your email",required:""},null,512),[[b,s(o).email]]),r.errors.email?(l(),n("div",A,i(r.errors.email),1)):g("",!0)]),e("div",B,[t[3]||(t[3]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Access Code",-1)),u(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>s(o).access_code=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-orange-500 focus:border-orange-500",placeholder:"Enter your access code",required:""},null,512),[[b,s(o).access_code]]),r.errors.access_code?(l(),n("div",C,i(r.errors.access_code),1)):g("",!0)]),e("button",{type:"submit",disabled:s(c),class:"w-full bg-orange-600 hover:bg-orange-700 text-white font-bold py-2 px-4 rounded disabled:opacity-50"},i(s(c)?"Signing in...":"Sign In"),9,E)],32),e("div",N,[d(s(_),{href:"/",class:"text-gray-600 hover:text-gray-900 text-sm"},{default:m(()=>[...t[4]||(t[4]=[v("← Back to Home",-1)])]),_:1})])])])]),_:1})],64))}};export{j as default};
