;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="1e340f6c-0481-851b-26f2-ac12d25983c3")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,594542,e=>{"use strict";var r=e.i(319181),s=e.i(595052),t=e.i(121169),i=e.i(190642);function n(){let[e,n]=(0,s.useState)(""),[a,l]=(0,s.useState)(""),[o,c]=(0,s.useState)(""),[d,u]=(0,s.useState)(!1);async function m(r){r.preventDefault(),u(!0),c("");let s=await (0,t.signIn)("credentials",{email:e,password:a,redirect:!1});s?.error?(c("Invalid email or password."),u(!1)):window.location.href="/app"}return(0,r.jsx)("div",{className:"min-h-screen bg-[#0a0a0b] flex items-center justify-center px-4",children:(0,r.jsxs)("div",{className:"w-full max-w-sm",children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-zinc-100 text-center mb-2",children:"Sign in to GetSignalHooks"}),(0,r.jsxs)("p",{className:"text-zinc-500 text-center text-sm mb-8",children:["Don't have an account?"," ",(0,r.jsx)(i.default,{href:"/register",className:"text-amber-400 hover:underline",children:"Create one"})]}),o&&(0,r.jsx)("div",{className:"bg-red-900/30 border border-red-800 text-red-300 px-4 py-3 rounded-lg mb-4 text-sm",children:o}),(0,r.jsxs)("form",{onSubmit:m,className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"login-email",className:"block text-sm text-zinc-400 mb-1.5",children:"Email"}),(0,r.jsx)("input",{id:"login-email",type:"email",value:e,onChange:e=>n(e.target.value),required:!0,"aria-required":"true",className:"w-full bg-zinc-900 border border-zinc-700 rounded-lg px-4 py-2.5 text-zinc-100 placeholder-zinc-600 focus:outline-none focus:border-amber-500 focus:ring-1 focus:ring-amber-500/30",placeholder:"you@company.com"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"login-password",className:"block text-sm text-zinc-400 mb-1.5",children:"Password"}),(0,r.jsx)("input",{id:"login-password",type:"password",value:a,onChange:e=>l(e.target.value),required:!0,"aria-required":"true",className:"w-full bg-zinc-900 border border-zinc-700 rounded-lg px-4 py-2.5 text-zinc-100 placeholder-zinc-600 focus:outline-none focus:border-amber-500 focus:ring-1 focus:ring-amber-500/30",placeholder:"********"})]}),(0,r.jsx)("button",{type:"submit",disabled:d,className:"w-full bg-amber-600 hover:bg-amber-500 disabled:opacity-50 text-white font-medium py-2.5 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-500 focus-visible:ring-offset-2 focus-visible:ring-offset-[#0a0a0b]",children:d?"Signing in...":"Sign in"}),(0,r.jsx)("p",{className:"text-center",children:(0,r.jsx)(i.default,{href:"/forgot-password",className:"text-sm text-zinc-500 hover:text-amber-400 transition-colors",children:"Forgot your password?"})})]})]})})}e.s(["default",()=>n])}]); //# debugId=1e340f6c-0481-851b-26f2-ac12d25983c3 //# sourceMappingURL=494cd74c3d3302e4.js.map