1import{c as v,b as N,r as t,j as e,B as n,H as f,C as y,f as w,g as C,h as k,e as L,k as c,I as l,L as S,A as E}from"./index-CbUVcLen.js";import{L as o}from"./label-D6ncC9lR.js";import{M as P}from"./mail-ZaXhWy4N.js";import{K as H}from"./key-round-BygLDM8Z.js";function F(){const i=v();N();const[r,d]=t.useState("signin"),[m,u]=t.useState(""),[x,p]=t.useState(""),[h,j]=t.useState(""),[g,I]=t.useState(!1),a=!0,b=async s=>{s.preventDefault()};return e.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-gradient-to-b from-background to-secondary/30 p-6",children:[e.jsx(n,{variant:"ghost",size:"icon","aria-label":"Home",className:"absolute right-4 top-4",onClick:()=>i("/"),children:e.jsx(f,{className:"h-5 w-5"})}),e.jsxs(y,{className:"w-full max-w-md shadow-soft animate-fade-in",children:[e.jsxs(w,{className:"pb-2 text-center",children:[e.jsxs(C,{className:"text-2xl",children:[e.jsx("span",{className:"text-[hsl(var(--brand-cobalt))]",children:"Epiphany"}),e.jsx("span",{className:"text-[hsl(var(--brand-gold))]",children:"360"})]}),e.jsx(k,{className:"mt-2",children:"Patient Portal â your report and your scores"})]}),e.jsxs(L,{className:"relative pt-4",children:[e.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center rounded-b-lg bg-background/60 backdrop-blur-[2px]",children:e.jsxs("div",{className:"max-w-xs rounded-lg border border-border bg-muted/80 px-6 py-4 text-center shadow-sm",children:[e.jsx(c,{className:"mx-auto mb-2 h-5 w-5 text-muted-foreground"}),e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Under Construction"}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Coming Soon"})]})}),e.jsx("div",{className:"pointer-events-none select-none opacity-40",children:e.jsxs("form",{onSubmit:b,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"patient-email",children:"Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(P,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(l,{id:"patient-email",type:"email",placeholder:"[email protected]",value:m,onChange:s=>u(s.target.value),className:"pl-10",required:!0,disabled:a})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"patient-password",children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(c,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(l,{id:"patient-password",type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:x,onChange:s=>p(s.target.value),className:"pl-10",required:!0,minLength:6,disabled:a})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(o,{htmlFor:"patient-invite",children:["Clinic code ",r==="signup"?"(if your clinic gave you one)":"(optional)"]}),e.jsxs("div",{className:"relative",children:[e.jsx(H,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(l,{id:"patient-invite",type:"text",placeholder:"E360-XXXX",value:h,onChange:s=>j(s.target.value),className:"pl-10",disabled:a})]}),e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"A clinic code links you to your own record. Without one you can still create an account and connect to your clinic later."})]}),e.jsxs(n,{type:"submit",className:"w-full",disabled:a,children:[g&&e.jsx(S,{className:"mr-2 h-4 w-4 animate-spin"}),r==="signin"?"Sign In":"Create Account"]}),e.jsx(n,{type:"button",variant:"ghost",className:"w-full",disabled:a,onClick:()=>d(r==="signin"?"signup":"signin"),children:r==="signin"?"Create an account":"I already have an account"})]})}),e.jsxs("div",{className:"mt-6 flex items-center justify-between border-t border-border/60 pt-4",children:[e.jsxs(n,{variant:"ghost",size:"sm",onClick:()=>i("/"),children:[e.jsx(E,{className:"mr-2 h-4 w-4"}),"Back to Home"]}),e.jsx(n,{variant:"outline",size:"sm",onClick:()=>i("/patient-portal"),children:"Preview the portal"})]})]})]})]})}export{F 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.