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