import{T as c,h as f,w as r,a,u as e,Z as g,b as o,j as w,n as x,f as i,t as _,i as b,o as v}from"./app-z_grtNg1.js";import{_ as V}from"./GuestLayout-BoR5OWsq.js";import{_ as n,a as m}from"./TextInput-C3QbKAv6.js";import{_ as d}from"./InputLabel-Dmit8LpD.js";import{P as y}from"./PrimaryButton-i7WPAeR-.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const k={class:"text-center"},U={__name:"Login",setup(S){const s=c({email:"",password:"",remember:!1}),u=()=>{s.post(route("admin.login.store"),{onFinish:()=>s.reset("password")})};return(p,t)=>(v(),f(V,null,{default:r(()=>[a(e(g),{title:"Admin Login"}),t[3]||(t[3]=o("div",{class:"mb-5 rounded-xl border border-slate-200 bg-slate-50 p-4"},[o("div",{class:"text-xs font-semibold uppercase tracking-[0.16em] text-slate-500"},"Admin Portal"),o("div",{class:"mt-1 text-sm text-slate-700"},"Sign in with an account that has admin access permission.")],-1)),o("form",{onSubmit:w(u,["prevent"]),class:"space-y-4"},[o("div",null,[a(d,{for:"email",value:"Email"}),a(n,{id:"email",type:"email",class:"mt-1 block w-full rounded-xl",modelValue:e(s).email,"onUpdate:modelValue":t[0]||(t[0]=l=>e(s).email=l),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),a(m,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),o("div",null,[a(d,{for:"password",value:"Password"}),a(n,{id:"password",type:"password",class:"mt-1 block w-full rounded-xl",modelValue:e(s).password,"onUpdate:modelValue":t[1]||(t[1]=l=>e(s).password=l),required:"",autocomplete:"current-password"},null,8,["modelValue"]),a(m,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),a(y,{class:x(["w-full justify-center rounded-xl",{"opacity-25":e(s).processing}]),disabled:e(s).processing},{default:r(()=>[i(_(e(s).processing?"Signing in...":"Sign in to Admin"),1)]),_:1},8,["class","disabled"]),o("div",k,[a(e(b),{href:p.route("login"),class:"text-sm text-slate-600 hover:text-slate-900"},{default:r(()=>[...t[2]||(t[2]=[i(" User login ",-1)])]),_:1},8,["href"])])],32)]),_:1}))}};export{U as default};
