{"id":341,"date":"2026-06-01T18:45:51","date_gmt":"2026-06-01T18:45:51","guid":{"rendered":"https:\/\/greenmacgyver.com\/?page_id=341"},"modified":"2026-06-02T11:30:52","modified_gmt":"2026-06-02T11:30:52","slug":"login","status":"publish","type":"page","link":"https:\/\/greenmacgyver.com\/en\/login\/","title":{"rendered":"Bel\u00e9p\u00e9s a tanul\u00e1si fel\u00fcletre"},"content":{"rendered":"<section class=\"gma-login-page\">\n  <style>\n    .gma-login-page{font-family:inherit;color:#263026;line-height:1.7}\n    .gma-login-wrap{max-width:1100px;margin:40px auto;padding:20px}\n    .gma-login-card{display:grid;grid-template-columns:1.1fr .9fr;gap:0;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 12px 36px rgba(0,0,0,.10);border:1px solid #d8ead1}\n    .gma-login-info{background:#f8f6ef;padding:54px}\n    .gma-badge{display:inline-block;background:#2f6b3f;color:white;padding:9px 18px;border-radius:999px;font-weight:700;margin-bottom:22px}\n    .gma-login-info h1{color:#2f6b3f;font-size:46px;line-height:1.15;margin:0 0 18px}\n    .gma-login-info p{font-size:19px;margin-bottom:24px}\n    .gma-benefits{display:grid;gap:14px;margin-top:28px}\n    .gma-benefits div{background:white;border-radius:14px;padding:16px;border-left:5px solid #4a9c57}\n    .gma-login-form{padding:54px;background:white}\n    .gma-login-form h2{color:#2f6b3f;font-size:32px;margin:0 0 12px}\n    .gma-small{font-size:14px;color:#5f665f}\n    .gma-field{margin:18px 0}\n    .gma-field label{display:block;font-weight:700;color:#2f6b3f;margin-bottom:7px}\n    .gma-field input{width:100%;box-sizing:border-box;border:1px solid #c9ddc4;border-radius:12px;padding:14px;font:inherit}\n    .gma-btn{width:100%;background:#4a9c57;color:white;border:0;border-radius:12px;padding:15px 22px;font-weight:800;cursor:pointer;margin-top:12px}\n    .gma-btn:hover{background:#2f6b3f}\n    .gma-links{display:flex;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}\n    .gma-links a{color:#2f6b3f;font-weight:700}\n    .gma-alert{display:none;margin-top:18px;padding:15px;border-radius:12px;font-weight:700}\n    .gma-alert.show{display:block}\n    .gma-alert.error{background:#fff0f0;border-left:6px solid #b94a48;color:#7a1f1f}\n    .gma-alert.success{background:#eef6ea;border-left:6px solid #4a9c57;color:#2f6b3f}\n    .gma-note{background:#eef6ea;border-radius:16px;padding:18px;margin-top:24px}\n    @media(max-width:850px){.gma-login-card{grid-template-columns:1fr}.gma-login-info,.gma-login-form{padding:34px}.gma-login-info h1{font-size:34px}}\n  <\/style>\n\n  <div class=\"gma-login-wrap\">\n    <div class=\"gma-login-card\">\n\n      <div class=\"gma-login-info\">\n        <span class=\"gma-badge\">GreenMacGyver Akad\u00e9mia<\/span>\n        <h1>Bel\u00e9p\u00e9s a tanul\u00e1si fel\u00fcletre<\/h1>\n        <p>\n          Jelentkezz be, \u00e9s folytasd a blended learning tanul\u00e1si folyamatot:\n          modulok, tud\u00e1spr\u00f3b\u00e1k, z\u00e1r\u00f3projekt \u00e9s tan\u00fas\u00edtv\u00e1ny egy helyen.\n        <\/p>\n\n        <div class=\"gma-benefits\">\n          <div>\ud83d\udcda Hozz\u00e1f\u00e9r\u00e9s a felvett k\u00e9pz\u00e9seidhez<\/div>\n          <div>\ud83d\udcc8 Halad\u00e1sod \u00e9s tud\u00e1spr\u00f3b\u00e1id k\u00f6vet\u00e9se<\/div>\n          <div>\ud83d\udcc2 Z\u00e1r\u00f3projekt bead\u00e1sa \u00e9s st\u00e1tusza<\/div>\n          <div>\ud83c\udfc6 Tan\u00fas\u00edtv\u00e1ny el\u00e9r\u00e9se sikeres teljes\u00edt\u00e9s ut\u00e1n<\/div>\n        <\/div>\n\n        <div class=\"gma-note\">\n          <strong>Tanul\u00f3i bel\u00e9p\u00e9s<\/strong><br>\n          A bel\u00e9p\u00e9shez az e-mail c\u00edmedre \u00e9s a kapott bel\u00e9p\u00e9si k\u00f3dodra lesz sz\u00fcks\u00e9g.\n        <\/div>\n      <\/div>\n\n      <div class=\"gma-login-form\">\n        <h2>Bejelentkez\u00e9s<\/h2>\n        <p class=\"gma-small\">Add meg a regisztr\u00e1lt e-mail c\u00edmedet \u00e9s bel\u00e9p\u00e9si k\u00f3dodat.<\/p>\n\n        <div class=\"gma-field\">\n          <label for=\"gma-login-email\">E-mail c\u00edm<\/label>\n          <input id=\"gma-login-email\" type=\"email\" placeholder=\"pl. tanulo@email.hu\">\n        <\/div>\n\n        <div class=\"gma-field\">\n          <label for=\"gma-login-code\">Bel\u00e9p\u00e9si k\u00f3d<\/label>\n          <input id=\"gma-login-code\" type=\"password\" placeholder=\"pl. 1234\">\n        <\/div>\n\n        <button type=\"button\" class=\"gma-btn\" onclick=\"gmaLogin()\">Bel\u00e9p\u00e9s<\/button>\n\n        <div id=\"gma-login-message\" class=\"gma-alert\"><\/div>\n\n        <div class=\"gma-links\">\n          <a href=\"\/en\/akademia\/\">Vissza az Akad\u00e9mi\u00e1hoz<\/a>\n          <a href=\"\/en\/akademia-regisztracio\/\">Regisztr\u00e1ci\u00f3<\/a>\n        <\/div>\n      <\/div>\n\n    <\/div>\n  <\/div>\n\n  <script>\n    const GMA_API_URL = \"const GMA_API_URL = \"https:\/\/script.google.com\/macros\/s\/AKfycbyK4hDEoKFfl01fOL7UOlG29v8738wbq940zPpF24ffEvH-STcAdwOGlAXaAWSj1sM\/exec\";\n\n    function gmaLogin(){\n      const email = document.getElementById(\"gma-login-email\").value.trim();\n      const password_code = document.getElementById(\"gma-login-code\").value.trim();\n      const msg = document.getElementById(\"gma-login-message\");\n\n      msg.className = \"gma-alert\";\n      msg.textContent = \"\";\n\n      if(!email || !password_code){\n        msg.className = \"gma-alert show error\";\n        msg.textContent = \"K\u00e9rlek, add meg az e-mail c\u00edmet \u00e9s a bel\u00e9p\u00e9si k\u00f3dot.\";\n        return;\n      }\n\n      msg.className = \"gma-alert show success\";\n      msg.textContent = \"Bejelentkez\u00e9s folyamatban...\";\n\n      const oldScript = document.getElementById(\"gma-login-jsonp\");\n      if(oldScript){\n        oldScript.remove();\n      }\n\n      window.gmaHandleLogin = function(result){\n        if(result.status === \"success\"){\n          localStorage.setItem(\"gma_logged_in\", \"yes\");\n          localStorage.setItem(\"gma_user_id\", result.user.user_id);\n          localStorage.setItem(\"gma_user_name\", result.user.name);\n          localStorage.setItem(\"gma_user_email\", result.user.email);\n          localStorage.setItem(\"gma_user_role\", result.user.role);\n\n          msg.className = \"gma-alert show success\";\n          msg.textContent = \"Sikeres bel\u00e9p\u00e9s. \u00c1tir\u00e1ny\u00edt\u00e1s a GreenMacGyver fi\u00f3kodba...\";\n\n          setTimeout(function(){\n            window.location.href = \"\/dashboard\";\n          }, 900);\n        }else{\n          msg.className = \"gma-alert show error\";\n          msg.textContent = result.message || \"Sikertelen bel\u00e9p\u00e9s.\";\n        }\n      };\n\n      const script = document.createElement(\"script\");\n      script.id = \"gma-login-jsonp\";\n      script.src =\n        GMA_API_URL +\n        \"?action=login\" +\n        \"&email=\" + encodeURIComponent(email) +\n        \"&password_code=\" + encodeURIComponent(password_code) +\n        \"&callback=gmaHandleLogin\" +\n        \"&t=\" + new Date().getTime();\n\n      script.onerror = function(){\n        msg.className = \"gma-alert show error\";\n        msg.textContent = \"Kapcsol\u00f3d\u00e1si hiba. Ellen\u0151rizd, hogy az Apps Script telep\u00edt\u00e9s friss\u00edtve lett-e.\";\n      };\n\n      document.body.appendChild(script);\n    }\n  <\/script>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>GreenMacGyver Akad\u00e9mia Bel\u00e9p\u00e9s a tanul\u00e1si fel\u00fcletre Jelentkezz be, \u00e9s folytasd a blended learning tanul\u00e1si folyamatot: modulok, tud\u00e1spr\u00f3b\u00e1k, z\u00e1r\u00f3projekt \u00e9s tan\u00fas\u00edtv\u00e1ny egy helyen. \ud83d\udcda Hozz\u00e1f\u00e9r\u00e9s a felvett k\u00e9pz\u00e9seidhez \ud83d\udcc8 Halad\u00e1sod \u00e9s tud\u00e1spr\u00f3b\u00e1id k\u00f6vet\u00e9se \ud83d\udcc2 Z\u00e1r\u00f3projekt bead\u00e1sa \u00e9s st\u00e1tusza \ud83c\udfc6 Tan\u00fas\u00edtv\u00e1ny el\u00e9r\u00e9se sikeres teljes\u00edt\u00e9s ut\u00e1n Tanul\u00f3i bel\u00e9p\u00e9s A bel\u00e9p\u00e9shez az e-mail c\u00edmedre \u00e9s a kapott bel\u00e9p\u00e9si k\u00f3dodra&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/greenmacgyver.com\/en\/login\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Bel\u00e9p\u00e9s a tanul\u00e1si fel\u00fcletre&rdquo;<\/span> &raquo;<\/a><\/p>","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-341","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/greenmacgyver.com\/en\/wp-json\/wp\/v2\/pages\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenmacgyver.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/greenmacgyver.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/greenmacgyver.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greenmacgyver.com\/en\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":14,"href":"https:\/\/greenmacgyver.com\/en\/wp-json\/wp\/v2\/pages\/341\/revisions"}],"predecessor-version":[{"id":369,"href":"https:\/\/greenmacgyver.com\/en\/wp-json\/wp\/v2\/pages\/341\/revisions\/369"}],"wp:attachment":[{"href":"https:\/\/greenmacgyver.com\/en\/wp-json\/wp\/v2\/media?parent=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}