1import{n as d,f as o,i as x,j as s,v as m}from"./index-DUOydnzc.js";const p=()=>{const r=d(),{isAuthenticated:a,user:e}=o();x.useEffect(()=>{var l,t,i;if(a&&e){const n=((l=e.roles)==null?void 0:l.includes("admin"))||((t=e.roles)==null?void 0:t.includes("director"))||((i=e.roles)==null?void 0:i.includes("director_editor"));r(n?"/panel-admin":"/perfil")}},[a,e,r]);const c=()=>{var t,i,n;const l=((t=e==null?void 0:e.roles)==null?void 0:t.includes("admin"))||((i=e==null?void 0:e.roles)==null?void 0:i.includes("director"))||((n=e==null?void 0:e.roles)==null?void 0:n.includes("director_editor"));r(l?"/panel-admin":"/perfil")};return a?null:s.jsxs("div",{className:"min-h-screen bg-soft-gradient-light relative overflow-hidden flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:[s.jsx("div",{className:"absolute inset-y-0 left-0 w-64 bg-primary-500/10 blur-3xl"}),s.jsx("div",{className:"absolute -top-20 right-10 w-72 h-72 bg-pastel-blue/20 rounded-full blur-3xl"}),s.jsx("div",{className:"relative w-full max-w-md",children:s.jsxs("div",{className:"rounded-3xl bg-white/70 backdrop-blur-md border border-white/60 shadow-soft-xl p-8 sm:p-10 space-y-8",children:[s.jsxs("div",{className:"text-center space-y-3",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-br from-primary-500 to-primary-600 text-white text-2xl font-bold",children:"ACA"}),s.jsx("h2",{className:"text-2xl font-bold text-neutral-900",children:"Iniciar Sesión"}),s.jsx("p",{className:"text-sm text-neutral-500",children:"Accede con tu cuenta de socio"})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsx(m,{onSuccess:c}),s.jsx("div",{className:"text-center text-sm text-neutral-500",children:s.jsxs("span",{className:"inline-flex flex-wrap items-center justify-center gap-1",children:["¿Aún no eres socio?"," ",s.jsx("span",{className:"font-semibold text-neutral-500 rounded-lg px-1",children:"Cerrado temporalmente"})]})})]})]})})]})};export{p as AuthPage,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.