1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{15794:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return s(95168)}])},77808:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var l=s(14232);let i=l.forwardRef(function({title:e,titleId:t,...s},i){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},s),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))})},95168:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>u});var l=s(37876),i=s(48230),n=s.n(i),r=s(89099),a=s(14232),o=s(85392),c=s(74),d=s(93408),h=s(25620),x=s(39126);function u(){let e=(0,r.useRouter)(),{returnUrl:t}=e.query,{signInWithGoogle:s,signInWithApple:i,user:u,loading:m,onboarding:f}=(0,h.A)(),[g,p]=(0,a.useState)(!1),[b,j]=(0,a.useState)(!1),[w,v]=(0,a.useState)(""),y=(0,x.bk)(t);(0,a.useEffect)(()=>{e.isReady&&u&&!m&&!f&&e.replace(y)},[e,u,m,f,y]);let N=async()=>{v(""),p(!0);try{await s()}catch(e){v((0,x.C1)(e))}finally{p(!1)}},C=async()=>{v(""),j(!0);try{await i()}catch(e){v((0,x.C1)(e))}finally{j(!1)}},_=m||!!u||g||b;return(0,l.jsxs)("div",{className:"min-h-screen bg-[#f8f7f4]",children:[(0,l.jsx)(d.A,{title:"Sign in â trains.fyi",description:"Create your trains.fyi account or sign in with Apple or Google.",canonical:"/login/"}),(0,l.jsx)(c.A,{}),(0,l.jsxs)("main",{className:"grid min-h-[calc(100svh-4rem)] lg:grid-cols-[minmax(0,1fr)_440px] xl:grid-cols-[minmax(0,1fr)_480px]",children:[(0,l.jsx)("div",{className:"relative h-56 overflow-hidden bg-slate-800 sm:h-72 lg:h-auto",children:(0,l.jsx)("img",{src:"/images/login/alpine-train.jpg",alt:"A red train beneath the Alps",fetchPriority:"high",className:"absolute inset-0 h-full w-full object-cover object-[40%_57%]"})}),(0,l.jsx)("section",{className:"flex items-center bg-[#f8f7f4] px-7 py-14 sm:px-10 lg:px-12 xl:px-14",children:(0,l.jsxs)("div",{className:"mx-auto w-full max-w-sm",children:[(0,l.jsx)("h1",{className:"text-[34px] font-semibold leading-[1.15] tracking-tight text-slate-950",children:"Welcome to TrainsFYI"}),(0,l.jsx)("p",{className:"mb-9 mt-4 text-[15px] leading-7 text-slate-500",children:"Register or login to your account."}),w&&(0,l.jsx)("div",{className:"mb-4 rounded-lg border border-red-200 bg-red-50 p-3 text-sm text-red-800",role:"alert",children:w}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)("button",{type:"button",onClick:N,disabled:_,className:"flex min-h-14 w-full items-center justify-center gap-3 rounded-lg border border-slate-200 bg-white px-4 py-3.5 text-sm font-semibold text-slate-800 shadow-sm transition hover:border-slate-300 hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-blue-600 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:g?(0,l.jsx)("span",{className:"text-sm",children:"Signing inâ¦"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:[(0,l.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,l.jsx)("path",{fill:"#34A853",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"}),(0,l.jsx)("path",{fill:"#FBBC05",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"}),(0,l.jsx)("path",{fill:"#EA4335",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"})]}),"Continue with Google"]})}),(0,l.jsx)("button",{type:"button",onClick:C,disabled:_,className:"flex min-h-14 w-full items-center justify-center gap-3 rounded-lg bg-slate-950 px-4 py-3.5 text-sm font-semibold text-white shadow-sm transition hover:bg-slate-800 focus:outline-none focus:ring-2 focus:ring-blue-600 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:b?(0,l.jsx)("span",{className:"text-sm",children:"Signing inâ¦"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13.57.1 1.36.18 1.95-.2.6-.39.76-1.32 1.32-2.2.08-.12.16-.23.24-.33.02-.02.04-.04.05-.06zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),"Continue with Apple"]})})]}),(0,l.jsx)(n(),{href:"/pro/",className:"mt-7 inline-block text-sm font-semibold text-blue-700 hover:text-blue-900",children:"Explore Pro"})]})})]}),(0,l.jsx)(o.A,{})]})}}},e=>{e.O(0,[6701,3927,2325,3990,8447,5392,636,6593,8792],()=>e(e.s=15794)),_N_E=e.O()}]);
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.