{"id":7,"date":"2025-05-12T03:52:40","date_gmt":"2025-05-12T03:52:40","guid":{"rendered":"https:\/\/pjithub.in\/projects\/realestate\/?page_id=7"},"modified":"2025-05-12T03:52:40","modified_gmt":"2025-05-12T03:52:40","slug":"login","status":"publish","type":"page","link":"https:\/\/pjithub.in\/projects\/realestate\/en\/login\/","title":{"rendered":"Login"},"content":{"rendered":"    <div class=\"rounded-md max-w-md mx-auto box signup-form-main\">\n      <form name=\"loginform\" id=\"loginform\" action=\"\" method=\"post\" novalidate>\n            <input type=\"hidden\" name=\"action\" value=\"loginform\" \/>\n      <input type=\"hidden\" name=\"redirect_to\" value=\"https:\/\/pjithub.in\/projects\/realestate\/dashboard\" \/>\n  <div>\n    <h3  class=\"tracking-tight text-2xl font-bold\">Login<\/h3>\n    <p class=\"text-muted text-sm\">Enter your credentials to access your account<\/p>\n    <div class=\"success_messages\" style=\"color: green;\">\n          <\/div>\n    <div class=\"error_messages\" style=\"color: red;\">\n            <\/div>\n  <\/div>\n  <label class=\"text-sm py-2\">Email<\/label>\n  <input   type=\"email\"  name=\"log\" class=\"flex h-10 w-full rounded-md border border-input bg-background px-3  py-2 text-sm\" id=\"email\" placeholder=\"name@example.com\" required=\"\" value=\"\">\n  <div class=\"error-message\" id=\"error_email\" style=\"color:red; font-size: 16px; font-weight: 400;\"><\/div>\n  <div class=\"relative\">\n    <label class=\"text-sm py-2\">Password<\/label>\n    <input type=\"password\" name=\"pwd\" class=\"flex h-10 w-full rounded-md border border-input bg-background px-3  py-2  text-sm\" id=\"user_pass\" placeholder=\"password\" required=\"\" value=\"\">\n    <div class=\"absolute right-end py-2 px-3 show-password\" onclick=\"myFunction()\"><i class=\"bi bi-eye\"><\/i><\/div>\n  <\/div>\n  <div class=\"error-message\" id=\"error_pass\" style=\"color:red; font-size: 16px; font-weight: 400;\"><\/div>\n  <p class=\"text-muted text-sm  text-center underline-offset-4 underline\"><a href=\"https:\/\/pjithub.in\/projects\/realestate\/en\/forgot-password\/\">Forgot your password?<\/a><\/p>\n  <p class=\"text-sm  text-center\">Don't have an account? <a href=\"https:\/\/pjithub.in\/projects\/realestate\/en\/signup\/\" class=\"underline-offset-4 underline text-dark\">Sign up<\/a><\/p>\n  <button type=\"submit\" name=\"wp-submit\" id=\"wp-submit\"  class=\"bg-primary w-full  button text-sm py-2 rounded-md h-10\"> Login<\/button>\n  <\/form>\n<\/div>\n<\/div>\n<script>\n  function myFunction() {\n  var x = document.getElementById(\"user_pass\");\n   if (x.type === \"password\") {\n    x.type = \"text\";\n    jQuery('.bi-eye').addClass('bi-eye-slash-fill');\n    jQuery('.bi-eye-slash-fill').removeClass('bi-eye');\n  } else {\n    x.type = \"password\";\n    jQuery('.bi-eye-slash-fill').addClass('bi-eye');\n    jQuery('.bi-eye').removeClass('bi-eye-slash-fill');\n  }\n}\ndocument.getElementById('loginform').addEventListener('submit', function(e) {\n  let valid = true;\n\n  const email = document.getElementById('email');\n  const emailError = document.getElementById('error_email');\n  if (email.value.trim() === \"\" || !email.validity.valid) {\n    emailError.textContent = \"Please enter a valid email address\";\n    valid = false;\n  } else {\n    emailError.textContent = \"\";\n  }\n\n  const password = document.getElementById('user_pass');\n  const passError = document.getElementById('error_pass');\n  if (password.value.trim() === \"\") {\n    passError.textContent = \"Password is required\";\n    valid = false;\n  } else {\n    passError.textContent = \"\";\n  }\n\n  if (!valid) {\n    e.preventDefault(); \/\/ Block form submission if fields are invalid\n  }\n});\n<\/script>\n\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"100-width.php","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/pjithub.in\/projects\/realestate\/wp-json\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjithub.in\/projects\/realestate\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pjithub.in\/projects\/realestate\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pjithub.in\/projects\/realestate\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjithub.in\/projects\/realestate\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":1,"href":"https:\/\/pjithub.in\/projects\/realestate\/wp-json\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":8,"href":"https:\/\/pjithub.in\/projects\/realestate\/wp-json\/wp\/v2\/pages\/7\/revisions\/8"}],"wp:attachment":[{"href":"https:\/\/pjithub.in\/projects\/realestate\/wp-json\/wp\/v2\/media?parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}