import{m as p,e as l,b as n,u as o,k as g,w as x,a as e,p as y,g as m,i as u,v as c,o as d,t as i,d as w,F as v}from"./app-iLLm8RtX.js";import{_}from"./Layout-C0f8t0-G.js";/* empty css            */const h={class:"py-12 flex items-center justify-center"},k={class:"max-w-md w-full bg-white rounded-lg shadow-md p-6"},S={class:"mb-4"},V={key:0,class:"text-red-600 text-sm mt-1"},E={class:"mb-4"},P={key:0,class:"text-red-600 text-sm mt-1"},A={type:"submit",disabled:!0,class:"w-full bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-4 rounded disabled:opacity-50 cursor-not-allowed"},j={__name:"Login",props:{errors:Object},setup(r){const s=p({email:"",state_code:""}),f=()=>{s.post("/student/login")},{processing:b}=s;return(N,t)=>(d(),l(v,null,[n(o(g),{title:"Student Portal - ARP OS | Access Your Learning Profile"}),n(_,null,{default:x(()=>[e("div",h,[e("div",k,[t[5]||(t[5]=e("div",{class:"text-center mb-6"},[e("h1",{class:"text-2xl font-bold text-gray-900"},"Student Portal"),e("p",{class:"text-gray-600 mt-2"},"Enter your email and state code to access your profile")],-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)),m(e("input",{"onUpdate:modelValue":t[0]||(t[0]=a=>o(s).email=a),type:"email",class:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500",placeholder:"Enter your email",required:""},null,512),[[c,o(s).email]]),r.errors.email?(d(),l("div",V,i(r.errors.email),1)):u("",!0)]),e("div",E,[t[3]||(t[3]=e("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"State Code",-1)),m(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>o(s).state_code=a),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500",placeholder:"Enter your state code",required:""},null,512),[[c,o(s).state_code]]),r.errors.state_code?(d(),l("div",P,i(r.errors.state_code),1)):u("",!0)]),e("button",A,[t[4]||(t[4]=e("i",{class:"fas fa-lock mr-1"},null,-1)),w(" "+i(o(b)?"Accessing...":"Access Profile"),1)])],32)])])]),_:1})],64))}};export{j as default};
