1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{36429:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return n(71632)}])},32142:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var i=n(85893),r=n(41664),s=n.n(r),a=n(70987);let l={primary:"bg-indigo-600 text-white shadow-funnel-cta hover:bg-indigo-700 active:scale-[.98]",secondary:"bg-white text-stone-900 border border-stone-200 shadow-funnel-card hover:bg-stone-50 active:scale-[.98]",ghost:"bg-transparent text-stone-600 hover:bg-stone-100 hover:text-stone-900 active:scale-[.98]",destructive:"bg-red-500 text-white hover:bg-red-600 active:scale-[.98]",outline:"bg-transparent text-indigo-600 border border-indigo-200 hover:bg-indigo-50 active:scale-[.98]"},o={sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-sm",lg:"px-6 py-4 text-base"};function d(e){let{children:t,variant:n="primary",size:r="md",href:d,className:c="",disabled:u=!1,type:m="button",fullWidth:g=!1,...x}=e;if(d){let e=/^(https?:|mailto:|tel:|sms:)/.test(d),u=(0,a.cn)("inline-flex items-center justify-center gap-2 rounded-full font-bold transition disabled:opacity-40 disabled:pointer-events-none disabled:active:scale-100",l[n]||l.primary,o[r]||o.md,g&&"w-full",c);if(e){let e=/^https?:/.test(d);return(0,i.jsx)("a",{href:d,...e?{target:"_blank",rel:"noopener noreferrer"}:{},className:u,...x,children:t})}return(0,i.jsx)(s(),{href:d,className:u,...x,children:t})}return(0,i.jsx)("button",{type:m,disabled:u,className:(0,a.cn)("inline-flex items-center justify-center gap-2 rounded-full font-bold transition disabled:opacity-40 disabled:pointer-events-none disabled:active:scale-100",l[n]||l.primary,o[r]||o.md,g&&"w-full",c),...x,children:t})}},39517:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(85893),r=n(70987);let s={solid:"bg-white border border-stone-200 shadow-funnel-card",glass:"bg-glass border-glass",soft:"bg-white/80 border border-stone-200/80",flat:"bg-transparent"};function a(e){let{as:t="div",variant:n="solid",className:a="",children:l,...o}=e;return(0,i.jsx)(t,{className:(0,r.cn)("rounded-2xl",s[n]||s.solid,a),...o,children:l})}},70987:function(e,t,n){"use strict";n.d(t,{cn:function(){return s}});var i=n(90512),r=n(98388);function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.m6)((0,i.W)(t))}},46212:function(e,t,n){"use strict";n.d(t,{ZP:function(){return d},p8:function(){return c},q6:function(){return u}});var i=n(85893),r=n(9008),s=n.n(r),a=n(41664),l=n.n(a),o=n(39517);function d(e){let{title:t,heading:n,subtitle:r,children:a,footer:d}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s(),{children:(0,i.jsx)("title",{children:t})}),(0,i.jsxs)("div",{className:"relative flex min-h-[100dvh] w-full justify-center overflow-hidden bg-ivory px-4 py-10 text-stone-900 sm:px-6 sm:py-16",children:[(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -left-24 top-0 h-72 w-72 rounded-full bg-[radial-gradient(circle,rgba(79,70,229,0.12)_0%,rgba(251,249,244,0)_70%)]"}),(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -right-16 bottom-10 h-64 w-64 rounded-full bg-[radial-gradient(circle,rgba(52,211,153,0.12)_0%,transparent_70%)]"}),(0,i.jsxs)("div",{className:"relative z-10 flex w-full max-w-md flex-col",children:[(0,i.jsxs)("div",{className:"text-center motion-safe:animate-funnel-in",children:[(0,i.jsxs)(l(),{href:"/",className:"inline-block text-3xl font-black tracking-tight text-stone-900 sm:text-4xl",children:["LangBuddy",(0,i.jsx)("span",{className:"font-serif italic text-indigo-600",children:".ai"})]}),(0,i.jsx)("h1",{className:"mt-8 text-2xl font-extrabold tracking-tight text-stone-900 sm:text-3xl",children:n}),r?(0,i.jsx)("p",{className:"mx-auto mt-3 max-w-sm text-base leading-relaxed text-stone-500",children:r}):null]}),(0,i.jsx)(o.Z,{className:"mt-8 rounded-3xl p-5 motion-safe:animate-funnel-in sm:p-8",children:a}),(0,i.jsx)("div",{className:"mt-8 text-center text-sm text-stone-500",children:d})]})]})]})}let c="w-full rounded-xl border border-stone-200 bg-white px-4 py-3.5 text-base text-stone-900 shadow-funnel-card placeholder:text-stone-400 focus:border-indigo-300 focus:outline-none disabled:opacity-50",u="mb-2 block text-xs font-bold text-stone-600"},71632:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return u},default:function(){return g},loginErrors:function(){return m}});var i=n(85893),r=n(67294),s=n(33299),a=n(11163),l=n(41664),o=n.n(l),d=n(46212),c=n(32142),u=!0;let m={Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallback:"Try signing in with a different account.",OAuthCreateAccount:"Try signing in with a different account.",EmailCreateAccount:"Try signing in with a different account.",Callback:"Try signing in with a different account.",OAuthAccountNotLinked:"To confirm your identity, sign in with the same account you used originally.",EmailSignin:"Check your email inbox.",CredentialsSignin:"Sign in failed. Check if the details you provided are correct.",SessionRequired:"",default:"Unable to sign in.",already_signed_up:"You've already completed the signup process. Please sign in."};function g(){let e=(0,a.useRouter)(),[t,n]=(0,r.useState)(""),[l,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{{let e=window.localStorage.getItem("email");e&&n(e)}},[]);let g=async t=>{var n;t.preventDefault(),u(!0);let i=(null===(n=e.query)||void 0===n?void 0:n.callbackUrl)?decode
1URIComponent(e.query.callbackUrl):"/dashboard";await (0,s.signIn)("credentials",{email:t.target.email.value,password:t.target.password.value,callbackUrl:i})},x=e.query.error&&!l?m[e.query.error]||m.default:null;return(0,i.jsx)(d.ZP,{title:"Login",heading:"Welcome back",subtitle:"Sign in to keep practicing with your language buddy.",footer:(0,i.jsxs)("p",{children:["Don't have an account?"," ",(0,i.jsx)(o(),{href:"/signup",className:"font-bold text-indigo-600 transition hover:text-indigo-700",children:"Sign up"})]}),children:(0,i.jsxs)("form",{onSubmit:g,className:"space-y-5",children:[x?(0,i.jsx)("div",{role:"alert",className:"rounded-xl border border-red-200 bg-red-50 px-4 py-3 text-center text-sm font-medium text-red-700",children:x}):null,(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"email",className:d.q6,children:"Email address"}),(0,i.jsx)("input",{disabled:l,id:"email",name:"email",placeholder:"[email protected]",value:t,onChange:e=>{n(e.target.value),window.localStorage.setItem("email",e.target.value)},type:"email",autoComplete:"email",required:!0,className:d.p8})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"password",className:d.q6,children:"Password"}),(0,i.jsx)("input",{disabled:l,id:"password",name:"password",placeholder:"Your password",type:"password",autoComplete:"current-password",required:!0,className:d.p8})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,i.jsxs)("label",{htmlFor:"remember-me",className:"flex items-center gap-2 text-sm text-stone-600",children:[(0,i.jsx)("input",{id:"remember-me",name:"remember-me",type:"checkbox",className:"h-4 w-4 rounded border-stone-300 text-indigo-600 focus:ring-indigo-500"}),"Remember me"]}),(0,i.jsx)(o(),{href:"/password-reset",className:"text-sm font-semibold text-indigo-600 transition hover:text-indigo-700",children:"Forgot password?"})]}),(0,i.jsx)(c.Z,{type:"submit",fullWidth:!0,size:"lg",disabled:l,children:l?"Signing inâ¦":"Sign in"})]})})}}},function(e){e.O(0,[8159,2888,9774,179],function(){return e(e.s=36429)}),_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.