1import{V as y,aA as k,W as w,r as i,j as e,M as v,m as r,aB as N,ao as E,h as A,au as S,z,p as u,a5 as C}from"./index-BEeocnj1-v2.js";import{A as L}from"./AquariumBackground-DhVEOLMP-v2.js";function M(){const{resetPassword:b,error:o}=y(),{appIcon:P}=k(),p=w(),[a,h]=i.useState(""),[t,n]=i.useState(null),[c,x]=i.useState(!1),[d,m]=i.useState(null),f=s=>{s&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?n("Please enter a valid email address"):n(null)},g=s=>{const l=s.target.value;h(l),f(l)},j=async s=>{if(s.preventDefault(),!(t||!a)){x(!0),m(null);try{await b(a),m("Password reset email sent! Please check your inbox (and spam folder).")}catch{}finally{x(!1)}}};return e.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center bg-slate-50 dark:bg-[#030712] px-6 relative overflow-hidden py-12",children:[e.jsx(v,{title:"Reset Password - Atharv Gyan",description:"Reset your password on Atharv Gyan to regain access to your courses and progress."}),e.jsx("div",{className:"absolute top-[-10%] left-[-10%] w-[50%] h-[50%] bg-blue-500/5 rounded-full blur-[120px] pointer-events-none"}),e.jsx("div",{className:"absolute bottom-[-10%] right-[-10%] w-[50%] h-[50%] bg-indigo-500/5 rounded-full blur-[120px] pointer-events-none"}),e.jsx(L,{}),e.jsxs(r.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-[440px] w-full relative z-10",children:[e.jsxs("div",{className:"bg-white/90 dark:bg-[#0b0f19]/80 backdrop-blur-xl border border-slate-200/60 dark:border-white/5 rounded-3xl shadow-[0_20px_50px_rgba(15,23,42,0.06)] dark:shadow-[0_20px_50px_rgba(0,0,0,0.3)] p-8 sm:p-10 flex flex-col",children:[e.jsxs("div",{className:"mb-8 flex flex-col items-center text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-[20px] bg-white dark:bg-slate-900 shadow-sm border border-slate-100 dark:border-white/10 flex items-center justify-center p-2 mb-4 overflow-hidden",children:e.jsx(N,{sizeClassName:"w-12 h-12",imageClassName:"scale-125"})}),e.jsx("h2",{className:"text-2xl font-baloo font-bold tracking-tight text-slate-900 dark:text-white mb-1",children:e.jsx("span",{translate:"no",className:"notranslate",children:"Atharv Gyan"})}),e.jsx("p",{className:"text-sm font-semibold text-slate-400 dark:text-slate-500",children:"Keep Learning !! Keep Exploring !!"})]}),e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("h1",{className:"text-lg font-bold text-slate-800 dark:text-slate-200 mb-1.5",children:"Reset Password"}),e.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed font-medium",children:"Enter your email address and we'll send you a link to reset your password."})]}),e.jsxs("form",{onSubmit:j,className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(E,{className:`absolute left-4 top-1/2 -translate-y-1/2 transition-colors ${t?"text-red-500":a&&!t?"text-emerald-500":"text-slate-400"}`,size:18}),e.jsx("input",{type:"email",placeholder:"Email Address",required:!0,value:a,onChange:g,className:`w-full pl-11 pr-11 py-3.5 bg-slate-50/50 dark:bg-slate-950/20 border rounded-xl focus:ring-2 focus:ring-blue-500/20 outline-none transition-all text-slate-900 dark:text-white text-sm font-medium ${t?"border-red-500/80 focus:ring-red-500/10":a&&!t?"border-emerald-500/80 focus:ring-emerald-500/10":"border-slate-200 dark:border-white/5 focus:border-blue-500/50 dark:focus:border-blue-500/50"}`}),e.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 flex items-center",children:[a&&!t&&e.jsx(r.div,{initial:{scale:0},animate:{scale:1},children:e.jsx(A,{size:18,className:"text-emerald-500"})}),t&&e.jsx(r.div,{initial:{scale:0},animate:{scale:1},children:e.jsx(S,{size:18,className:"text-red-500"})})]})]}),t&&e.jsx(r.p,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},className:"text-[10px] font-bold text-red-500 uppercase tracking-wider text-left pl-3",children:t}),e.jsx("button",{type:"submit",disabled:c||d!==null||!!t||!a,className:"w-full py-3.5 bg-blue-600 hover:bg-blue-700 disabled:opacity-50 text-white rounded-xl font-bold text-sm shadow-md shadow-blue-500/10 transition-all flex items-center justify-center gap-2",children:c?e.jsx(z,{color:"bg-white",size:"sm"}):e.jsxs(e.Fragment,{children:[e.jsx(u,{size:16}),"Send Reset Link"]})})]}),d&&e.jsxs(r.div,{initial:{opacity:0,scale:.98}
1,animate:{opacity:1,scale:1},className:"mt-6 space-y-3",children:[e.jsx("div",{className:"p-3 bg-emerald-50 dark:bg-emerald-500/5 border border-emerald-100 dark:border-emerald-500/10 rounded-xl text-emerald-600 dark:text-emerald-400 text-xs font-medium text-left",children:d}),e.jsxs("div",{className:"p-3 bg-blue-50 dark:bg-blue-500/5 border border-blue-100 dark:border-blue-500/10 rounded-xl text-blue-600 dark:text-blue-400 text-xs font-medium text-left space-y-1.5",children:[e.jsxs("p",{className:"font-bold flex items-center gap-1.5 text-blue-700 dark:text-blue-300",children:[e.jsx(u,{size:14}),"Important Security Note:"]}),e.jsx("p",{className:"text-[11px] leading-relaxed opacity-90",children:"For safety, you will be redirected back here to set your new password. If you aren't redirected, check the email link carefully."})]})]}),o&&e.jsx(r.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},className:"mt-6 p-3 bg-red-50 dark:bg-red-500/5 border border-red-100 dark:border-red-500/10 rounded-xl text-red-600 dark:text-red-400 text-xs font-medium text-left",children:e.jsx("p",{children:o})}),e.jsx("div",{className:"pt-4 mt-6 border-t border-slate-100 dark:border-white/5 text-center",children:e.jsxs("button",{onClick:()=>p("/login"),className:"inline-flex items-center gap-1.5 text-slate-400 font-baloo font-bold text-xs uppercase tracking-wider transition-colors hover:text-slate-600 dark:hover:text-slate-200",children:[e.jsx(C,{size:12}),"Back to Login"]})})]}),e.jsx("div",{className:"text-center mt-8",children:e.jsx("p",{className:"text-xs font-baloo font-semibold text-slate-400 dark:text-slate-500 tracking-wider uppercase",children:"Atharv Gyan Excellence"})})]})]})}export{M as default};
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.