1import{j as e}from"./vendor-radix-Djw8bMfa.js";import{r as a,L as i}from"./vendor-react-BosAocA3.js";import{a as p,B as d,L as u,I as w,s as f}from"./index-CXNxXznd.js";import{V as j,g as b,$ as g}from"./vendor-icons-CC7K3DCo.js";import"./vendor-supabase-DHET8n-G.js";import"./vendor-charts-C6ZjoPMk.js";import"./vendor-query-Di8qp77c.js";import"./vendor-motion-C9gs001o.js";const A=()=>{const[t,l]=a.useState(""),[r,n]=a.useState(!1),[x,c]=a.useState(!1),{toast:o}=p(),h=async s=>{s.preventDefault(),n(!0);try{const{error:m}=await f.auth.resetPasswordForEmail(t,{redirectTo:`${window.location.origin}/reset-password`});m?o({title:"Oops!",description:m.message,variant:"destructive"}):c(!0)}catch{o({title:"Oops!",description:"An unexpected error occurred. Please try again.",variant:"destructive"})}finally{n(!1)}};return e.jsxs("div",{className:"min-h-screen flex",style:{background:"#070D19"},children:[e.jsxs("div",{className:"hidden md:flex md:w-[45%] flex-col justify-between p-10",style:{background:"#070D19"},children:[e.jsx("div",{children:e.jsx(i,{to:"/",className:"inline-block",children:e.jsx("img",{src:"/lovable-uploads/22d5e8f2-0a02-4fc8-b365-612baa89627c.png",alt:"Get You An Interview",className:"h-10"})})}),e.jsxs("div",{className:"flex flex-col items-start gap-6",children:[e.jsx("h1",{className:"text-[32px] font-bold text-white leading-tight",children:"Reset your password."}),e.jsx("p",{className:"text-white/50 text-base max-w-xs",children:"We'll get you back in and back on track."})]}),e.jsx("p",{className:"text-white/30 text-xs tracking-wide",children:"Built in Austin, TX, with love â¤ï¸"})]}),e.jsxs("div",{className:"w-full md:w-[55%] flex flex-col items-center justify-center px-6 py-12",style:{background:"#0A1022"},children:[e.jsx("div",{className:"md:hidden mb-10",children:e.jsx(i,{to:"/",children:e.jsx("img",{src:"/lovable-uploads/22d5e8f2-0a02-4fc8-b365-612baa89627c.png",alt:"Get You An Interview",className:"h-10 mx-auto"})})}),e.jsxs("div",{className:"w-full max-w-sm",children:[e.jsx("h2",{className:"text-2xl font-bold text-white mb-1",children:"Forgot password"}),e.jsx("p",{className:"text-white/40 text-sm mb-8",children:"Enter your email and we'll send you a reset link"}),x?e.jsxs("div",{className:"text-center py-4 space-y-4",children:[e.jsx(j,{className:"h-12 w-12 text-primary mx-auto"}),e.jsx("h3",{className:"text-lg font-semibold text-white",children:"Check your email"}),e.jsxs("p",{className:"text-sm text-white/50",children:["We've sent a password reset link to ",e.jsx("strong",{className:"text-white",children:t}),". Click the link in the email to set a new password."]}),e.jsx("p",{className:"text-xs text-white/30",children:"Didn't receive it? Check your spam folder or try again."}),e.jsx(d,{variant:"outline",className:"mt-4 bg-transparent border-white/20 text-white hover:bg-white/10 hover:text-white",onClick:()=>{c(!1),l("")},children:"Try a different email"})]}):e.jsxs("form",{onSubmit:h,className:"space-y-5",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"email",className:"text-white/60 text-sm",children:"Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(b,{className:"absolute left-3 top-3 h-4 w-4 text-white/30"}),e.jsx(w,{id:"email",type:"email",placeholder:"[email protected]",value:t,onChange:s=>l(s.target.value),required:!0,className:"pl-10 bg-white/[0.04] border-white/10 text-white placeholder:text-white/20 focus-visible:ring-primary"})]})]}),e.jsx(d,{type:"submit",className:"w-full bg-primary hover:bg-primary/90 text-white font-semibold",disabled:r,children:r?"Sending...":"Send reset link"})]}),e.jsx("div",{className:"mt-8 text-center",children:e.jsxs(i,{to:"/auth",className:"text-sm text-white/40 hover:text-white/60 inline-flex items-center gap-1.5 transition-colors",children:[e.jsx(g,{className:"h-3.5 w-3.5"}),"Back to sign in"]})})]})]})]})};export{A 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.