1import{r as o,u as x,a as u,j as e,H as b,F as f,b as y,c as h,d as v,e as j,f as S,L as w}from"./index-YTesy1ik.js";const I=()=>{const[a,l]=o.useState(""),[n,d]=o.useState(""),[i,s]=o.useState(""),{login:p}=x(),c=u(),g=async t=>{t.preventDefault(),s("");try{await p(a,n),c("/")}catch(m){console.error("Failed to login",m),s("Invalid email or password.")}},r={container:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem",position:"relative",overflow:"hidden"},splitLayout:{display:"flex",width:"100%",maxWidth:"1100px",background:"var(--glass-bg)",backdropFilter:"blur(30px) saturate(180%)",WebkitBackdropFilter:"blur(30px) saturate(180%)",borderRadius:"var(--radius-xl)",border:"1px solid var(--glass-border)",boxShadow:"var(--glass-shadow)",overflow:"hidden",minHeight:"650px",position:"relative",zIndex:1},imageSection:{flex:1.2,background:"linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%)",display:"flex",flexDirection:"column",justifyContent:"center",padding:"4rem 3rem",position:"relative",color:"#fff"},promoTitle:{fontSize:"clamp(2rem, 5vw, 3rem)",fontWeight:"900",fontFamily:"var(--font-display)",marginBottom:"1rem",background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",filter:"drop-shadow(0 0 20px rgba(102, 126, 234, 0.3))"},promoText:{fontSize:"1.1rem",lineHeight:1.6,color:"rgba(255,255,255,0.8)",marginBottom:"2.5rem"},featureList:{listStyle:"none",padding:0,margin:0},featureItem:{display:"flex",alignItems:"center",gap:"15px",marginBottom:"1.5rem",fontSize:"1.05rem",color:"rgba(255,255,255,0.9)"},featureIcon:{color:"var(--neon-blue)",fontSize:"1.2rem",background:"rgba(0, 242, 254, 0.1)",padding:"10px",borderRadius:"12px",width:"42px",height:"42px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(0, 242, 254, 0.2)",boxShadow:"0 0 15px rgba(0, 242, 254, 0.1)"},formSection:{flex:1,padding:"4rem 3rem",display:"flex",flexDirection:"column",justifyContent:"center",background:"rgba(10, 1, 24, 0.4)"},formTitle:{fontSize:"2.2rem",fontWeight:"800",fontFamily:"var(--font-display)",color:"#fff",marginBottom:"0.5rem",display:"flex",alignItems:"center",gap:"15px"},formSubtitle:{color:"rgba(255, 255, 255, 0.5)",marginBottom:"2.5rem",fontSize:"1rem"},inputGroup:{position:"relative",marginBottom:"1.5rem"},inputIcon:{position:"absolute",left:"18px",top:"50%",transform:"translateY(-50%)",color:"var(--neon-blue)",fontSize:"1.1rem",zIndex:10},input:{width:"100%",padding:"16px 16px 16px 52px",background:"rgba(255, 255, 255, 0.03)",border:"1px solid var(--glass-border)",borderRadius:"16px",color:"#fff",fontSize:"1rem",outline:"none",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",fontFamily:"var(--font-primary)"},submitBtn:{width:"100%",padding:"16px",borderRadius:"50px",background:"var(--gradient-primary)",color:"#fff",border:"none",fontSize:"1.1rem",fontWeight:"700",fontFamily:"var(--font-display)",cursor:"pointer",marginTop:"1rem",boxShadow:"0 10px 30px rgba(102, 126, 234, 0.4)",transition:"all 0.3s var(--transition-elastic)",textTransform:"uppercase",letterSpacing:"1px"},errorMsg:{color:"var(--neon-pink)",background:"rgba(255, 0, 128, 0.1)",padding:"12px",borderRadius:"12px",marginBottom:"1.5rem",textAlign:"center",fontSize:"0.9rem",border:"1px solid rgba(255, 0, 128, 0.2)",animation:"fadeIn 0.4s ease"},hint:{textAlign:"center",marginTop:"2.5rem",color:"rgba(255, 255, 255, 0.5)",fontSize:"0.95rem"},link:{color:"var(--neon-purple)",textDecoration:"none",fontWeight:"600",marginLeft:"8px",transition:"all 0.3s ease"}};return e.jsxs("div",{style:r.container,children:[e.jsxs(b,{children:[e.jsx("title",{children:"Login | PeerNotez"}),e.jsx("meta",{name:"description",content:"Log in to PeerNotez."}),e.jsx("link",{rel:"canonical",href:"https://peernotez.netlify.app/login"})]}),e.jsxs("div",{style:r.splitLayout,className:"login-split-layout",children:[e.jsxs("div",{style:r.imageSection,className:"login-image-section",children:[e.jsx("h2",{style:r.promoTitle,children:"Welcome Back!"}),e.jsx("p",{style:r.promoText,children:"Continue your journey towards academic excellence with the world's most modern student community."}),e.jsxs("ul",{style:r.featureList,children:[e.jsxs("li",{style:r.featureItem,children:[e.jsx("div",{style:r.featureIcon,children:e.jsx(f,{})}),e.jsx("span",{children:"Personalized Study Insights"})]}),e.jsxs("li",{style:r.featureItem,children:[e.jsx("div",{style:r.featureIcon,children:e.jsx(y,{})}),e.jsx("span",{children:"Global Network of Scholars"})]}),e.jsxs("li",{style:r.featureItem,children:[e.jsx("div",{style:r.featureIcon,children:e.jsx(h,{})}),e.jsx("span",{children:"Seamless Content Management"})]})]}),e.jsx("div",{style:{position:"absolute",bottom:"-50px",right:"-50px",width:"300px",height:"300px",background:"radial-gradient(circle, var(--neon-purple) 0%, transparent 70%)",filter:"blur(80px)",opacity:.2,zIndex:0}})]}),e.jsxs("div",{className:"form-section",style:r.formSection,children:[e.jsxs("h2",{style:r.formTitle,children:[e.jsx(v,{style:{color:"var(--neon-blue)"}})," Sign In"]}),e.jsx("p",{style:r.formSubtitle,children:"Log in to manage your notes"}),e.jsxs("form",{onSubmit:g,children:[i&&e.jsx("div",{style:r.errorMsg,children:i}),e.jsxs("div",{style:r.inputGroup,children:[e.jsx(j,{style:r.inputIcon}),e.jsx("input",{type:"email",value:a,onChange:t=>l(t.target.value),placeholder:"Email Address",required:!0,style:r.input,onFocus:t=>{t.target.style.borderColor="var(--neon-blue)",t.target.style.boxShadow="0 0 20px rgba(0, 242, 254, 0.2)",t.target.style.background="rgba(255, 255, 255, 0.08)"},onBlur:t=>{t.target.style.borderColor="var(--glass-border)",t.target.style.boxShadow="none",t.target.style.background="rgba(255, 255, 255, 0.03)"}})]}),e.jsxs("div",{style:r.inputGroup,children:[e.jsx(S,{style:r.inputIcon}),e.jsx("input",{type:"password",value:n,onChange:t=>d(t.target.value),placeholder:"Password",required:!0,style:r.input,onFocus:t=>{t.target.style.borderColor="var(--neon-blue)",t.target.style.boxShadow="0 0 20px rgba(0, 242, 254, 0.2)",t.target.style.background="rgba(255, 255, 255, 0.08)"},onBlur:t=>{t.target.style.borderColor="var(--glass-border)",t.target.style.boxShadow="none",t.target.style.background="rgba(255, 255, 255, 0.03)"}})]}),e.jsx("button",{type:"submit",style:r.submitBtn,onMouseEnter:t=>{t.target.style.transform="translateY(-3px) scale(1.02)",t.target.style.boxShadow="0 15px 40px rgba(102, 126, 234, 0.6)"},onMouseLeave:t=>{t.target.style.transform="translateY(0) scale(1)",t.target.style.boxShadow="0 10px 30px rgba(102, 126, 234, 0.4)"},children:"Log In"}),e.jsxs("div",{style:r.hint,children:["Don't have an account?",e.jsx(w,{to:"/signup",style:r.link,children:"Create One"})]})]})]})]}),e.jsx("style",{children:` 2 @media (max-width: 900px) { 3 .login-image-section { 4 display: none !important; 5 } 6 .login-split-layout { 7 min-height: auto !important; 8 } 9 .container { 10 width: 100%; 11 padding: 0.5rem 0rem; 12 } 13 .form-section{ 14 padding:4rem 1rem !important; 15 } 16 } 17 @keyframes fadeIn { 18 from { opacity: 0; transform: translateY(-10px); } 19 to { opacity: 1; transform: translateY(0); } 20 } 21 `})]})};export{I 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.