import{A as g,_ as x}from"./Checkbox.vue_vue_type_script_setup_true_lang-BFlaXIOW.js";import{_ as c}from"./InputError.vue_vue_type_script_setup_true_lang-C-A2YNVC.js";import{_}from"./TextLink.vue_vue_type_script_setup_true_lang-G9Q4Haev.js";import{_ as y}from"./index-CcjNLu6f.js";import{_ as p}from"./Input.vue_vue_type_script_setup_true_lang-nLsESaiq.js";import{_ as l}from"./Label.vue_vue_type_script_setup_true_lang-BRSPv2gn.js";import{_ as w}from"./AuthLayout.vue_vue_type_script_setup_true_lang-BT-jlmDE.js";import{r as h}from"./index-BA3WRlAQ.js";import{d as v,o as i,g as d,w as a,b as t,e,h as C,a as S,t as b,j as u,aq as $,N as k,f as s,i as o}from"./app-D9-EssCM.js";import{L}from"./loader-circle-w-GClVEY.js";import"./index-CMWG4mbA.js";import"./VisuallyHidden-DG35s1YI.js";import"./useForwardExpose-MNmriUeS.js";import"./RovingFocusGroup-Diffidi3.js";import"./VisuallyHiddenInput-lUBIV-6l.js";import"./check-DPXzcvkg.js";import"./index-CKv6rp-i.js";const N={key:0,class:"mb-6 rounded-lg border border-green-200 bg-green-50 p-4 text-center text-sm font-medium text-green-700"},B={class:"space-y-5"},q={class:"space-y-2"},E={class:"space-y-2"},P={class:"flex items-center justify-between"},R={class:"flex items-center justify-between"},X=v({__name:"ClientLogin",props:{status:{},canResetPassword:{type:Boolean}},setup(V){return(n,r)=>(i(),d(w,{title:"Client Zone Login",description:"Sign in to securely access your customer documents"},{default:a(()=>[t(e(C),{title:"Client Login"}),n.status?(i(),S("div",N,b(n.status),1)):u("",!0),t(e($),k(e(g).storeClient.form(),{"reset-on-success":["password"],class:"space-y-6"}),{default:a(({errors:f,processing:m})=>[s("div",B,[s("div",q,[t(e(l),{for:"email",class:"text-sm font-medium text-gray-700"},{default:a(()=>[...r[0]||(r[0]=[o("Email address",-1)])]),_:1}),t(e(p),{id:"email",type:"email",name:"email",required:"",autofocus:"",tabindex:1,autocomplete:"email",placeholder:"Enter your email",class:"h-12 px-4 text-base border-gray-300 focus:border-blue-500 focus:ring-blue-500"}),t(c,{message:f.email},null,8,["message"])]),s("div",E,[s("div",P,[t(e(l),{for:"password",class:"text-sm font-medium text-gray-700"},{default:a(()=>[...r[1]||(r[1]=[o("Password",-1)])]),_:1}),n.canResetPassword?(i(),d(_,{key:0,href:e(h)(),class:"text-sm text-blue-600 hover:text-blue-500 font-medium",tabindex:5},{default:a(()=>[...r[2]||(r[2]=[o(" Forgot password? ",-1)])]),_:1},8,["href"])):u("",!0)]),t(e(p),{id:"password",type:"password",name:"password",required:"",tabindex:2,autocomplete:"current-password",placeholder:"Enter your password",class:"h-12 px-4 text-base border-gray-300 focus:border-blue-500 focus:ring-blue-500"}),t(c,{message:f.password},null,8,["message"])]),s("div",R,[t(e(l),{for:"remember",class:"flex items-center space-x-3 cursor-pointer"},{default:a(()=>[t(e(x),{id:"remember",name:"remember",tabindex:3,class:"h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded"}),r[3]||(r[3]=s("span",{class:"text-sm text-gray-700"},"Remember me for 30 days",-1))]),_:1})]),t(e(y),{type:"submit",class:"w-full h-12 text-base font-medium bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors duration-200 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",tabindex:4,disabled:m,"data-test":"client-login-button"},{default:a(()=>[m?(i(),d(e(L),{key:0,class:"h-5 w-5 animate-spin mr-2"})):u("",!0),o(" "+b(m?"Signing in...":"Sign in to Client Zone"),1)]),_:2},1032,["disabled"])]),r[4]||(r[4]=s("div",{class:"mt-6 text-center"},[s("p",{class:"text-sm text-gray-600"},[o(" Staff user? "),s("a",{href:"/login",class:"ml-1 font-medium text-blue-600 hover:text-blue-500"}," Staff Login ")]),s("p",{class:"mt-2 text-sm text-gray-600"},[o(" Need client access? "),s("a",{href:"/client-zone/register",class:"ml-1 font-medium text-blue-600 hover:text-blue-500"}," Register ")])],-1))]),_:1},16)]),_:1}))}});export{X as default};
