(()=>{var e={};e.id=4665,e.ids=[4665],e.modules={53524:e=>{"use strict";e.exports=require("@prisma/client")},47849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},55403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},94749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},50852:e=>{"use strict";e.exports=require("async_hooks")},32081:e=>{"use strict";e.exports=require("child_process")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},73292:e=>{"use strict";e.exports=require("fs/promises")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},76224:e=>{"use strict";e.exports=require("tty")},73837:e=>{"use strict";e.exports=require("util")},14322:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>i.ZP,__next_app__:()=>u,originalPathname:()=>d,pages:()=>c,routeModule:()=>x,tree:()=>o});var r=s(50482),a=s(69108),i=s(83543),l=s(68300),n={};for(let e in l)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(n[e]=()=>l[e]);s.d(t,n);let o=["",{children:["(auth)",{children:["login",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,93261)),"C:\\test2\\pagecraft-ai\\src\\app\\(auth)\\login\\page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,84295)),"C:\\test2\\pagecraft-ai\\src\\app\\(auth)\\layout.tsx"]}]},{layout:[()=>Promise.resolve().then(s.bind(s,43625)),"C:\\test2\\pagecraft-ai\\src\\app\\layout.tsx"],error:[()=>Promise.resolve().then(s.bind(s,24117)),"C:\\test2\\pagecraft-ai\\src\\app\\error.tsx"],"not-found":[()=>Promise.resolve().then(s.bind(s,48206)),"C:\\test2\\pagecraft-ai\\src\\app\\not-found.tsx"]}],c=["C:\\test2\\pagecraft-ai\\src\\app\\(auth)\\login\\page.tsx"],d="/(auth)/login/page",u={require:s,loadChunk:()=>Promise.resolve()},x=new r.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/(auth)/login/page",pathname:"/login",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:o}})},39071:(e,t,s)=>{Promise.resolve().then(s.bind(s,22233))},87090:(e,t,s)=>{Promise.resolve().then(s.bind(s,3473))},66138:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},1222:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]])},53148:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},42739:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},47958:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},22233:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var r=s(95344),a=s(30473),i=s(56506),l=s(89410),n=s(93109);function o({children:e}){let{siteName:t,logoUrl:s,logoSize:o}=(0,n.T)();return(0,r.jsxs)("div",{className:"min-h-screen flex bg-[#0a0a14]",children:[(0,r.jsxs)("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden flex-col items-center justify-center p-12",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-indigo-900/40 via-[#0a0a14] to-purple-900/30"}),r.jsx("div",{className:"absolute top-1/4 left-1/4 w-72 h-72 bg-indigo-600/20 rounded-full blur-3xl"}),r.jsx("div",{className:"absolute bottom-1/3 right-1/4 w-96 h-96 bg-purple-600/15 rounded-full blur-3xl"}),r.jsx("div",{className:"absolute top-1/2 left-1/2 w-48 h-48 bg-blue-500/10 rounded-full blur-2xl"}),(0,r.jsxs)("div",{className:"relative z-10 text-center max-w-md",children:[(0,r.jsxs)(i.default,{href:"/",className:"inline-flex items-center gap-3 mb-10",children:[s?r.jsx(l.default,{src:s,alt:t,width:1.5*o,height:1.5*o,className:"object-contain",unoptimized:!0}):r.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center shadow-lg shadow-indigo-500/30",children:r.jsx(a.Z,{className:"h-6 w-6 text-white"})}),r.jsx("span",{className:"text-3xl font-bold text-white",children:t})]}),(0,r.jsxs)("h2",{className:"text-4xl font-bold text-white leading-tight mb-4",children:["أنشئ صفحات هبوط",r.jsx("span",{className:"block bg-gradient-to-r from-indigo-400 to-purple-400 bg-clip-text text-transparent",children:"بالذكاء الاصطناعي"})]}),r.jsx("p",{className:"text-gray-400 text-lg leading-relaxed mb-8",children:"حوّل صورة منتجك إلى صفحة تسويقية احترافية في ثوانٍ"}),r.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:["⚡ توليد فوري","\uD83C\uDFA8 تصميم احترافي","\uD83D\uDCCA تحليلات متقدمة","\uD83C\uDF10 نشر فوري"].map(e=>r.jsx("span",{className:"px-3 py-1.5 bg-white/[0.06] border border-white/[0.08] rounded-full text-sm text-gray-300",children:e},e))})]}),r.jsx("div",{className:"absolute bottom-8 left-0 right-0 flex justify-center gap-1",children:[void 0,void 0,void 0].map((e,t)=>r.jsx("div",{className:`h-1 rounded-full bg-indigo-500 ${0===t?"w-6":"w-2 opacity-40"}`},t))})]}),(0,r.jsxs)("div",{className:"w-full lg:w-1/2 flex flex-col items-center justify-center p-6 lg:p-12",children:[(0,r.jsxs)(i.default,{href:"/",className:"flex lg:hidden items-center gap-2 mb-8",children:[s?r.jsx(l.default,{src:s,alt:t,width:o,height:o,className:"object-contain",unoptimized:!0}):r.jsx("div",{className:"w-8 h-8 rounded-xl bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center",children:r.jsx(a.Z,{className:"h-4 w-4 text-white"})}),r.jsx("span",{className:"text-xl font-bold text-white",children:t})]}),r.jsx("div",{className:"w-full max-w-md",children:e})]})]})}},3473:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var r=s(95344),a=s(3729),i=s(47674),l=s(8428),n=s(56506),o=s(42739),c=s(66138),d=s(71206),u=s(47958),x=s(1222),p=s(53148),h=s(9885);function m(){return r.jsx(a.Suspense,{fallback:r.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:r.jsx(o.Z,{className:"h-8 w-8 animate-spin text-indigo-400"})}),children:r.jsx(f,{})})}function f(){let e=(0,l.useRouter)(),{t}=(0,h.Z)(),s=(0,l.useSearchParams)().get("callbackUrl")||"/dashboard",[m,f]=(0,a.useState)(""),[g,b]=(0,a.useState)(""),[y,j]=(0,a.useState)(!1),[v,w]=(0,a.useState)(""),[N,_]=(0,a.useState)(!1),k=async t=>{t.preventDefault(),w(""),_(!0);let r=await (0,i.signIn)("credentials",{email:m,password:g,redirect:!1});r?.error?(w(r.error),_(!1)):(e.push(s),e.refresh())};return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-8",children:[r.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:t("welcomeBack")}),r.jsx("p",{className:"text-gray-400",children:t("signInToAccount")})]}),v&&(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-6 rounded-xl bg-red-500/10 border border-red-500/20 text-red-400 text-sm",children:[r.jsx(c.Z,{className:"h-4 w-4 shrink-0"}),v]}),(0,r.jsxs)("form",{onSubmit:k,className:"space-y-5",children:[(0,r.jsxs)("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:t("email")}),(0,r.jsxs)("div",{className:"relative",children:[r.jsx(d.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-500"}),r.jsx("input",{type:"email",placeholder:"you@example.com",value:m,onChange:e=>f(e.target.value),required:!0,className:"w-full bg-white/[0.04] border border-white/[0.08] text-white rounded-xl pl-10 pr-4 py-3 text-sm placeholder:text-gray-600 focus:outline-none focus:border-indigo-500/60 focus:bg-white/[0.06] transition-all"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[r.jsx("label",{className:"block text-sm font-medium text-gray-300",children:t("password")}),r.jsx(n.default,{href:"/forgot-password",className:"text-xs text-indigo-400 hover:text-indigo-300 transition-colors",children:"نسيت كلمة المرور؟"})]}),(0,r.jsxs)("div",{className:"relative",children:[r.jsx(u.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-500"}),r.jsx("input",{type:y?"text":"password",placeholder:"••••••••",value:g,onChange:e=>b(e.target.value),required:!0,className:"w-full bg-white/[0.04] border border-white/[0.08] text-white rounded-xl pl-10 pr-11 py-3 text-sm placeholder:text-gray-600 focus:outline-none focus:border-indigo-500/60 focus:bg-white/[0.06] transition-all"}),r.jsx("button",{type:"button",onClick:()=>j(!y),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300 transition-colors",children:y?r.jsx(x.Z,{className:"h-4 w-4"}):r.jsx(p.Z,{className:"h-4 w-4"})})]})]}),(0,r.jsxs)("button",{type:"submit",disabled:N,className:"w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 disabled:opacity-60 disabled:cursor-not-allowed text-white font-semibold py-3 px-6 rounded-xl transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-500/20 mt-2",children:[N?r.jsx(o.Z,{className:"h-4 w-4 animate-spin"}):null,t(N?"signingIn":"signIn")]})]}),"true"===process.env.NEXT_PUBLIC_GOOGLE_ENABLED&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative my-6",children:[r.jsx("div",{className:"absolute inset-0 flex items-center",children:r.jsx("div",{className:"w-full border-t border-white/[0.06]"})}),r.jsx("div",{className:"relative flex justify-center",children:r.jsx("span",{className:"bg-[#0a0a14] px-4 text-xs text-gray-600 uppercase tracking-widest",children:t("or")})})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>(0,i.signIn)("google",{callbackUrl:s}),className:"w-full flex items-center justify-center gap-3 bg-white/[0.04] hover:bg-white/[0.07] border border-white/[0.08] text-gray-300 font-medium py-3 px-6 rounded-xl transition-all duration-200",children:[(0,r.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",children:[r.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),r.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),r.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),r.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),t("continueWithGoogle")]})]}),(0,r.jsxs)("p",{className:"text-center text-sm text-gray-500 mt-8",children:[t("dontHaveAccount")," ",r.jsx(n.default,{href:"/register",className:"text-indigo-400 hover:text-indigo-300 font-medium transition-colors",children:t("signUp")})]})]})}},48096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return a}});let s="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=s}}function a(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===s}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72973:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{isStaticGenBailoutError:function(){return n},staticGenerationBailout:function(){return c}});let r=s(48096),a=s(45869),i="NEXT_STATIC_GEN_BAILOUT";class l extends Error{constructor(...e){super(...e),this.code=i}}function n(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===i}function o(e,t){let{dynamic:s,link:r}=t||{};return"Page"+(s?' with `dynamic = "'+s+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(r?" See more info here: "+r:"")}let c=(e,t)=>{let{dynamic:s,link:i}=void 0===t?{}:t,n=a.staticGenerationAsyncStorage.getStore();if(!n)return!1;if(n.forceStatic)return!0;if(n.dynamicShouldError)throw new l(o(e,{link:i,dynamic:null!=s?s:"error"}));let c=o(e,{dynamic:s,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==n.postpone||n.postpone.call(n,e),n.revalidate=0,n.isStaticGeneration){let t=new r.DynamicServerError(c);throw n.dynamicUsageDescription=e,n.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84295:(e,t,s)=>{"use strict";s.r(t),s.d(t,{$$typeof:()=>i,__esModule:()=>a,default:()=>l});let r=(0,s(86843).createProxy)(String.raw`C:\test2\pagecraft-ai\src\app\(auth)\layout.tsx`),{__esModule:a,$$typeof:i}=r,l=r.default},93261:(e,t,s)=>{"use strict";s.r(t),s.d(t,{$$typeof:()=>i,__esModule:()=>a,default:()=>l});let r=(0,s(86843).createProxy)(String.raw`C:\test2\pagecraft-ai\src\app\(auth)\login\page.tsx`),{__esModule:a,$$typeof:i}=r,l=r.default}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[1638,5312,6632,3910],()=>s(14322));module.exports=r})();