1import{r as s,j as e,a3 as i,an as h}from"./index-1VVh9pK_.js";const p=()=>{const[t,n]=s.useState(""),[a,d]=s.useState(!1),[x,m]=s.useState(!1),[o,r]=s.useState(""),u=async l=>{if(l.preventDefault(),!!t){d(!0),r("");try{const c=await h({email:t});c.code===200?m(!0):r(c.msg||"åé失败ï¼è¯·ç¨åéè¯")}catch{r("ç½ç»é误ï¼è¯·ç¨åéè¯")}finally{d(!1)}}};return e.jsx("div",{className:"min-h-[calc(100vh-80px)] flex items-center justify-center py-12 px-4",style:{backgroundColor:"#F4F7FA"},children:e.jsx("div",{className:"max-w-md w-full",children:e.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-slate-100 p-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"w-16 h-16 flex items-center justify-center mx-auto mb-4 rounded-full",style:{backgroundColor:"#FEF2F2"},children:e.jsx("i",{className:"ri-lock-password-line text-3xl text-red-600"})}),e.jsx("h2",{className:"text-2xl font-bold mb-2",style:{color:"#1B2633"},children:"æ¾åå¯ç "}),e.jsx("p",{className:"text-slate-600 text-sm",children:"è¾å
¥æ¨ç注åé®ç®±ï¼æä»¬å°åééç½®é¾æ¥"})]}),x?e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"bg-red-50 border border-red-100 rounded-lg p-4 mb-6",children:[e.jsx("i",{className:"ri-mail-check-line text-2xl text-red-600 mb-2 block"}),e.jsx("p",{className:"text-sm text-red-700 font-medium",children:"éç½®é®ä»¶å·²åé"}),e.jsxs("p",{className:"text-xs text-red-600 mt-1",children:["è¯·æ£æ¥æ¨çé®ç®± ",e.jsx("strong",{children:t}),"ï¼ç¹å»é®ä»¶ä¸ç龿¥éç½®å¯ç "]})]}),e.jsx(i,{to:"/client-portal",className:"text-sm text-red-600 hover:text-red-700 font-medium",children:"è¿åç»å½"})]}):e.jsxs("form",{className:"space-y-5",onSubmit:u,children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",style:{color:"#1B2633"},children:"注åé®ç®±"}),e.jsx("input",{type:"email",value:t,onChange:l=>n(l.target.value),placeholder:"请è¾å
¥æ³¨åé®ç®±",required:!0,className:"w-full px-4 py-2.5 border border-slate-200 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-red-600 text-sm transition-all"})]}),o&&e.jsx("p",{className:"text-sm text-red-600 bg-red-50 px-3 py-2 rounded-lg",children:o}),e.jsx("button",{type:"submit",disabled:a,className:"w-full px-6 py-3 bg-red-600 text-white font-semibold rounded-lg hover:bg-red-700 transition-colors disabled:opacity-60",children:a?"åéä¸...":"åééç½®é¾æ¥"}),e.jsx("div",{className:"text-center text-sm text-slate-600",children:e.jsx(i,{to:"/client-portal",className:"text-red-600 hover:text-red-700 font-medium",children:"è¿åç»å½"})})]})]})})})};export{p 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.