(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{87153:function(n,e,t){"use strict";var i=t(64836);e.Z=void 0;var r=i(t(64938)),o=t(85893);e.Z=(0,r.default)((0,o.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},83236:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(24375)}])},61658:function(n,e,t){"use strict";t.d(e,{W:function(){return w}});var i=t(7297),r=t(85893);t(67294);var o=t(90948),l=t(87153),a=t(11163),s=t.n(a),d=t(42746);function c(){let n=(0,i.Z)(["\n    width: max-content;\n    margin-bottom: 14px;\n    display: flex;\n    align-items: flex-start;\n    justify-content: flex-start;\n\n    button {\n        text-decoration: none !important;\n        display: flex;\n        align-items: center;\n        border: 0;\n        background-color: transparent;\n        padding: 8px 15px 8px 0;\n        border-radius: 8px;\n        cursor: pointer;\n        transition: padding 0.2s;\n\n        span {\n            font-size: 14px;\n            margin-left: 9px;\n            margin-top: 1px !important;\n            text-decoration: none;\n            margin-top: 0;\n            margin-bottom: 0;\n            color: #475467;\n            font-weight: 600;\n        }\n\n        svg {\n            fill: #475467;\n        }\n\n        :hover {\n            background-color: #eeeff0;\n            padding: 8px 16px;\n            outline: none;\n        }\n    }\n"]);return c=function(){return n},n}let u=(0,o.ZP)("div")(c());function x(n){let{style:e={}}=n,t=(0,d.useTranslations)();return(0,r.jsx)(u,{style:e,children:(0,r.jsxs)("button",{onClick:()=>s().back(),children:[(0,r.jsx)(l.Z,{}),(0,r.jsx)("span",{children:t("back")})]})})}function p(){let n=(0,i.Z)(["\n    min-height: 100vh;\n    background: #f9fafb;\n    display: flex;\n"]);return p=function(){return n},n}function f(){let n=(0,i.Z)(["\n    padding: 24px;\n    max-width: 500px;\n    display: flex;\n    justify-content: center;\n    margin: 0 auto;\n    width: 100%;\n    flex-direction: column;\n\n    button[type='submit'] {\n        padding: 12px 32px;\n    }\n\n    small {\n        a {\n            color: ",";\n            font-weight: bold;\n            text-decoration: none;\n\n            &:hover {\n                text-decoration: underline;\n            }\n        }\n    }\n\n    .head {\n        margin-bottom: 15px;\n        h2 {\n            margin: 10px 0px;\n        }\n        p {\n            a {\n                color: ",";\n                font-weight: bold;\n                text-decoration: none;\n            }\n        }\n    }\n\n    .footer {\n        margin-top: 10px;\n        text-align: center;\n        a {\n            color: ",";\n            font-weight: 500;\n            text-decoration: none;\n            font-size: 14px;\n        }\n    }\n"]);return f=function(){return n},n}function h(){let n=(0,i.Z)(["\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: 50%;\n    position: relative;\n    @media (max-width: 750px) {\n        width: 100%;\n    }\n"]);return h=function(){return n},n}function m(){let n=(0,i.Z)(["\n    position: fixed;\n    right: 0;\n    display: flex;\n    width: 50%;\n    height: 100%;\n    overflow: hidden;\n\n    img {\n        display: flex;\n        width: 100%;\n        height: 100%;\n        object-fit: cover;\n    }\n    @media (max-width: 750px) {\n        display: none;\n    }\n"]);return m=function(){return n},n}let g=(0,o.ZP)("div")(p()),j=(0,o.ZP)("div")(f(),n=>{let{theme:e}=n;return e.palette.primary.main},n=>{let{theme:e}=n;return e.palette.primary.main},n=>{let{theme:e}=n;return e.palette.primary.main}),Z=(0,o.ZP)("div")(h()),b=(0,o.ZP)("div")(m()),w=n=>{let{children:e,removeBackButton:t}=n;return(0,r.jsxs)(g,{children:[(0,r.jsx)(Z,{children:(0,r.jsxs)(j,{children:[t?null:(0,r.jsx)(x,{}),(0,r.jsx)("div",{children:e})]})}),(0,r.jsx)(b,{children:(0,r.jsx)("img",{src:"/images/auth/login-pic.png",alt:""})})]})}},71974:function(n,e,t){"use strict";t.d(e,{Z:function(){return d}});var i=t(7297),r=t(85893);t(67294);var o=t(98456),l=t(16829);function a(){let n=(0,i.Z)(["\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background: ",";\n    z-index: 100;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n"]);return a=function(){return n},n}let s=(0,l.Z)("div")(a(),n=>{let{full:e}=n;return e?"rgba(255, 255, 255, 1)":"rgba(255, 255, 255, 0.6)"});function d(n){let{full:e}=n;return(0,r.jsx)(s,{full:e,children:(0,r.jsx)(o.Z,{})})}},24375:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return g},default:function(){return j}});var i=t(85893),r=t(67294),o=t(86886),l=t(11057),a=t(46901),s=t(2962),d=t(48409),c=t(64402),u=t(71974),x=t(82580),p=t(61658),f=t(16310),h=t(73889),m=t(42746),g=!0;function j(n){let{query:e}=n,t=(0,m.useTranslations)(),{login:g,error:j,clearError:Z}=(0,d.Z)(n=>n),b=f.Ry({email:f.Z_().email(t("enterValidEmail")).required(t("requiredField")),password:f.Z_().required(t("requiredField"))});return(0,r.useEffect)(()=>()=>{Z()},[Z]),(0,i.jsxs)(p.W,{title:t("login"),children:[(0,i.jsx)(s.PB,{title:t("login")}),(0,i.jsx)(x.J9,{initialValues:{email:"",password:""},validationSchema:b,onSubmit:(n,t)=>{g(n,t,e)},children:n=>(0,i.jsxs)(x.l0,{children:[n.isSubmitting&&(0,i.jsx)(u.Z,{formLoader:!0}),(0,i.jsxs)(o.ZP,{container:!0,spacing:2,children:[(0,i.jsx)(o.ZP,{item:!0,xs:12,children:(0,i.jsxs)("div",{className:"head",children:[(0,i.jsxs)("p",{children:[t("noAccount")," ",(0,i.jsx)(h.C,{href:"/register/recruiter",children:t("register")})]}),(0,i.jsx)("h2",{children:t("welcomeToTwojobs")}),(0,i.jsx)("p",{children:t("loginAsCompanyOrRecruiter")})]})}),j&&(0,i.jsx)(o.ZP,{item:!0,xs:12,children:(0,i.jsx)(a.Z,{severity:"error",children:j})}),(0,i.jsx)(o.ZP,{item:!0,xs:12,children:(0,i.jsx)(c.Z,{name:"email",label:t("emailAddress"),style:{marginBottom:10},onChange:e=>{n.setFieldValue("email",e.target.value.replace(/\s/g,""))},onPaste:n=>{!function(n){n.preventDefault();let e=n.clipboardData.getData("text/plain");e=e.replace(/\s/g,""),document.execCommand("insertText",!1,e)}(n)}})}),(0,i.jsx)(o.ZP,{item:!0,xs:12,children:(0,i.jsx)(c.Z,{name:"password",label:"Password",type:"password",style:{marginBottom:10}})}),(0,i.jsx)(o.ZP,{item:!0,xs:12,children:(0,i.jsx)(l.Z,{color:"primary",variant:"contained",fullWidth:!0,type:"submit",size:"large",children:t("loginFoot")})}),(0,i.jsx)(o.ZP,{item:!0,xs:12,children:(0,i.jsx)("div",{className:"footer",children:(0,i.jsxs)(h.C,{href:"/forgot-password",children:[t("forgotPassword"),"?"]})})})]})]})})]})}}},function(n){n.O(0,[9774,2888,179],function(){return n(n.s=83236)}),_N_E=n.O()}]);