(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47163,e=>{"use strict";e.s(["REGISTRATION_FEE",0,1500,"formatDate",0,function(e){return new Date(e).toLocaleDateString("en-IN",{year:"numeric",month:"long",day:"numeric"})},"formatDateTime",0,function(e){return new Date(e).toLocaleString("en-IN",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})},"getFirebaseErrorMessage",0,function(e){return({"auth/email-already-in-use":"This email is already registered. Please login instead.","auth/invalid-email":"Please enter a valid email address.","auth/operation-not-allowed":"Email/password sign up is not enabled.","auth/weak-password":"Password is too weak. Please use at least 6 characters.","auth/user-disabled":"This account has been disabled.","auth/user-not-found":"No account found with this email.","auth/wrong-password":"Incorrect password. Please try again.","auth/too-many-requests":"Too many failed attempts. Please try again later.","auth/invalid-credential":"Invalid credentials. Please check your email and password."})[e]||"An unexpected error occurred. Please try again."},"validateFileSize",0,function(e,a){return e.size<=1024*a},"validateFileType",0,function(e,a){return a.includes(e.type)}])},72519,e=>{"use strict";var a=e.i(43476),r=e.i(71645),t=e.i(22016),s=e.i(38036),i=e.i(47163),n=e.i(5216);e.s(["default",0,function(){let[e,l]=(0,r.useState)(""),[o,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[m,h]=(0,r.useState)(""),{showToast:p}=(0,n.useToast)(),g=async a=>{if(a.preventDefault(),h(""),!e.trim())return void h("Please enter your email address.");d(!0);try{await (0,s.resetPassword)(e),u(!0),p("Password reset email sent successfully!","success")}catch(a){let e=(0,i.getFirebaseErrorMessage)(a.code||"");h(e),p(e,"error")}finally{d(!1)}};return(0,a.jsx)("div",{className:"auth-page",children:(0,a.jsxs)("div",{className:"auth-card",children:[(0,a.jsx)("div",{className:"card-accent"}),(0,a.jsxs)("div",{className:"card-body",children:[(0,a.jsx)("h1",{children:"Forgot Password"}),(0,a.jsx)("div",{className:"title-underline"}),c?(0,a.jsxs)("div",{style:{textAlign:"center",marginTop:"24px"},children:[(0,a.jsx)("div",{style:{width:"64px",height:"64px",background:"var(--success-light)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 16px",fontSize:"1.75rem"},children:"✉"}),(0,a.jsx)("h2",{style:{fontSize:"1.25rem",marginBottom:"8px"},children:"Email Sent!"}),(0,a.jsxs)("p",{style:{color:"var(--text-secondary)",fontSize:"0.9375rem",marginBottom:"24px",lineHeight:"1.6"},children:["We have sent a password reset link to"," ",(0,a.jsx)("strong",{children:e}),". Please check your inbox and follow the instructions."]}),(0,a.jsx)(t.default,{href:"/login",className:"btn btn-primary",children:"Back to Login"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"subtitle",style:{marginTop:"16px"},children:"Enter your registered email address and we'll send you a password reset link."}),m&&(0,a.jsxs)("div",{style:{background:"var(--error-light)",border:"1px solid #fecaca",color:"var(--error)",padding:"12px 16px",borderRadius:"var(--border-radius)",fontSize:"0.875rem",marginBottom:"20px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,a.jsx)("span",{children:"⚠"})," ",m]}),(0,a.jsxs)("form",{onSubmit:g,children:[(0,a.jsxs)("div",{className:"form-group",children:[(0,a.jsxs)("label",{htmlFor:"reset-email",className:"form-label",children:["Email Address ",(0,a.jsx)("span",{className:"required",children:"*"})]}),(0,a.jsx)("input",{id:"reset-email",type:"email",className:"form-control",placeholder:"Enter your registered email",value:e,onChange:e=>l(e.target.value),autoComplete:"email",required:!0})]}),(0,a.jsx)("button",{type:"submit",className:"btn btn-primary btn-lg",style:{width:"100%"},disabled:o,children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"spinner",style:{width:"18px",height:"18px",borderWidth:"2px",borderTopColor:"white"}}),"Sending..."]}):"Send Reset Link"})]}),(0,a.jsx)("div",{style:{textAlign:"center",marginTop:"24px"},children:(0,a.jsx)(t.default,{href:"/login",style:{fontSize:"0.9375rem",fontWeight:"500",color:"var(--primary)"},children:"← Back to Login"})})]})]})]})})}])}]);