import{j as e,b as f,H as b,L as i}from"./app-vYFZLebK.js";import{I as c}from"./InputError-Cj3POQLM.js";import{I as m}from"./InputLabel-B7-VnScM.js";import{P as g}from"./PrimaryButton-Byh_hOgr.js";import{T as d}from"./TextInput-BXnk3iOU.js";import{G as h}from"./GuestLayout-DU0lQkT0.js";import{M as j}from"./mail-CgMp0qFW.js";import{L as v}from"./lock-DcNWzbNP.js";import{L as y}from"./loader-circle-2uXAsV7z.js";import{A as w}from"./arrow-right-CmkD3lqC.js";import"./ProBackground-HBykvu3f.js";import"./ThemeSwitcher-C0dt0hQX.js";import"./fingerprint-pattern-ByR3x1eT.js";import"./cpu-CnpbxAHg.js";function N({className:r="",...a}){return e.jsx("input",{...a,type:"checkbox",className:"rounded border-cyan-500/30 bg-black/40 text-cyan-500 focus:ring-cyan-500/20 "+r})}function T({status:r,canResetPassword:a}){const{data:t,setData:o,post:p,processing:n,errors:l,reset:x}=f({email:"",password:"",remember:!1}),u=s=>{s.preventDefault(),p(route("login"),{onFinish:()=>x("password")})};return e.jsxs(h,{children:[e.jsx(b,{title:"Log In"}),r&&e.jsx("div",{className:"mb-6 p-4 text-[10px] font-bold uppercase tracking-widest text-emerald-500 bg-emerald-500/10 border border-emerald-500/20 rounded-xl",children:r}),e.jsxs("form",{onSubmit:u,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{htmlFor:"email",value:"Email Address"}),e.jsxs("div",{className:"relative group",children:[e.jsx(j,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 group-focus-within:text-cyan-500 transition-colors",size:16}),e.jsx(d,{id:"email",type:"email",name:"email",value:t.email,className:"w-full pl-12 bg-[var(--bg-main)] border-[var(--border)] focus:border-cyan-500 focus:ring-cyan-500/20 rounded-xl py-3 font-mono text-sm",autoComplete:"username",isFocused:!0,onChange:s=>o("email",s.target.value),placeholder:"name@example.com"})]}),e.jsx(c,{message:l.email})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{htmlFor:"password",value:"Password"}),e.jsxs("div",{className:"relative group",children:[e.jsx(v,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 group-focus-within:text-cyan-500 transition-colors",size:16}),e.jsx(d,{id:"password",type:"password",name:"password",value:t.password,className:"w-full pl-12 bg-[var(--bg-main)] border-[var(--border)] focus:border-cyan-500 focus:ring-cyan-500/20 rounded-xl py-3 font-mono text-sm",autoComplete:"current-password",onChange:s=>o("password",s.target.value),placeholder:"••••••••••••"})]}),e.jsx(c,{message:l.password})]}),e.jsxs("div",{className:"flex items-center justify-between mt-2",children:[e.jsxs("label",{className:"flex items-center cursor-pointer group",children:[e.jsx(N,{name:"remember",checked:t.remember,onChange:s=>o("remember",s.target.checked),className:"rounded bg-[var(--bg-main)] border-[var(--border)] text-cyan-600 focus:ring-cyan-500"}),e.jsx("span",{className:"ms-3 text-[10px] font-bold text-slate-500 uppercase tracking-widest group-hover:text-cyan-500 transition-colors select-none",children:"Remember Me"})]}),a&&e.jsx(i,{href:route("password.request"),className:"text-[9px] font-bold text-slate-500 uppercase tracking-widest hover:text-cyan-500 transition-colors",children:"Forgot Password?"})]}),e.jsx("div",{className:"pt-4",children:e.jsx(g,{className:"w-full justify-center py-4 text-[10px] tracking-[0.2em] relative overflow-hidden group",disabled:n,children:e.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[n&&e.jsx(y,{className:"animate-spin",size:14}),"Log In ",e.jsx(w,{size:14,className:"group-hover:translate-x-1 transition-transform"})]})})}),e.jsx("div",{className:"text-center pt-4 border-t border-[var(--border)]",children:e.jsxs(i,{href:route("register"),className:"text-[9px] font-bold text-slate-500 uppercase tracking-widest hover:text-white transition-colors",children:["No account? ",e.jsx("span",{className:"text-cyan-500",children:"Create an account"})]})})]})]})}export{T as default};
