1import{a as m,r as u,_ as x,j as e,T as a}from"./index-BNIjf71t.js";const p=()=>e.jsx("style",{children:` 2 @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap'); 3 4 select option { 5 background-color: #1e1b4b; 6 color: #facc15; 7 } 8 9 select option:hover { 10 background-color: #facc15; 11 color: #1e1b4b; 12 } 13 14 input::placeholder { 15 font-size: 0.7rem; 16 opacity: 0.8; 17 } 18 `}),h=()=>{const o=m(),[l,i]=u.useState(""),[c,{loading:r}]=x(),d=async s=>{s.preventDefault();const t=l.trim();if(!t){a.error("Please enter your email.");return}try{await c({variables:{email:t}}),a.success(`OTP sent to ${t}`),o("/reset",{state:{email:t}})}catch(n){console.error(n),a.error(n.message||"Failed to send OTP. User may not exist.")}};return e.jsxs(e.Fragment,{children:[e.jsx(p,{}),e.jsx("div",{className:"font-press-start bg-black text-white min-h-screen flex items-center justify-center overflow-hidden relative p-4",style:{backgroundImage:"url('shaastra-home-page-bg.jpg')",backgroundRepeat:"repeat",backgroundSize:"200px",imageRendering:"pixelated"},children:e.jsx("div",{className:"min-h-screen flex items-center justify-center text-white w-full",children:e.jsxs("div",{className:"backdrop-blur-md p-10 rounded-2xl shadow-2xl w-[95%] max-w-lg",style:{backgroundColor:"rgba(0, 0, 0, 0.7)",backdropFilter:"blur(6px)"},children:[e.jsx("h1",{className:"text-center text-3xl mb-6 text-yellow-400 tracking-wider",children:"SHAASTRA"}),e.jsx("h2",{className:"text-center text-xl mb-10 text-yellow-500",children:"Forgot Password"}),e.jsxs("form",{onSubmit:d,className:"space-y-8",children:[e.jsx("div",{children:e.jsx("input",{type:"email",name:"email",placeholder:"Enter your registered email",value:l,onChange:s=>i(s.target.value),className:"p-4 rounded-md bg-gray-800/50 placeholder-gray-300 w-full border border-gray-500 focus:outline-none focus:ring-2 focus:ring-yellow-500",required:!0})}),e.jsx("div",{className:"text-center",children:e.jsx("button",{type:"submit",disabled:r,className:`w-full bg-gray-600 hover:bg-gray-700 text-yellow-500 font-bold py-3 rounded-md transition-all duration-300 hover:cursor-pointer ${r?"opacity-50 cursor-not-allowed":""}`,children:r?"SENDING...":"Send OTP"})}),e.jsx("p",{className:"text-center text-sm mt-4 text-gray-300",children:e.jsx("span",{onClick:()=>o("/login"),className:"text-yellow-600 hover:underline cursor-pointer",children:"Go back to Login"})})]})]})})})]})};export{h 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.