{"id":33,"date":"2025-10-15T11:04:20","date_gmt":"2025-10-15T11:04:20","guid":{"rendered":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/login\/"},"modified":"2025-11-07T19:14:50","modified_gmt":"2025-11-07T19:14:50","slug":"login","status":"publish","type":"page","link":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/login\/","title":{"rendered":"Login"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"33\" class=\"elementor elementor-33\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3a2143e hocutt-billling-system-wraper e-flex e-con-boxed e-con e-parent\" data-id=\"3a2143e\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-c14da81 e-con-full e-flex e-con e-child\" data-id=\"c14da81\" data-element_type=\"container\">\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-12b26a9 e-con-full e-flex e-con e-child\" data-id=\"12b26a9\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-63ad1880 elementor-widget elementor-widget-shortcode\" data-id=\"63ad1880\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div id=\"user-registration\" class=\"user-registration\">\n<div class=\"user-registration ur-frontend-form ur-login-custom\">\n\t \t<form class=\"user-registration-form user-registration-form-login login\" id=\"user_registration_login_form\" method=\"post\" novalidate>\n\n\t\t\n\t\t<h2 class=\"ur-login-title\">Welcome back!<\/h2>\n\t\t<p class=\"ur-login-subtitle\">Enter your email to sign up or login using your email.<\/p>\n\t\t<div class=\"empty_Space\"><\/div>\n\t\t<!-- Username Field -->\n\t\t<p class=\"ur-field ur-field-username\">\n\t\t\t<label for=\"username\">Username or Email <span class=\"required\">*<\/span><\/label>\n\t\t\t<input type=\"text\" name=\"username\" id=\"username\" class=\"user-registration-Input\" placeholder=\"\">\n\t\t\t<span class=\"ur-field-error\" data-field=\"username\"><\/span>\n\t\t<\/p>\n\n\t\t<!-- Password Field -->\n\t\t<p class=\"ur-field ur-field-password\">\n\t\t\t<label for=\"password\">Enter Password <span class=\"required\">*<\/span><\/label>\n\t\t\t<div class=\"password-wrap\">\n\t\t\t\t<input type=\"password\" name=\"password\" id=\"password\" class=\"user-registration-Input password_field\" placeholder=\"\">\n\t\t\t\t<span class=\"toggle-password-login\" title=\"Show\/Hide Password\">\n\t\t\t\t\t<i class='fa fa-eye'><\/i>\n\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t<span class=\"ur-field-error\" data-field=\"password\"><\/span>\n\t\t<\/p>\n\n\t\t<!-- Forgot Password -->\n\t\t<p class=\"ur-field forgot-password\">\n\t\t\t<a href=\"https:\/\/hocutt.perfect360.com\/~hocuttwp\/lost-password\/\">Forgot Password ?<\/a>\n\t\t<\/p>\n\n\t\t<!-- Submit Button -->\n\t\t<p class=\"ur-field ur-field-submit\">\n\t\t\t<button type=\"submit\" class=\"ur-submit-button\" id=\"user_registration_ajax_login_submit\" name=\"login\" value=\"Login\">Log In<\/button>\n\n\t\t<\/p>\n\t<p class=\"ur-no-account\">\n\t\tDon&#039;t have an account?\t\t<a href=\"https:\/\/hocutt.perfect360.com\/~hocuttwp\/registration\/\" class=\"ur-switch-to-register\">Sign Up<\/a>\n\t<\/p>\n\t\t<input type=\"hidden\" id=\"user-registration-login-nonce\" name=\"user-registration-login-nonce\" value=\"09e7fab93d\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/~hocuttwp\/wp-json\/wp\/v2\/pages\/33\" \/>\t<\/form>\n<\/div>\n\n<script>\njQuery(function ($) {\n\n    \/\/ When submit clicked\n    $(document).on('click', '#user_registration_ajax_login_submit', function (e) {\n        const $username = $('input[name=\"username\"]');\n        const $password = $('input[name=\"password\"]');\n        const username = $username.val().trim();\n        const password = $password.val().trim();\n        let valid = true;\n        setTimeout(function(){\n\t\t    jQuery('.user-registration-error').hide();\n\t\t}, 200);\n        \/\/ Clear old errors\n        $('.ur-field-error').text('');\n        $('input').removeClass('error_field');\n\n        if (!username) {\n            e.preventDefault();\n            $username.addClass('error_field');\n            $('.ur-field-error[data-field=\"username\"]').text('Username or Email is required.');\n            valid = false;\n        }\n\n        if (!password) {\n            e.preventDefault();\n            $password.addClass('error_field');\n            $('.ur-field-error[data-field=\"password\"]').text('Password is required.');\n            valid = false;\n        }\n        if (!valid) {\n            e.preventDefault();\n            e.stopImmediatePropagation();\n\n            \/\/ Remove AJAX error if plugin already added\n            $('.user-registration-error').remove();\n\n            return false;\n        }\n    });\n$(document).ajaxComplete(function () {\n\n        const username = $('input[name=\"username\"]').val().trim();\n        const password = $('input[name=\"password\"]').val().trim();\n\n        if (!username || !password) {\n            $('.user-registration-error').remove();\n        }\n\n    });\n    \/\/  Hide validation message when user types again\n    $(document).on('input', 'input[name=\"username\"], input[name=\"password\"]', function () {\n        const fieldName = $(this).attr('name');\n        $('.ur-field-error[data-field=\"' + fieldName + '\"]').fadeOut(200, function () {\n            $(this).text('').show();\n        });\n        $(this).removeClass('error_field');\n    });\n\n    \/\/  Toggle Password Visibility\n    $(document).on('click', '.toggle-password-login', function () {\n        const $input = $(this).siblings('input');\n        const type = $input.attr('type') === 'password' ? 'text' : 'password';\n        $input.attr('type', type);\n        $(this).find('i').toggleClass('fa-eye fa-eye-slash');\n    });\n\n\n\n\n});\n<\/script>\n\n<style>\n.password-wrap {\n\tposition: relative;\n}\n.toggle-password-login {\n\tposition: absolute;\n\tright: 10px;\n\ttop: 50%;\n\ttransform: translateY(-50%);\n\tcursor: pointer;\n\tcolor: #777;\n}\n.toggle-password-login:hover {\n\tcolor: #000;\n}\n.toggle-password-login i {\n\tfont-size: 16px;\n}\nspan.ur-field-error {\n    line-height: normal;\n}\n\/* Common style for all inline validation messages *\/\n.ur-field-error {\n\tdisplay: block;\n\tcolor: #ff4f55;\n\tfont-size: 14px;\n\tmargin-top: 4px;\n\tfont-weight: 500;\n}\n.user-registration-error{\n    \/*display: none !important;*\/\n        background: unset !important;\n    border: unset !important;\n        padding: 0 !important;\n}\n.user-registration-error strong {\n    display: none;\n}\n\/* Red border for invalid fields *\/\n.error_field {\n\tborder-color: #ff4f55 !important;\n\tbackground-color: #fff5f5;\n}\n.user-registration-error::before{\n\tdisplay: none !important;\n}\n<\/style>\n\n\n<\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-63b8303 e-con-full e-flex e-con e-child\" data-id=\"63b8303\" data-element_type=\"container\">\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-33","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/wp-json\/wp\/v2\/pages\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":9,"href":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/wp-json\/wp\/v2\/pages\/33\/revisions"}],"predecessor-version":[{"id":386,"href":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/wp-json\/wp\/v2\/pages\/33\/revisions\/386"}],"wp:attachment":[{"href":"https:\/\/hocutt.perfect360.com\/~hocuttwp\/wp-json\/wp\/v2\/media?parent=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}