PageSourceSearch

https://www.crackinterviewai.in/assets/AuthPage-CbZ3fwop.js

js crackinterviewai.in collected 2026-10-02 01:55:46 UTC 25,653 bytes, 3 lines download raw bytes

1import{r as d,b as re,j as e}from"./react-vendor-QDf--E66.js";import{o as ae,n as B,v as oe,h as le,a as ne,r as ie,c as ce,s as de,b as ue,d as me}from"./auth-Dv5aAREk.js";import{N as he}from"./Navbar-BhWBOFvV.js";import{B as pe}from"./BrandLogo-DzlJWrum.js";import{b as xe,g as F,s as M,C as ge,a as fe}from"./purchaseIntent-DJz6eJ2A.js";import{t as N,F as C}from"./funnelAnalytics-CILwnMOG.js";import{X as V,S as be,g as I,h as R,c as we,U as ve,G as ye}from"./icons--aatHFmC.js";import"./firebase-CsTBSPy5.js";import"./config-BsBLrHUs.js";import"./pricing-BNIcWxC0.js";import"./index-B6f0qF93.js";import"./useSaleConfig-ClqxtUsc.js";const U="https://auth-return.invalid";function X(n){if(typeof n!="string"||!n.startsWith("/"))return"";let u=n;for(let l=0;l<4;l+=1){if(!u.startsWith("/")||u.startsWith("//")||u.includes("\\")||[...u].some(s=>s.charCodeAt(0)<32||s.charCodeAt(0)===127))return"";try{const s=decodeURIComponent(u);if(s===u)break;if(u=s,l===3)return""}catch{return""}}try{const l=new URL(n,U);return l.origin!==U||l.pathname.startsWith("//")?"":`${l.pathname}${l.search}${l.hash}`}catch{return""}}const E=(n="")=>X(new URLSearchParams(n).get("redirect")),je=n=>{const u=X(n);return!!(u&&new URL(u,U).pathname==="/resume-builder")},Ne=({search:n="",checkoutPlan:u=""}={})=>E(n)||xe(u),Ce=()=>{if(typeof window>"u")return"login";const n=new URLSearchParams(window.location.search);return n.get("tab")==="signup"||n.get("ref")||n.get("intent")==="checkout"||F()?"signup":"login"},G=()=>typeof window<"u"&&E(window.location.search)?"":F()||fe(),ke=(n,u="Something went wrong. Please try again.")=>{const l=String(n||"").trim();if(!l)return u;const s=l.toLowerCase();return s.includes("already been used")||s.includes("one free account per device")||s.includes("free account")?l.startsWith("This device")?l:'This device already has a free account. Please log in with the account used on this device, or use "Forgot Password" to reset it.':s.includes("popup")&&s.includes("blocked")?"Google sign-in popup was blocked. Please allow popups for this site and try again.":s.includes("popup")&&(s.includes("closed")||s.includes("cancelled")||s.includes("canceled"))?"Google sign-in was cancelled. Please try again.":s.includes("network")?"Network error. Please check your internet connection and try again.":s.includes("invalid-credential")||s.includes("wrong-password")||s.includes("user-not-found")?'Invalid email or password. Please try again or use "Forgot Password".':s.includes("email-already-in-use")?'This email is already registered. Please log in or use "Forgot Password".':s.includes("weak-password")?"Password should be at least 6 characters long.":l.startsWith("Firebase:")||s.includes("auth/")||s.includes("firebase")?u:l};function $e(){const[n,u]=d.useState(Ce),[l,s]=d.useState(!1),[H,v]=d.useState(!0),[K,f]=d.useState(!1),[L,T]=d.useState(""),[k,z]=d.useState(""),[$,D]=d.useState(""),[P,S]=d.use
1State({checking:!1,valid:!1,email:"",error:""}),[m,_]=d.useState(G),[y,A]=d.useState({show:!1,message:"",type:"success"}),[i,x]=d.useState({name:"",email:"",phone:"",password:"",referralCode:""}),p=re(),j=d.useRef(!1),b=je(E(window.location.search)),g=d.useCallback(()=>Ne({search:window.location.search,checkoutPlan:m||G()}),[m]),o=d.useCallback((t,r="success",a=null)=>{const c=r==="error"?ke(t,"Login could not be completed. Please try again."):String(t||"");let h=a;h||(r==="error"?h=Math.max(15e3,c.length*50):h=4e3),A({show:!0,message:c,type:r}),setTimeout(()=>A({show:!1,message:"",type:"success"}),h)},[]);d.useEffect(()=>{const t=ae(r=>{const a=new URLSearchParams(window.location.search),c=a.get("mode")==="verifyEmail"&&a.get("oobCode"),h=a.get("mode")==="resetPassword"&&a.get("oobCode");if(!(r&&j.current))if(r){if(sessionStorage.getItem("processingGoogleRedirect")==="true"&&!c&&!h)return;!c&&!h?p(g(),{replace:!0}):v(!1)}else v(!1)});return()=>t()},[g,p]),d.useEffect(()=>{if(E(window.location.search))return;const t=F();t&&(M(t),_(t),u("signup"))},[]),d.useEffect(()=>{let t=!1;return(async()=>{const a=await le();if(!(t||!a))if(v(!1),a.success)N(C.LOGIN_SUCCESS,{method:"google_redirect",plan:m||"",page:"auth"}),o("Google sign-in successful. Redirecting...","success"),setTimeout(()=>p(g(),{replace:!0}),700);else{const c=localStorage.getItem("authError");localStorage.removeItem("authError"),o(c||a.error||"Google sign-in failed. Please try email signup.","error")}})(),()=>{t=!0}},[m,g,p,o]),d.useEffect(()=>{const t=new URLSearchParams(window.location.search);if(t.get("mode")==="verifyEmail"&&t.get("oobCode"))return;const r=new URLSearchParams(window.location.search),a=B(r.get("ref"));let c="";if(a)c=a;else{const h=B(localStorage.getItem("referralCode")),w=localStorage.getItem("referralExpiry");if(h&&w){const se=parseInt(w);Date.now()<se?c=h:(localStorage.removeItem("referralCode"),localStorage.removeItem("referralExpiry"))}}c&&(x(h=>({...h,referralCode:c})),o(`Using referral code: ${c}`,"success"))},[o]),d.useEffect(()=>{const t=new URLSearchParams(window.location.search),r=t.get("mode")==="verifyEmail",a=t.get("oobCode");if(!r||!a)return;let c=!1;return(async()=>{v(!1),s(!0);const w=await ne(a);c||(s(!1),w.success?(window.history.replaceState({},"","/login"),o("Email verified! Redirecting to dashboard...","success",5e3),setTimeout(()=>p("/dashboard?emailVerified=1",{replace:!0}),1200)):o(w.error||"Verification link is invalid.","error"))})(),()=>{c=!0}},[p,o]),d.useEffect(()=>{const t=new URLSearchParams(window.location.search),r=t.get("oobCode");if(t.get("mode")!=="resetPassword"||!r)return;let a=!1;return v(!1),S({checking:!0,valid:!1,email:"",error:""}),oe(r).then(c=>{a||S(c.success?{checking:!1,valid:!0,email:c.email,error:""}:{checking:!1,valid:!1,email:"",error:c.error})}),()=>{a=!0}},[]);const O=t=>{u(t),x({name:"",email:"",phone:"",password:"",referralCode:i.referralCode})},Y=async t=>{if(t.preventDefault(),!L){o("Please enter your email address","error");return}s(!0);const r=await ie(L);s(!1),r.success?(o("Password reset email sent. Check your inbox.","success"),f(!1),T("")):o(r.error,"error")},J=async t=>{if(t.preventDefault(),k.length<6){o("Password should be at least 6 characters long.","error");return}if(k!==$){o("Passwords do not match.","error");return}const r=new URLSearchParams(window.location.search).get("oobCode");s(!0);const a=await ce(r,k);s(!1),a.success?(window.history.replaceState({},"","/login"),z(""),D(""),S({checking:!1,valid:!1,email:"",error:""}),o("Password changed successfully. You can now log in.","success",6e3)):o(a.error,"error")},Q=async()=>{const t=m||G();t&&(M(t),_(t)),j.current=!0,s(!0);try{const r=await de();if(r?.redirecting){o("Redirecting to Google...","success",3e3);return}r?.success?(N(C.LOGIN_SUCCESS,{method:"google",plan:t||"",page:"auth"}),o(t?"Signed in! Opening checkout...":"Signed in! Redirecting...","success"),setTimeout(()=>p(g(),{replace:!0}),700)):o(r?.error||"Google sign-in failed. Please try email signup.","error")}catch(r){o(r.message||"Google sign-in failed. Please try email signup.","error")}finally{j.current=!1,s(!1)}},Z=async()=>{const t=i.phone.replace(/[\s-]/g,"");if(t&&!/^\+?\d{7,15}$/.test(t)){o("Please enter a valid phone number (digits only).","error");return}if(i.password.length<6){o("Password should be at least 6 characters long.","error");return}j.current=!0,s(!0),N(C.SIGNUP_START,{method:"email",plan:m||"",page:"auth"});try{const r=await me(i.email,i.password,i.name,i.referralCode,t);r.success?(N(C.SIGNUP_SUCCESS,{method:"email",plan:m||"",page:"auth"}),o(b?"Account created! Opening your resume...":m?"Account created! Opening secure checkout...":"Account created! 30 free minutes added.","success",6e3),localStorage.removeItem("referralCode"),localStorage.removeItem("referralExpiry"),setTimeout(()=>p(g()),900)):o(r.error||"Could not create account.","error")}catch(r){o(r.message||"Could not create account.","error")}finally{j.current=!1,s(!1)}},W=async t=>{if(t.preventDefault(),n==="signup"){await Z();return}s(!0);try{const r=await ue(i.email,i.password);if(r.success)N(C.LOGIN_SUCCESS,{method:"email",plan:m||"",page:"auth"}),o("Success. Redirecting...","success"),setTimeout(()=>p(g()),800);else{let a=r.error||"Authentication failed";a.includes("device")||a.includes("network")?a=a+`
2
3If you forgot your password, use "Forgot Password" to reset it.`:a.includes("email-already-in-use")?a='This email is already registered. Please login or use "Forgot Password" if you forgot your credentials.':a.includes("wrong-password")||a.includes("user-not-found")?a='Invalid email or password. Please try again or use "Forgot Password".':a.includes("weak-password")&&(a="Password should be at least 6 characters long."),o(a,"error")}}catch(r){o(r.message||"An error occurred","error")}finally{s(!1)}};if(H)return e.jsx("div",{className:"min-h-screen bg-[#05080f] flex items-center justify-center",children:e.jsx("div",{className:"w-12 h-12 border-4 border-green-500/30 border-t-green-500 rounded-full animate-spin"})});const q=m?ge[m]:"",ee=b?"Log in & continue to resume":m?"Log in & continue checkout":"Log In",te=b?"Create account & start resume":m?"Create account & checkout":"Create Free Account";return e.jsxs("div",{className:"relative min-h-screen w-full flex flex-col overflow-hidden bg-[#05080f] text-white font-sans selection:bg-green-500/30",children:[e.jsx(he,{}),e.jsxs("div",{className:"flex-1 flex items-start justify-center px-3 pb-10 pt-40 sm:px-4 sm:pb-12 sm:pt-44 lg:items-center lg:pt-40",children:[e.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"blob bg-green-600/40 w-[600px] h-[600px] rounded-full -top-40 -left-20 mix-blend-screen filter blur-[80px] animate-pulse"}),e.jsx("div",{className:"blob bg-emerald-500/30 w-[500px] h-[500px] rounded-full -bottom-20 -right-20 mix-blend-screen filter blur-[80px] animation-delay-2000"})]}),e.jsx("div",{className:`fixed left-3 right-3 top-[calc(env(safe-area-inset-top)+1rem)] z-[500] transition-all duration-300 sm:left-1/2 sm:right-auto sm:top-24 sm:w-[min(92vw,30rem)] sm:-translate-x-1/2 ${y.show?"translate-y-0 opacity-100":"-translate-y-4 opacity-0 pointer-events-none"}`,children:e.jsxs("div",{className:`flex items-start gap-3 rounded-2xl border px-4 py-3 text-sm font-medium leading-relaxed shadow-2xl backdrop-blur-xl sm:px-5 ${y.type==="error"?"border-red-300/50 bg-red-500/95 text-white":"border-emerald-300/35 bg-white/95 text-slate-950"}`,children:[e.jsx("div",{className:`mt-1 h-2.5 w-2.5 shrink-0 rounded-full ${y.type==="error"?"bg-white":"bg-emerald-500 animate-pulse"}`}),e.jsx("span",{className:"min-w-0 flex-1 whitespace-pre-line text-left",children:y.message}),y.type==="error"&&e.jsx("button",{type:"button",onClick:()=>A({show:!1,message:"",type:"success"}),className:"grid h-7 w-7 shrink-0 place-items-center rounded-full bg-white/15 text-white transition-colors hover:bg-white/25","aria-label":"Dismiss message",children:e.jsx(V,{className:"h-4 w-4"})})]})}),e.jsx("div",{className:"relative z-10 mx-auto w-full max-w-[440px]",children:e.jsxs("div",{className:"relative overflow-hidden rounded-[28px] border border-emerald-300/[0.12] bg-[#0a1418]/95 p-4 shadow-[0_28px_80px_rgba(0,0,0,0.45)] backdrop-blur-3xl sm:p-6",children:[e.jsx("div",{className:"absolute inset-x-10 to
3p-0 h-px bg-gradient-to-r from-transparent via-emerald-300/60 to-transparent"}),e.jsxs("div",{className:"relative flex flex-col gap-4 sm:gap-5",children:[e.jsxs("div",{className:"flex flex-col items-center gap-2 pb-1 text-center",children:[e.jsx(pe,{markClassName:"h-12 w-12",wordmarkClassName:"text-lg sm:text-xl"}),e.jsx("h1",{className:"mt-1 font-display text-2xl font-black tracking-tight text-white",children:b?"Continue to your resume":m?"Sign in to continue":"Start your free trial"}),e.jsx("p",{className:"max-w-sm text-xs leading-5 text-slate-400",children:b?"Create, edit and preview free. Pay ₹49 only when you export your finished PDF + DOCX.":m?`Log in or create your account to purchase ${q}.`:"Get 30 minutes free. No card required."})]}),m&&e.jsx("div",{className:"rounded-2xl border border-emerald-400/20 bg-emerald-400/[0.07] p-3.5 sm:p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl border border-emerald-300/15 bg-emerald-400/10",children:e.jsx(be,{className:"h-4 w-4 text-emerald-300"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-[0.16em] text-emerald-300/75",children:"Secure checkout"}),e.jsx("p",{className:"mt-1 text-sm font-bold text-white",children:q}),e.jsx("p",{className:"mt-1 text-xs leading-5 text-slate-400",children:"After sign-in, review the plan and complete your payment securely."})]})]})}),e.jsxs("button",{type:"button",onClick:Q,disabled:l,className:"flex min-h-12 w-full items-center justify-center gap-3 rounded-2xl border border-white/10 bg-white text-sm font-bold text-slate-950 transition-all hover:bg-slate-100 disabled:cursor-not-allowed disabled:opacity-70",children:[e.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-slate-950 text-xs font-black text-white",children:"G"}),"Continue with Google"]}),e.jsx("div",{className:"grid grid-cols-3 gap-2 text-center",children:(b?["Free editing","Full preview","₹49 PDF + DOCX"]:m?["Secure payment","Instant credit","No auto-renew"]:["30 min free","No card","Instant access"]).map(t=>e.jsx("div",{className:"flex min-h-11 items-center justify-center rounded-xl border border-white/[0.07] bg-white/[0.025] px-2 py-2 text-[10px] font-semibold leading-4 text-slate-400 sm:text-[11px]",children:t},t))}),e.jsxs("div",{className:"flex items-center gap-3 text-[11px] uppercase tracking-[0.18em] text-slate-500",children:[e.jsx("span",{className:"h-px flex-1 bg-white/10"}),e.jsx("span",{children:"Email option"}),e.jsx("span",{className:"h-px flex-1 bg-white/10"})]}),e.jsxs("div",{className:"relative bg-slate-950/50 p-1 rounded-xl flex",children:[e.jsx("div",{className:`absolute top-1 bottom-1 w-[calc(50%-4px)] bg-slate-800/80 rounded-lg border border-white/5 shadow-sm transition-all duration-300 ease-out ${n==="login"?"left-1":"left-[calc(50%+2px)]"}`}),e.jsx("button",{onClick:()=>O("login"),className:`flex-1 py-2 text-sm font-semibold rounded-lg relative z-10 transition-colors duration-300 ${n==="login"?"text-white":"text-slate-500 hover:text-slate-300"}`,children:"Log In"}),e.jsx("button",{onClick:()=>O("signup"),className:`flex-1 py-2 text-sm font-semibold rounded-lg relative z-10 transition-colors duration-300 ${n==="signup"?"text-white":"text-slate-500 hover:text-slate-300"}`,children:"Sign Up"})]}),e.jsxs("div",{className:`relative overflow-hidden transition-all duration-300 ${n==="signup"?"min-h-[480px]":"min-h-[380px]"}`,children:[e.jsx("div",{className:`absolute inset-0 w-full transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)] transform ${n==="login"?"opacity-100 translate-x-0 pointer-events-auto":"opacity-0 -translate-x-[20%] pointer-events-none"}`,children:e.jsxs("form",{onSubmit:W,className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 transition-colors group-focus-within:text-green-400",children:e.jsx(I,{size:20})}),e.jsx("input",{type:"email",placeholder:"Email address",value:i.email,onChange:t=>x({...i,email:t.target.value}),className:"w-full bg-slate-950/50 border border-transparent focus:border-green-500/50 focus:bg-slate-900/80 rounded-2xl py-4 pl-12 pr-4 text-sm font-medium placeholder:text-slate-600 outline-none transition-all duration-300",required:!0})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 transition-colors group-focus-within:text-green-400",children:e.jsx(R,{size:20})}),e.jsx("input",{type:"password",placeholder:"Password",value:i.password,onChange:t=>x({...i,password:t.target.value}),className:"w-full bg-slate-950/50 border border-transparent focus:border-green-500/50 focus:bg-slate-900/80 rounded-2xl py-4 pl-12 pr-4 text-sm font-medium placeholder:text-slate-600 outline-none transition-all duration-300",required:!0})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-slate-400 mt-1",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer group",children:[e.jsxs("div",{className:"w-5 h-5 rounded-md bg-slate-950/50 border border-white/10 flex items-center justify-center transition-colors group-hover:border-green-500/50",children:[e.jsx("input",{type:"checkbox",className:"peer hidden"}),e.jsx(we,{size:12,className:"text-green-400 opacity-0 peer-checked:opacity-100 transition-opacity",strokeWidth:3})]}),e.jsx("span",{className:"group-hover:text-slate-300 transition-colors",children:"Remember me"})]}),e.jsx("button",{type:"button",onClick:()=>f(!0),className:"hover:text-green-400 transition-colors",children:"Forgot password?"})]}),e.jsx("button",{type:"submit",disabled:l,className:"w-full bg-gradient-to-r from-green-500 to-green-600 hover:from-green-400 hover:to-green-500 text-white font-semibold py-3 rounded-xl transition-all duration-300 transform active:scale-[0.98] shadow-lg shadow-green-500/25 disabled:opacity-70 disabled:cursor-not-allowed flex items-center justify-center gap-2 mt-2",children:l?e.jsx("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):ee})]})}),e.jsx("div",{className:`absolute inset-0 w-full transition-all duration-500 ease-[
3cubic-bezier(0.34,1.56,0.64,1)] transform ${n==="signup"?"opacity-100 translate-x-0 pointer-events-auto":"opacity-0 translate-x-[20%] pointer-events-none"}`,children:e.jsxs("form",{onSubmit:W,className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 transition-colors group-focus-within:text-emerald-400",children:e.jsx(ve,{size:20})}),e.jsx("input",{type:"text",placeholder:"Full Name",value:i.name,onChange:t=>x({...i,name:t.target.value}),className:"w-full bg-slate-950/50 border border-transparent focus:border-emerald-500/50 focus:bg-slate-900/80 rounded-2xl py-4 pl-12 pr-4 text-sm font-medium placeholder:text-slate-600 outline-none transition-all duration-300",required:!0})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 transition-colors group-focus-within:text-emerald-400",children:e.jsx(I,{size:20})}),e.jsx("input",{type:"email",placeholder:"Email address",value:i.email,onChange:t=>x({...i,email:t.target.value}),className:"w-full bg-slate-950/50 border border-transparent focus:border-emerald-500/50 focus:bg-slate-900/80 rounded-2xl py-4 pl-12 pr-4 text-sm font-medium placeholder:text-slate-600 outline-none transition-all duration-300",required:!0})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 transition-colors group-focus-within:text-emerald-400",children:e.jsx(R,{size:20})}),e.jsx("input",{type:"password",placeholder:"Create Password",value:i.password,onChange:t=>x({...i,password:t.target.value}),className:"w-full bg-slate-950/50 border border-transparent focus:border-emerald-500/50 focus:bg-slate-900/80 rounded-2xl py-4 pl-12 pr-4 text-sm font-medium placeholder:text-slate-600 outline-none transition-all duration-300",required:!0})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 transition-colors group-focus-within:text-emerald-400",children:e.jsx(ye,{size:20})}),e.jsx("input",{type:"text",placeholder:"Gift Code (Optional)",value:i.referralCode,onChange:t=>x({...i,referralCode:t.target.value.toUpperCase()}),className:"w-full bg-slate-950/50 border border-transparent focus:border-emerald-500/50 focus:bg-slate-900/80 rounded-2xl py-4 pl-12 pr-4 text-sm font-medium placeholder:text-slate-600 outline-none transition-all duration-300 uppercase"}),i.referralCode&&e.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-emerald-400 text-xs font-bold",children:"Applied"})]})]}),e.jsx("button",{type:"submit",disabled:l,className:"w-full bg-gradient-to-r from-emerald-500 to-emerald-600 hover:from-emerald-400 hover:to-emerald-500 text-white font-semibold py-3 rounded-xl transition-all duration-300 transform active:scale-[0.98] shadow-lg shadow-emerald-500/25 disabled:opacity-70 disabled:cursor-not-allowed flex items-center justify-center gap-2 mt-2",children:l?e.jsx("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):te})]})})]})]})]})})]}),new URLSearchParams(window.location.search).get("mode")==="resetPassword"&&e.jsx("div",{className:"fixed inset-0 z-[210] flex items-center justify-center p-4 bg-black/90 backdrop-blur-sm",children:e.jsxs("div",{className:"bg-slate-900 rounded-3xl p-8 max-w-md w-full border border-white/10 shadow-2xl",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-green-500/20 flex items-center justify-center",children:e.jsx(R,{className:"w-6 h-6 text-green-400"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-white",children:"Create new password"}),e.jsx("p",{className:"text-xs text-gray-400",children:P.email||"Checking your reset link..."})]})]}),P.checking?e.jsx("div",{className:"flex justify-center py-8",children:e.jsx("div",{className:"w-7 h-7 border-2 border-white/30 border-t-green-400 rounded-full animate-spin"})}):P.valid?e.jsxs("form",{onSubmit:J,className:"space-y-4",children:[e.jsx("input",{type:"password",autoComplete:"new-password",placeholder:"New password (minimum 6 characters)",value:k,onChange:t=>z(t.target.value),className:"w-full bg-slate-950/50 border border-white/10 focus:border-green-500/50 rounded-xl py-3 px-4 text-sm outline-none",required:!0,minLength:6}),e.jsx("input",{type:"password",autoComplete:"new-password",placeholder:"Confirm new password",value:$,onChange:t=>D(t.target.value),className:"w-full bg-slate-950/50 border border-white/10 focus:border-green-500/50 rounded-xl py-3 px-4 text-sm outline-none",required:!0,minLength:6}),e.jsx("button",{type:"submit",disabled:l,className:"w-full bg-green-600 hover:bg-green-500 text-white font-semibold py-3 rounded-xl disabled:opacity-50",children:l?"Changing password...":"Change Password"})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-red-300",children:P.error||"This reset link is invali
3d."}),e.jsx("button",{type:"button",onClick:()=>{window.history.replaceState({},"","/login"),f(!0),S({checking:!1,valid:!1,email:"",error:""})},className:"w-full bg-green-600 hover:bg-green-500 text-white font-semibold py-3 rounded-xl",children:"Request a new link"})]})]})}),K&&e.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm",onClick:()=>f(!1),children:e.jsxs("div",{className:"bg-slate-900 rounded-3xl p-8 max-w-md w-full border border-white/10 shadow-2xl relative",onClick:t=>t.stopPropagation(),children:[e.jsx("button",{onClick:()=>f(!1),className:"absolute top-6 right-6 text-gray-400 hover:text-white transition-colors",children:e.jsx(V,{className:"w-6 h-6"})}),e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-green-500/20 flex items-center justify-center",children:e.jsx(R,{className:"w-6 h-6 text-green-400"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-white",children:"Reset Password"}),e.jsx("p",{className:"text-xs text-gray-400",children:"We'll send you a reset link"})]})]}),e.jsxs("form",{onSubmit:Y,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-400 uppercase tracking-wider mb-2",children:"Email Address"}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 transition-colors group-focus-within:text-green-400",children:e.jsx(I,{size:20})}),e.jsx("input",{type:"email",placeholder:"Enter your email",value:L,onChange:t=>T(t.target.value),className:"w-full bg-slate-950/50 border border-white/10 focus:border-green-500/50 focus:bg-slate-900/80 rounded-xl py-3 pl-12 pr-4 text-sm font-medium placeholder:text-slate-600 outline-none transition-all",required:!0})]})]}),e.jsx("div",{className:"bg-green-500/10 border border-green-500/20 rounded-xl p-4",children:e.jsx("p",{className:"text-xs text-green-300",children:"💡 Enter your email address and we'll send you a link to reset your password."})}),e.jsxs("div",{className:"flex gap-3 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>f(!1),className:"flex-1 bg-white/5 hover:bg-white/10 text-white font-semibold py-3 rounded-xl transition-all border border-white/10",children:"Cancel"}),e.jsx("button",{type:"submit",disabled:l,className:"flex-1 bg-green-600 hover:bg-green-500 text-white font-semibold py-3 rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:l?e.jsx("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):"Send Reset Link"})]})]})]})})]})}export{$e 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.