{"id":40,"date":"2026-07-04T14:41:17","date_gmt":"2026-07-04T14:41:17","guid":{"rendered":"https:\/\/ghealth.sa\/login\/"},"modified":"2026-07-12T15:30:20","modified_gmt":"2026-07-12T15:30:20","slug":"login","status":"publish","type":"page","link":"https:\/\/ghealth.sa\/en\/login\/","title":{"rendered":"Log In"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"40\" class=\"elementor elementor-40\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-429725a e-con-full e-flex e-con e-parent\" data-id=\"429725a\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b773583 elementor-widget elementor-widget-shortcode\" data-id=\"b773583\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <div class=\"gh-auth-wrap\" style=\"max-width:1000px;margin:0 auto;font-family:'Cairo',sans-serif;\">\n      <div style=\"display:flex;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 12px 48px rgba(10,37,64,0.10);flex-wrap:wrap;\">\n        <div style=\"flex:1 1 340px;background:linear-gradient(135deg,#2ED9C3,#395EAA);padding:56px 40px;color:#fff;\">\n          <h2 style=\"font-size:30px;font-weight:700;margin:0 0 16px;line-height:1.3;\">Welcome back<\/h2>\n          <p style=\"font-size:15px;opacity:0.9;line-height:1.8;\">Log in to access your consultations, tests, and digital medical record in one place.<\/p>\n          <div style=\"display:flex;gap:24px;margin-top:40px;padding-top:24px;border-top:1px solid rgba(255,255,255,0.2);\">\n            <div><div style=\"font-size:24px;font-weight:800;\">+3200<\/div><div style=\"font-size:12px;opacity:0.85;\">Doctor<\/div><\/div>\n            <div><div style=\"font-size:24px;font-weight:800;\">+52,000<\/div><div style=\"font-size:12px;opacity:0.85;\">Client<\/div><\/div>\n          <\/div>\n        <\/div>\n        <div style=\"flex:1 1 420px;padding:48px 44px;\">\n          <h1 style=\"font-size:28px;font-weight:700;color:#0A2540;margin:0 0 6px;text-align:right;\">Log In<\/h1>\n          <p style=\"color:#5E7A92;font-size:14px;margin:0 0 28px;text-align:right;\">Enter your details to access your account.<\/p>\n          <div id=\"gh-login-msg\" style=\"display:none;padding:12px 16px;border-radius:10px;margin-bottom:16px;font-size:13px;text-align:right;\"><\/div>\n          <div style=\"margin-bottom:16px;\"><label style=\"display:block;text-align:right;font-size:13px;color:#0A2540;font-weight:600;margin-bottom:6px;\">Email Address<\/label><input type=\"email\" id=\"gh-login-email\" placeholder=\"you@example.com\" class=\"gh-input\"><\/div>\n          <div style=\"margin-bottom:12px;\"><label style=\"display:block;text-align:right;font-size:13px;color:#0A2540;font-weight:600;margin-bottom:6px;\">Password<\/label><input type=\"password\" id=\"gh-login-pass\" placeholder=\"********\" class=\"gh-input\"><\/div>\n          <div style=\"display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-direction:row-reverse;\">\n            <label style=\"display:flex;align-items:center;gap:6px;font-size:13px;color:#5E7A92;cursor:pointer;flex-direction:row-reverse;\"><input type=\"checkbox\" id=\"gh-remember\" style=\"width:15px;height:15px;accent-color:#0FB5AE;\">Remember me<\/label>\n            <a href=\"\/en\/forgot-password\/\" style=\"font-size:13px;color:#0FB5AE;\">Forgot your password?<\/a>\n          <\/div>\n          <button type=\"button\" onclick=\"ghLogin()\" style=\"width:100%;padding:16px;background:linear-gradient(135deg,#2ED9C3,#395EAA);color:#fff;border:none;border-radius:12px;font-family:inherit;font-weight:700;font-size:16px;cursor:pointer;\">Log In<\/button>\n          <p style=\"text-align:center;color:#5E7A92;font-size:13px;margin-top:24px;\">Don't have an account? <a href=\"\/en\/register\/\" style=\"color:#0FB5AE;font-weight:700;\">Sign Up<\/a><\/p>\n        <\/div>\n      <\/div>\n    <\/div>\n    <style>.gh-auth-wrap .gh-input{width:100%;padding:14px 16px;border:1px solid rgba(10,37,64,0.12);border-radius:10px;font-family:'Cairo',sans-serif;font-size:14px;text-align:right;background:#F8FBFE;box-sizing:border-box;}.gh-auth-wrap .gh-input:focus{outline:none;border-color:#0FB5AE;background:#fff;}<\/style>\n    <script>\n    function ghLogin(){\n      var msg=document.getElementById('gh-login-msg');\n      var data=new URLSearchParams();data.append('action','gh_login');\n      data.append('login',document.getElementById('gh-login-email').value);\n      data.append('password',document.getElementById('gh-login-pass').value);\n      data.append('remember',document.getElementById('gh-remember').checked?'1':'0');\n      fetch('https:\/\/ghealth.sa\/wp-admin\/admin-ajax.php',{method:'POST',headers:{'Content-Type':'application\/x-www-form-urlencoded'},body:data.toString()})\n        .then(function(r){return r.json();}).then(function(res){\n          if(res.success){msg.textContent=res.data.msg;msg.style.display='block';msg.style.background='rgba(16,185,129,0.1)';msg.style.color='#059669';setTimeout(function(){window.location.href=res.data.redirect;},700);}\n          else{msg.textContent=res.data.msg;msg.style.display='block';msg.style.background='rgba(239,68,68,0.1)';msg.style.color='#DC2626';}\n        }).catch(function(){msg.textContent='\u062d\u062f\u062b \u062e\u0637\u0623\u060c \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.';msg.style.display='block';msg.style.background='rgba(239,68,68,0.1)';msg.style.color='#DC2626';});\n    }\n    document.getElementById('gh-login-pass').addEventListener('keypress',function(e){if(e.key==='Enter')ghLogin();});\n    <\/script>\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"_elementor_version":"4.1.4","_elementor_css":null,"footnotes":""},"class_list":["post-40","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/ghealth.sa\/en\/wp-json\/wp\/v2\/pages\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ghealth.sa\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ghealth.sa\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ghealth.sa\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ghealth.sa\/en\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":7,"href":"https:\/\/ghealth.sa\/en\/wp-json\/wp\/v2\/pages\/40\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/ghealth.sa\/en\/wp-json\/wp\/v2\/pages\/40\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/ghealth.sa\/en\/wp-json\/wp\/v2\/media?parent=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}