1import{j as e,G as g,r as n,S as b,x as c}from"./app-Mnt2IEGe.js";import{A as w}from"./ApplicationLogo-JvKRx6b1.js";import{T as x,I as d}from"./TextInput-DZZVw8So.js";import{I as p}from"./InputLabel-BswbtwQH.js";import{P as N}from"./PrimaryButton-CuAryFCM.js";import{L as h}from"./lock-BIbd8j0O.js";import{S as v}from"./shield-Da3uiB5y.js";import{M as E}from"./mail-Ce-sk81h.js";import{E as S}from"./eye-off-0dWDFI1-.js";import{E as k}from"./eye-D7lGIL4B.js";import{U as C}from"./user-ad0RTXxq.js";function L({className:t="",...a}){return e.jsx("input",{...a,type:"checkbox",className:"rounded border-gray-300 text-primary shadow-sm focus:ring-indigo-500 "+t})}function R({status:t,canResetPassword:a}){const{data:r,setData:l,post:u,processing:i,errors:o,reset:f}=g({email:"",password:"",remember:!1}),[m,y]=n.useState(!1);n.useEffect(()=>()=>{f("password")},[]);const j=s=>{s.preventDefault(),u(route("login"))};return e.jsxs(e.Fragment,{children:[e.jsx(b,{title:"Log in"}),e.jsxs("div",{"aria-hidden":!0,className:"fixed inset-0 pointer-events-none z-0",children:[e.jsx("svg",{className:"absolute -top-48 -left-40 w-[380px] h-[380px] opacity-10",viewBox:"0 0 400 400",fill:"none",children:e.jsx("rcle",{cx:"200",cy:"200",r:"200",fill:"#2#2e3192"})}),e.jsx("svg",{className:"absolute top-32 -right-60 w-[340px] h-[340px] opacity-15",viewBox:"0 0 400 400",fill:"none",children:e.jsx("rcle",{cx:"200",cy:"200",r:"200",fill:"#6#6d71d3"})})]}),e.jsxs("div",{className:"relative z-10 min-h-screen flex flex-col items-center justify-center bg-white font-sans py-6 px-2",children:[e.jsx("div",{className:"mb-6 flex justify-center",children:e.jsx(w,{className:"w-36 h-10 object-contain"})}),e.jsxs("div",{className:"w-full max-w-md animate-fade-in-up",children:[e.jsxs("div",{className:"bg-white border border-gray-200 rounded-2xl shadow-xl px-7 py-8 sm:px-10 sm:py-10",children:[e.jsxs("div",{className:"flex flex-col gap-2 mb-5 text-center",children:[e.jsx("div",{className:"flex items-center justify-center mb-2",children:e.jsx(h,{className:"w-10 h-10 text-primary bg-primary/10 rounded-full p-2.5 shadow-sm"})}),e.jsx("h1",{className:"text-2xl sm:text-3xl font-extrabold text-primary tracking-tight",children:"Login to Haslab"}),e.jsx("p",{className:"text-base text-gray-600",children:"Access your orders, rewards, and more."})]}),e.jsxs("div",{className:"mb-5 p-3 sm:p-4 rounded-xl bg-secondary-light border border-primary/10 flex items-center gap-3 text-primary text-[15px] font-semibold justify-center shadow-sm",children:[e.jsx(v,{className:"w-5 h-5 mr-1 text-yellow-400"}),"Secure, private & ethical. Data encrypted server-side."]}),t&&e.jsx("div",{className:"mb-4 font-medium text-base text-green-600 text-center",children:t}),e.jsxs("form",{onSubmit:j,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx(p,{htmlFor:"email",value:"Email Address",className:"text-gray-700 font-medium"}),e.jsxs("div",{className:"relative mt-1",children:[e.jsx(E,{className:"w-5 h-5 text-primary absolute left-3 top-1/2 -translate-y-1/2"}),e.jsx(x,{id:"email",type:"email",name:"email",value:r.email,className:"pl-11 w-full text-base",autoComplete:"username",isFocused:!0,onChange:s=>l("email",s.target.value),placeholder:"[email protected]"})]}),e.jsx(d,{message:o.email,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(p,{htmlFor:"password",value:"Password",className:"text-gray-700 font-medium"}),e.jsxs("div",{className:"relative mt-1",children:[e.jsx(h,{className:"w-5 h-5 text-primary absolute left-3 top-1/2 -translate-y-1/2"}),e.jsx(x,{id:"password",type:m?"text":"password",name:"password",value:r.password,className:"pl-11 pr-11 w-full text-base",autoComplete:"current-password",onChange:s=>l("password",s.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"}),e.jsx("button",{type:"button",onClick:()=>y(s=>!s),className:"absolute right-3 top-1/2 -translate-y-1/2 text-primary hover:text-primary-light focus:outline-none transition",tabIndex:-1,children:m?e.jsx(S,{className:"w-5 h-5"}):e.jsx(k,{className:"w-5 h-5"})})]}),e.jsx(d,{message:o.password,className:"mt-2"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("label",{className:"flex items-center cursor-pointer select-none",children:[e.jsx(L,{name:"remember",checked:r.remember,onChange:s=>l("remember",s.target.checked)}),e.jsx("span",{className:"ml-2 text-sm text-gray-700",children:"Remember me"})]}),a&&e.jsx(c,{href:route("password.request"),className:"text-sm font-medium text-primary hover:text-primary-light hover:underline transition",children:"Forgot password?"})]}),e.jsx("div",{children:e.jsx(N,{className:"w-full justify-center py-3 bg-primary hover:bg-primary-light text-white font-bold text-base rounded-xl transition shadow-md",disabled:i,children:i?"Signing in...":"Log in"})})]}),e.jsx("div",{className:"mt-6 text-center",children:e.jsxs("p",{className:"text-sm text-gray-600",children:["New to Haslab?"," ",e.jsx(c,{href:route("register"),className:"font-medium text-primary hover:text-primary-light hover:underline",children:"Create an account"})]})})]}),e.jsxs("div",{className:"mt-7 flex flex-col gap-1 w-full max-w-md items-center",children:[e.jsxs("div",{className:"flex gap-2 text-gray-500 text-xs",children:[e.jsx(C,{className:"w-4 h-4 text-gray-400"}),"Trusted by thousands of homeopathic professionals since 1962"]}),e.jsx("div",{className:"flex gap-2 text-gray-500 text-xs",children:"24Ã7 pharmacist support ⢠Built with care by Haslab"})]})]})]}),e.jsx("style",{children:` 2 @keyframes fade-in-up { 3 0% { opacity: 0; transform: translateY(36px);} 4 85%{ opacity: 0.95; transform: translateY(-5px);} 5 100%{ opacity: 1; transform: translateY(0);} 6 } 7 .animate-fade-in-up { animation: fade-in-up 0.7s cubic-bezier(.32,1.56,.44,1) both;} 8 `})]})}
8export{R as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.