1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9742],{27627:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return s(76508)}])},42949:function(e,t,s){"use strict";s.d(t,{q:function(){return n}});var a=s(85893);s(67294);var r=s(54271);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:26;return(0,a.jsx)(r.ZP,{variant:e,size:t,density:"full",animated:!0})}},26709:function(e,t,s){"use strict";s.d(t,{Z:function(){return c}});var a=s(85893);s(67294);var r=s(92761),n=s(79298),i=s(11163),l=s(67694);function c(e){let{title:t,subtitle:s,onPrimary:c,primaryLabel:o,showBack:d=!0}=e,x=(0,i.useRouter)(),{theme:m}=(0,l.F)();return(0,a.jsx)("div",{className:"md:hidden sticky top-12 z-40 px-3 py-2.5 transition-colors ".concat("dark"===m?"bg-[#1A1A1B] border-b border-[#343536]":"bg-white border-b border-[#EDEFF1]"),children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[d?(0,a.jsx)(n.hU,{onClick:()=>x.back(),icon:r.Z,"aria-label":"Back",variant:"ghost",size:"sm"}):(0,a.jsx)("div",{className:"w-9 h-9","aria-hidden":!0}),(0,a.jsxs)("div",{className:"flex-1 text-center min-w-0",children:[t&&(0,a.jsx)("div",{className:"font-semibold text-sm truncate ".concat("dark"===m?"text-white":"text-gray-900"),children:t}),s&&(0,a.jsx)("div",{className:"text-xs truncate ".concat("dark"===m?"text-[#818384]":"text-gray-500"),children:s})]}),(0,a.jsx)("div",{className:"flex-shrink-0 flex items-center justify-end",children:c?(0,a.jsx)(n.zx,{onClick:c,size:"sm",variant:"primary",className:"text-xs px-2.5 py-1.5 whitespace-nowrap",children:o||"Done"}):(0,a.jsx)("div",{className:"w-9 h-9","aria-hidden":!0})})]})})}},60493:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(63759).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},86691:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(63759).Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},76508:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return y}});var a=s(85893),r=s(67294),n=s(9008),i=s.n(n),l=s(87542),c=s(11163),o=s(85412),d=s(26709),x=s(67694),m=s(86501),u=s(42949),h=s(73416),b=s(86691),j=s(60641),f=s(92761),p=s(60493),g=s(79298);function y(){let e=(0,c.useRouter)(),{theme:t}=(0,x.F)(),[s,n]=(0,r.useState)(""),[y,w]=(0,r.useState)(""),[k,N]=(0,r.useState)(!1),[v,F]=(0,r.useState)(!1),C=async e=>{e.preventDefault(),w("");let t=s.trim();if(!t){w("Please enter your email");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){w("Please enter a valid email address");return}N(!0);try{let e=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})}),s=await e.json();e.ok?(F(!0),m.default.success("Password reset link sent! Check your email.",{duration:4e3,icon:(0,u.q)("check"),style:{maxWidth:"400px"}})):m.default.error(s.error||"Failed to send reset link",{duration:4e3,style:{maxWidth:"400px"}})}catch(e){console.error("Forgot password error:",e),m.default.error("Something went wrong. Please try again.",{duration:4e3,style:{maxWidth:"400px"}})}finally{N(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:"Forgot Password - TrueResume"}),(0,a.jsx)("meta",{name:"description",content:"Reset your TrueResume password"}),(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,a.jsxs)("div",{className:"min-h-screen pt-12 sm:pt-16 transition-all duration-300 ".concat("dark"===t?"bg-[#030303]":"bg-transparent"),children:[(0,a.jsx)(o.Z,{}),(0,a.jsx)(d.Z,{title:"Reset password",subtitle:"Request a reset link"}),(0,a.jsx)("div",{className:"flex items-center justify-center min-h-[calc(100vh-4rem)] px-4 sm:px-6 py-12",children:(0,a.jsx)(l.E.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"w-full max-w-md",children:(0,a.jsx)("div",{className:"card-mobile shadow-2xl border ".concat("dark"===t?"bg-[#272729] border-[#343536]":"bg-white border-[#
1EDEFF1]"),children:v?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-14 h-14 sm:w-16 sm:h-16 rounded-full mb-6 ".concat("dark"===t?"bg-green-500/20":"bg-green-50"),children:(0,a.jsx)(p.Z,{className:"w-10 h-10 ".concat("dark"===t?"text-green-400":"text-green-600")})}),(0,a.jsx)("h1",{className:"text-2xl sm:text-3xl font-bold mb-4 ".concat("dark"===t?"text-white":"text-gray-900"),style:{fontFamily:"Rajdhani, sans-serif"},children:"Check Your Email"}),(0,a.jsxs)("p",{className:"mb-6 text-sm sm:text-base ".concat("dark"===t?"text-gray-400":"text-gray-600"),children:["We've sent a password reset link to ",(0,a.jsx)("strong",{className:"dark"===t?"text-white":"text-gray-900",children:s})]}),(0,a.jsxs)("div",{className:"p-4 rounded-lg mb-6 text-left text-sm ".concat("dark"===t?"bg-blue-500/10 border border-blue-500/20 text-blue-300":"bg-blue-50 border border-blue-200 text-blue-700"),children:[(0,a.jsxs)("p",{className:"mb-2",children:["\uD83D\uDCE7 ",(0,a.jsx)("strong",{children:"Next Steps:"})]}),(0,a.jsxs)("ul",{className:"list-disc list-inside space-y-1 ml-2",children:[(0,a.jsx)("li",{children:"Check your inbox (and spam folder)"}),(0,a.jsx)("li",{children:"Click the reset link in the email"}),(0,a.jsx)("li",{children:"Create your new password"}),(0,a.jsx)("li",{children:"Link expires in 1 hour"})]})]}),(0,a.jsx)(g.zx,{onClick:()=>e.push("/login"),variant:"outline",className:"w-full",children:"Return to Login"}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)("button",{onClick:()=>{F(!1),n("")},className:"text-sm transition-colors ".concat("dark"===t?"text-blue-400 hover:text-blue-300":"text-blue-600 hover:text-blue-500"),children:"Didn't receive it? Try again"})})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-14 h-14 sm:w-16 sm:h-16 rounded-2xl mb-6 ".concat("dark"===t?"bg-gradient-to-br from-blue-600 to-[#E03D00]":"bg-gradient-to-br from-blue-500 to-[#FF4500]"),children:(0,a.jsx)(h.Z,{className:"w-8 h-8 text-white"})}),(0,a.jsx)("h1",{className:"text-2xl sm:text-3xl font-bold mb-2 ".concat("dark"===t?"text-white":"text-gray-900"),style:{fontFamily:"Rajdhani, sans-serif"},children:"Forgot Password?"}),(0,a.jsx)("p",{className:"text-sm sm:text-base ".concat("dark"===t?"text-gray-400":"text-gray-600"),children:"No worries! Enter your email and we'll send you a reset link."})]}),(0,a.jsxs)("form",{onSubmit:C,className:"space-y-6",noValidate:!0,children:[(0,a.jsx)(g.II,{type:"email",label:"Email address",icon:b.Z,value:s,error:y,onChange:e=>{n(e.target.value),y&&w("")},placeholder:"Enter your email",disabled:k,autoComplete:"email",required:!0,className:"input-mobile-sm"}),(0,a.jsx)(g.zx,{type:"submit",disabled:k,className:"w-full bg-[#FF4500] hover:bg-[#E03D00] text-white font-semibold py-4 rounded-xl transition-all duration-300 shadow-lg hover:shadow-xl flex items-center justify-center space-x-3 disabled:opacity-50 disabled:cursor-not-allowed",children:k?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.Z,{className:"w-5 h-5 animate-spin"}),(0,a.jsx)("span",{children:"Sending..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.Z,{className:"w-5 h-5"}),(0,a.jsx)("span",{children:"Send Reset Link"})]})})]}),(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsxs)("button",{onClick:()=>e.push("/login"),className:"inline-flex items-center space-x-2 text-sm transition-colors ".concat("dark"===t?"text-blue-400 hover:text-blue-300":"text-blue-600 hover:text-blue-500"),children:[(0,a.jsx)(f.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:"Back to Login"})]})})]})})})})]})]})}}},function(e){e.O(0,[4968,1296,5412,2888,9774,179],function(){return e(e.s=27627)}),_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.