{"id":1228,"date":"2026-09-10T01:37:24","date_gmt":"2026-09-10T01:37:24","guid":{"rendered":"https:\/\/plastaps.makmark.com\/?page_id=1228"},"modified":"2026-09-10T01:38:08","modified_gmt":"2026-09-10T01:38:08","slug":"login","status":"publish","type":"page","link":"https:\/\/plastaps.com\/ar\/login\/","title":{"rendered":"Login"},"content":{"rendered":"\r\n<div class=\"plastaps-wrapper plastaps-auth-wrapper\">\r\n    <div class=\"plastaps-container plastaps-auth-container\">\r\n\r\n        <div class=\"plastaps-auth-card\">\r\n\r\n            <div class=\"plastaps-auth-header\">\r\n                <div class=\"plastaps-auth-logo\">\r\n                    <i class=\"fa-solid fa-right-to-bracket\"><\/i>\r\n                <\/div>\r\n                <h1>\u0645\u0631\u062d\u0628\u064b\u0627 \u0628\u0639\u0648\u062f\u062a\u0643<\/h1>\r\n                <p>\u0633\u062c\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0625\u0644\u0649 \u062d\u0633\u0627\u0628\u0643 \u0641\u064a \u0628\u0644\u0627\u0633\u062a\u0627\u0628\u0633 \u0644\u0645\u0648\u0627\u0635\u0644\u0629 \u0627\u0644\u062a\u062f\u0627\u0648\u0644<\/p>\r\n            <\/div>\r\n\r\n            \r\n            \r\n            <form id=\"plastaps-login-form\" class=\"plastaps-auth-form\" novalidate>\r\n\r\n                <div class=\"plastaps-auth-error\" id=\"login-error\" style=\"display:none;\"><\/div>\r\n\r\n                <!-- Email or Username -->\r\n                <div class=\"plastaps-form-group\">\r\n                    <label for=\"login-identity\">\r\n                        <i class=\"fa-solid fa-user\"><\/i> \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0623\u0648 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 <span class=\"required\">*<\/span>\r\n                    <\/label>\r\n                    <input type=\"text\"\r\n                           id=\"login-identity\"\r\n                           name=\"identity\"\r\n                           class=\"plastaps-form-control\"\r\n                           placeholder=\"you@example.com\"\r\n                           autocomplete=\"username\"\r\n                           required>\r\n                <\/div>\r\n\r\n                <!-- Password -->\r\n                <div class=\"plastaps-form-group\">\r\n                    <label for=\"login-password\">\r\n                        <i class=\"fa-solid fa-lock\"><\/i> \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 <span class=\"required\">*<\/span>\r\n                    <\/label>\r\n                    <div class=\"plastaps-auth-password-wrap\">\r\n                        <input type=\"password\"\r\n                               id=\"login-password\"\r\n                               name=\"password\"\r\n                               class=\"plastaps-form-control\"\r\n                               placeholder=\"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0643\"\r\n                               autocomplete=\"current-password\"\r\n                               required>\r\n                        <button type=\"button\"\r\n                                class=\"plastaps-auth-toggle-password\"\r\n                                data-target=\"login-password\"\r\n                                aria-label=\"\u0625\u0638\u0647\u0627\u0631\/\u0625\u062e\u0641\u0627\u0621 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\">\r\n                            <i class=\"fa-solid fa-eye\"><\/i>\r\n                        <\/button>\r\n                    <\/div>\r\n                <\/div>\r\n\r\n                <!-- Remember + Forgot -->\r\n                <div class=\"plastaps-auth-actions\">\r\n                    <label class=\"plastaps-auth-remember\">\r\n                        <input type=\"checkbox\" name=\"remember\" value=\"1\">\r\n                        <span>\u062a\u0630\u0643\u0631\u0646\u064a<\/span>\r\n                    <\/label>\r\n                    <a href=\"https:\/\/plastaps.com\/wp-login.php?action=lostpassword\" class=\"plastaps-auth-forgot\">\r\n                        \u0646\u0633\u064a\u062a \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\u061f                    <\/a>\r\n                <\/div>\r\n\r\n                <!-- Submit -->\r\n                <button type=\"submit\" class=\"plastaps-btn plastaps-btn-orange plastaps-btn-lg plastaps-btn-block\" id=\"login-submit-btn\">\r\n                    <i class=\"fa-solid fa-right-to-bracket\"><\/i> \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644                <\/button>\r\n\r\n                <!-- Register link -->\r\n                <div class=\"plastaps-auth-footer\">\r\n                    \u0644\u064a\u0633 \u0644\u062f\u064a\u0643 \u062d\u0633\u0627\u0628\u061f                    <a href=\"https:\/\/plastaps.com\/ar\/register\/\">\u0623\u0646\u0634\u0626 \u062d\u0633\u0627\u0628\u064b\u0627 \u0627\u0644\u0622\u0646<\/a>\r\n                <\/div>\r\n\r\n            <\/form>\r\n        <\/div>\r\n\r\n    <\/div>\r\n<\/div>\r\n\r\n<style>\r\n\/* Password visibility toggle *\/\r\n.plastaps-auth-password-wrap {\r\n    position: relative;\r\n    width: 100%;\r\n}\r\n\r\n.plastaps-auth-password-wrap .plastaps-form-control {\r\n    padding-right: 48px;\r\n}\r\n\r\n.plastaps-auth-toggle-password {\r\n    position: absolute;\r\n    top: 50%;\r\n    right: 12px;\r\n    transform: translateY(-50%);\r\n    background: transparent;\r\n    border: none;\r\n    color: #94a3b8;\r\n    cursor: pointer;\r\n    padding: 6px 8px;\r\n    font-size: 15px;\r\n    border-radius: 6px;\r\n    transition: color 0.2s ease, background 0.2s ease;\r\n    line-height: 1;\r\n}\r\n\r\n.plastaps-auth-toggle-password:hover {\r\n    color: #f97316;\r\n    background: #fff7ed;\r\n}\r\n\r\n.plastaps-auth-actions {\r\n    display: flex;\r\n    align-items: center;\r\n    justify-content: space-between;\r\n    gap: 12px;\r\n    margin-bottom: 20px;\r\n    flex-wrap: wrap;\r\n}\r\n\r\n.plastaps-auth-remember {\r\n    display: inline-flex;\r\n    align-items: center;\r\n    gap: 8px;\r\n    font-size: 13px;\r\n    color: #475569;\r\n    cursor: pointer;\r\n    user-select: none;\r\n}\r\n\r\n.plastaps-auth-remember input[type=\"checkbox\"] {\r\n    width: 16px;\r\n    height: 16px;\r\n    accent-color: #f97316;\r\n    cursor: pointer;\r\n}\r\n\r\n.plastaps-auth-forgot {\r\n    font-size: 13px;\r\n    color: #f97316;\r\n    font-weight: 600;\r\n    text-decoration: none;\r\n}\r\n\r\n.plastaps-auth-forgot:hover {\r\n    text-decoration: underline;\r\n}\r\n<\/style>\r\n\r\n<script>\r\njQuery(function($) {\r\n    \/\/ Toggle password visibility\r\n    $('.plastaps-auth-toggle-password').on('click', function() {\r\n        var targetId = $(this).data('target');\r\n        var $input = $('#' + targetId);\r\n        var $icon = $(this).find('i');\r\n        if ($input.attr('type') === 'password') {\r\n            $input.attr('type', 'text');\r\n            $icon.removeClass('fa-eye').addClass('fa-eye-slash');\r\n        } else {\r\n            $input.attr('type', 'password');\r\n            $icon.removeClass('fa-eye-slash').addClass('fa-eye');\r\n        }\r\n    });\r\n\r\n    \/\/ Form submit\r\n    $('#plastaps-login-form').on('submit', function(e) {\r\n        e.preventDefault();\r\n\r\n        var $form = $(this);\r\n        var $error = $('#login-error');\r\n        var $btn = $('#login-submit-btn');\r\n\r\n        $error.hide().html('');\r\n\r\n        var identity = $.trim($form.find('input[name=\"identity\"]').val());\r\n        var password = $form.find('input[name=\"password\"]').val();\r\n        var remember = $form.find('input[name=\"remember\"]').is(':checked') ? '1' : '0';\r\n\r\n        if (!identity) {\r\n            return showError('\u064a\u064f\u0631\u062c\u0649 \u0625\u062f\u062e\u0627\u0644 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0623\u0648 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645.');\r\n        }\r\n        if (!password) {\r\n            return showError('\u064a\u064f\u0631\u062c\u0649 \u0625\u062f\u062e\u0627\u0644 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631.');\r\n        }\r\n\r\n        $btn.prop('disabled', true).html('<i class=\"fa-solid fa-spinner fa-spin\"><\/i> \u062c\u0627\u0631\u064a \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644...');\r\n\r\n        $.ajax({\r\n            url: plastaps_ajax.ajax_url,\r\n            type: 'POST',\r\n            dataType: 'json',\r\n            data: {\r\n                action: 'plastaps_login_user',\r\n                nonce: plastaps_ajax.nonce,\r\n                identity: identity,\r\n                password: password,\r\n                remember: remember\r\n            },\r\n            success: function(response) {\r\n                if (response && response.success) {\r\n                    var msg = (response.data && response.data.message) ? response.data.message : '\u062a\u0645 \u0628\u0646\u062c\u0627\u062d! \u062c\u0627\u0631\u064a \u0627\u0644\u062a\u0648\u062c\u064a\u0647...';\r\n                    $btn.html('<i class=\"fa-solid fa-circle-check\"><\/i> ' + msg);\r\n                    var redirect = (response.data && response.data.redirect_url) ? response.data.redirect_url : (plastaps_ajax.site_url + '\/dashboard\/');\r\n                    setTimeout(function() {\r\n                        window.location.href = redirect;\r\n                    }, 500);\r\n                } else {\r\n                    var msg = (response && response.data && typeof response.data === 'string') ? response.data : '\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0627\u0639\u062a\u0645\u0627\u062f \u063a\u064a\u0631 \u0635\u062d\u064a\u062d\u0629. \u064a\u064f\u0631\u062c\u0649 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.';\r\n                    showError(msg);\r\n                    $btn.prop('disabled', false).html('<i class=\"fa-solid fa-right-to-bracket\"><\/i> \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644');\r\n                }\r\n            },\r\n            error: function() {\r\n                showError('\u062e\u0637\u0623 \u0641\u064a \u0627\u0644\u0634\u0628\u0643\u0629. \u064a\u064f\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u062a\u0635\u0627\u0644\u0643 \u0648\u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.');\r\n                $btn.prop('disabled', false).html('<i class=\"fa-solid fa-right-to-bracket\"><\/i> \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644');\r\n            }\r\n        });\r\n\r\n        function showError(msg) {\r\n            $error.html('<i class=\"fa-solid fa-circle-exclamation\"><\/i> <span>' + msg + '<\/span>').show();\r\n            $('html, body').animate({\r\n                scrollTop: $error.offset().top - 100\r\n            }, 300);\r\n            $btn.prop('disabled', false).html('<i class=\"fa-solid fa-right-to-bracket\"><\/i> \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644');\r\n        }\r\n    });\r\n});\r\n<\/script>\n","protected":false},"excerpt":{"rendered":"\u0645\u0631\u062d\u0628\u064b\u0627 \u0628\u0639\u0648\u062f\u062a\u0643 \u0633\u062c\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0625\u0644\u0649 \u062d\u0633\u0627\u0628\u0643 \u0641\u064a \u0628\u0644\u0627\u0633\u062a\u0627\u0628\u0633 \u0644\u0645\u0648\u0627\u0635\u0644\u0629 \u0627\u0644\u062a\u062f\u0627\u0648\u0644 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0623\u0648 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 * \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 * \u062a\u0630\u0643\u0631\u0646\u064a","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"plastaps_category":[],"class_list":["post-1228","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/plastaps.com\/ar\/wp-json\/wp\/v2\/pages\/1228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plastaps.com\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/plastaps.com\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/plastaps.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plastaps.com\/ar\/wp-json\/wp\/v2\/comments?post=1228"}],"version-history":[{"count":0,"href":"https:\/\/plastaps.com\/ar\/wp-json\/wp\/v2\/pages\/1228\/revisions"}],"wp:attachment":[{"href":"https:\/\/plastaps.com\/ar\/wp-json\/wp\/v2\/media?parent=1228"}],"wp:term":[{"taxonomy":"plastaps_category","embeddable":true,"href":"https:\/\/plastaps.com\/ar\/wp-json\/wp\/v2\/plastaps_category?post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}