import{j as e,H as d,F as l,L as i}from"./app-DC5MhnUn.js";import{c as o}from"./compiler-runtime-x4HYykYJ.js";/* empty css            */function g(){const r=o.c(3);let a;r[0]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(d,{title:"Login"}),r[0]=a):a=r[0];let s;r[1]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-[#d4af37]/10 dark:bg-[#b8941f]/20",children:e.jsx("svg",{className:"h-8 w-8 text-[#d4af37] dark:text-[#b8941f]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),e.jsx("h2",{className:"mt-6 text-center text-3xl font-bold tracking-tight text-gray-900 dark:text-white",children:"Masuk ke Akun Anda"}),e.jsx("p",{className:"mt-2 text-center text-sm text-gray-600 dark:text-gray-400",children:"Silakan login untuk melanjutkan"})]}),r[1]=s):s=r[1];let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsxs(e.Fragment,{children:[a,e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gradient-to-br from-gray-50 via-gray-100 to-gray-200 px-4 py-12 dark:from-gray-900 dark:via-gray-800 dark:to-gray-900 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"w-full max-w-md space-y-8",children:[s,e.jsx("div",{className:"rounded-lg bg-white p-8 shadow-xl dark:bg-gray-800 dark:shadow-2xl",children:e.jsx(l,{action:"/login",method:"post",className:"space-y-6",children:n})})]})})]}),r[2]=t):t=r[2],t}function n(r){const{errors:a,processing:s,clearErrors:t}=r;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"-space-y-px rounded-md shadow-sm",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"sr-only",children:"Email address"}),e.jsx("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,className:"relative block w-full rounded-t-md border-0 px-3 py-2 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-[#d4af37] dark:bg-gray-800 dark:text-white dark:ring-gray-700 dark:placeholder:text-gray-500 dark:focus:ring-[#b8941f]",placeholder:"Alamat Email",onChange:()=>t("email")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"password",className:"sr-only",children:"Password"}),e.jsx("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,className:"relative block w-full rounded-b-md border-0 px-3 py-2 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-[#d4af37] dark:bg-gray-800 dark:text-white dark:ring-gray-700 dark:placeholder:text-gray-500 dark:focus:ring-[#b8941f]",placeholder:"Password",onChange:()=>t("password")})]})]}),a.email&&e.jsx("div",{className:"rounded-md bg-red-50 p-4 dark:bg-red-900/20",children:e.jsx("p",{className:"text-sm text-red-800 dark:text-red-200",children:a.email})}),a.password&&e.jsx("div",{className:"rounded-md bg-red-50 p-4 dark:bg-red-900/20",children:e.jsx("p",{className:"text-sm text-red-800 dark:text-red-200",children:a.password})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("input",{id:"remember",name:"remember",type:"checkbox",className:"h-4 w-4 rounded border-gray-300 text-[#d4af37] focus:ring-[#d4af37] dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800"}),e.jsx("label",{htmlFor:"remember",className:"ml-2 block text-sm text-gray-900 dark:text-gray-300",children:"Ingat saya"})]}),e.jsx("div",{className:"text-sm",children:e.jsx(i,{href:"/forgot-password",className:"font-semibold text-[#d4af37] hover:text-[#b8941f] dark:text-[#b8941f] dark:hover:text-[#9a7d15] transition-colors duration-200",children:"Lupa password?"})})]}),e.jsx("div",{children:e.jsx("button",{type:"submit",disabled:s,className:"group relative flex w-full justify-center rounded-md bg-[#d4af37] px-3 py-2 text-sm font-semibold text-white hover:bg-[#b8941f] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#d4af37] disabled:opacity-50 disabled:cursor-not-allowed dark:bg-[#b8941f] dark:hover:bg-[#9a7d15] dark:focus-visible:outline-[#b8941f] transition-colors duration-200",children:s?e.jsxs("span",{className:"flex items-center",children:[e.jsxs("svg",{className:"mr-2 h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Memproses..."]}):"Masuk"})})]})}export{g as default};
