1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5501],{20063:(e,t,a)=>{"use strict";var n=a(47260);a.o(n,"notFound")&&a.d(t,{notFound:function(){return n.notFound}}),a.o(n,"useParams")&&a.d(t,{useParams:function(){return n.useParams}}),a.o(n,"usePathname")&&a.d(t,{usePathname:function(){return n.usePathname}}),a.o(n,"useRouter")&&a.d(t,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(t,{useSearchParams:function(){return n.useSearchParams}}),a.o(n,"useSelectedLayoutSegments")&&a.d(t,{useSelectedLayoutSegments:function(){return n.useSelectedLayoutSegments}})},42765:(e,t,a)=>{Promise.resolve().then(a.bind(a,43420))},43420:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var n=a(95155),r=a(12115),s=a(36489),i=a(20063),u=a(98698);function l(){var e;let t=(0,i.useRouter)(),a=null!=(e=(0,i.useSearchParams)().get("callbackUrl"))?e:"/cms",[l,o]=(0,r.useState)(""),[c,d]=(0,r.useState)(""),[h,m]=(0,r.useState)("idle"),[f,x]=(0,r.useState)(null),[v,g]=(0,r.useState)(!1);async function p(e){var n;e.preventDefault(),x(null),m("submitting");let r=await (0,s.signIn)("credentials",{email:l,password:c,callbackUrl:a,redirect:!1});return(m("idle"),r)?r.error?void("EMAIL_NOT_VERIFIED"===r.error?(x("This email isn't verified yet. Check your inbox for the confirmation link."),g(!0)):"RATE_LIMITED"===r.error?x("Too many attempts. Try again in 15 minutes."):x("Email or password didn't match. Try again.")):void(t.push(null!=(n=r.url)?n:a),t.refresh()):void x("Login service unreachable. Try again in a moment.")}return(0,n.jsxs)("form",{onSubmit:p,noValidate:!0,children:[(0,n.jsx)(u.AuthHeader,{title:"Sign in",description:"Welcome back. Enter your email and password to continue."}),f?(0,n.jsx)(u.Banner,{tone:"error",children:f}):null,v?(0,n.jsx)(u.Aside,{children:(0,n.jsx)(u.InlineLink,{href:"/verify-email/resend",children:"Send me a new confirmation link â"})}):null,(0,n.jsxs)("div",{className:"space-y-3",style:{animation:"auth-rise 0.55s ease-out 0.08s both"},children:[(0,n.jsx)(u.A_,{label:"Email",type:"email",name:"email",autoComplete:"email",required:!0,value:l,onChange:e=>o(e.target.value),placeholder:"[email protected]"}),(0,n.jsx)(u.A_,{label:"Password",type:"password",name:"password",autoComplete:"current-password",required:!0,value:c,onChange:e=>d(e.target.value),placeholder:"at least 8 characters"})]}),(0,n.jsx)(u.b7,{pending:"submitting"===h,children:"Sign in"}),(0,n.jsxs)(u.Aside,{children:[(0,n.jsx)(u.InlineLink,{href:"/forgot-password",children:"Forgot password"}),(0,n.jsx)(u.InlineLink,{href:"/signup",children:"Create account â"})]})]})}},98698:(e,t,a)=>{"use strict";a.d(t,{A_:()=>i,Aside:()=>o,AuthHeader:()=>s,Banner:()=>c,FS:()=>l,InlineLink:()=>d,b7:()=>u});var n=a(95155),r=a(12115);function s(e){let{title:t,description:a}=e;return(0,n.jsxs)("header",{className:"mb-8",style:{animation:"auth-rise 0.55s ease-out both"},children:[(0,n.jsx)("h1",{className:"font-[family-name:var(--font-auth-sans)] text-[clamp(1.75rem,3vw,2.25rem)] font-semibold leading-[1.1] tracking-[-0.02em] text-[var(--auth-fg)]",children:t}),a?(0,n.jsx)("p",{className:"mt-3 max-w-[42ch] text-[14px] leading-[1.55] text-[var(--auth-muted)]",children:a}):null]})}function i(e){let{label:t,hint:a,error:s,...i}=e,u=(0,r.useId)(),[l,o]=(0,r.useState)(!1),c=!!s;return(0,n.jsxs)("div",{className:"group",children:[(0,n.jsxs)("div",{className:"mb-1.5 flex items-baseline justify-between",children:[(0,n.jsx)("label",{htmlFor:u,className:"text-[13px] font-medium text-[var(--auth-fg)]",children:t}),a?(0,n.jsx)("span",{className:"text-[12px] text-[var(--auth-muted)]",children:a}):null]}),(0,n.jsx)("div",{className:"rounded-md border bg-[var(--auth-surface)] transition-colors",style:{borderColor:c?"var(--auth-danger)":l?"var(--auth-accent)":"var(--auth-line)",boxShadow:l?"0 0 0 3px var(--auth-accent-soft)":"none"},children:(0,n.jsx)("input",{...i,id:u,onFocus:e=>{var t;o(!0),null==(t=i.onFocus)||t.call(i,e)},onBlur:e=>{var t;o(!1),null==(t=i.onBlur)||t.call(i,e)},className:"block w-full bg-transparent px-3.5 py-2.5 text-[14px] leading-6 text-[var(--auth-fg)] placeholder:text-[var(--auth-muted)]/60 focus:outline-none"})}),c?(0,n.jsx)("span",{className:"mt-1.5 block text-[12px] leading-relaxed text-[var(--auth-danger)]",children:s}):null]})}function u(e){let{children:t,pending:a,...r}=e;return(0,n.jsxs)("button",{type:"submit",...r,disabled:a||r.disabled,className:"mt-6 flex w-full items-center justify-center gap-2 rounded-md bg-[var(--auth-accent)] px-5 py-2.5 text-[14px] font-medium text-[var(--auth-accent-fg)] transition-opacity duration-150 hover:opacity-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--auth-accent)] focu
1s-visible:ring-offset-2 focus-visible:ring-offset-[var(--auth-bg)] disabled:cursor-not-allowed disabled:opacity-60",children:[a?(0,n.jsx)("span",{"aria-hidden":!0,className:"inline-block h-1.5 w-1.5 animate-[auth-blink_0.8s_ease-in-out_infinite] rounded-full bg-[var(--auth-accent-fg)]"}):null,(0,n.jsx)("span",{children:a?"Signing inâ¦":t})]})}function l(e){let{children:t,...a}=e;return(0,n.jsx)("a",{...a,className:"mt-6 flex w-full items-center justify-center rounded-md bg-[var(--auth-accent)] px-5 py-2.5 text-[14px] font-medium text-[var(--auth-accent-fg)] transition-opacity duration-150 hover:opacity-90",children:t})}function o(e){let{children:t}=e;return(0,n.jsx)("div",{className:"mt-6 flex items-center justify-between gap-4 text-[13px] text-[var(--auth-muted)]",style:{animation:"auth-rise 0.55s ease-out 0.15s both"},children:t})}function c(e){let{tone:t,children:a}=e,r={info:{fg:"var(--auth-fg)",border:"var(--auth-accent)",bg:"var(--auth-accent-soft)"},error:{fg:"var(--auth-danger)",border:"var(--auth-danger)",bg:"var(--auth-danger-soft)"},success:{fg:"var(--auth-success)",border:"var(--auth-success)",bg:"var(--auth-success-soft)"}}[t];return(0,n.jsx)("div",{role:"error"===t?"alert":"status",className:"mb-5 rounded-md border-l-2 px-3.5 py-2.5 text-[13px] leading-[1.5]",style:{borderColor:r.border,background:r.bg,color:r.fg},children:a})}function d(e){let{children:t,...a}=e;return(0,n.jsx)("a",{...a,className:"text-[var(--auth-accent)] underline-offset-[4px] hover:underline",children:t})}}},e=>{e.O(0,[6489,8441,4696,7358],()=>e(e.s=42765)),_N_E=e.O()}]);
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.