var/cache/dev/twig/1a/1aa080337b771922729d69fecb92ec55ae2242ea5e2e3562639cf4bc85e7ba4e.php line 34

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @Authentication/pages/views/central_login.html.twig */
  15. class __TwigTemplate_2c5ac38808da35df855bb8c304d378752b7b848ec66d74b8498a064e110afc1f extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Authentication/pages/views/central_login.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Authentication/pages/views/central_login.html.twig"));
  34.         // line 1
  35.         yield from         $this->loadTemplate("@Application/inc/central_header.html.twig""@Authentication/pages/views/central_login.html.twig"1)->unwrap()->yield($context);
  36.         // line 2
  37.         yield "
  38. <style>
  39. :root {
  40.     --n-cream: #F7F5F0;
  41.     --n-dark:  #1A1D2E;
  42.     --n-amber: #C07D2A;
  43.     --n-muted: #6B7280;
  44.     --n-border: rgba(26,29,46,.09);
  45.     --n-error: #dc2626;
  46. }
  47. .n-auth-page {
  48.     min-height: calc(100vh - 140px);
  49.     background: var(--n-cream);
  50.     display: flex;
  51.     align-items: center;
  52.     justify-content: center;
  53.     padding: 72px 24px 96px;
  54. }
  55. .n-auth-card {
  56.     width: 100%;
  57.     max-width: 440px;
  58.     background: #fff;
  59.     border: 1.5px solid var(--n-border);
  60.     border-radius: 20px;
  61.     padding: 44px 40px 40px;
  62.     box-shadow: 0 8px 40px rgba(26,29,46,.08);
  63. }
  64. @media(max-width:480px) {
  65.     .n-auth-card { padding: 32px 24px 28px; }
  66. }
  67. .n-auth-logo {
  68.     text-align: center;
  69.     margin-bottom: 28px;
  70. }
  71. .n-auth-logo .n-brand-mark {
  72.     display: inline-flex;
  73.     align-items: center;
  74.     justify-content: center;
  75.     width: 52px;
  76.     height: 52px;
  77.     background: var(--n-dark);
  78.     border-radius: 14px;
  79.     margin-bottom: 12px;
  80. }
  81. .n-auth-logo .n-brand-mark img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
  82. .n-auth-logo h1 {
  83.     font-family: 'Montserrat', sans-serif;
  84.     font-size: 1.45rem;
  85.     font-weight: 700;
  86.     color: var(--n-dark);
  87.     margin: 0 0 4px;
  88. }
  89. .n-auth-logo p {
  90.     font-size: .85rem;
  91.     color: var(--n-muted);
  92.     margin: 0;
  93. }
  94. .n-error-msg {
  95.     background: #fef2f2;
  96.     border: 1.5px solid #fca5a5;
  97.     border-radius: 8px;
  98.     padding: 10px 14px;
  99.     font-size: .85rem;
  100.     color: var(--n-error);
  101.     margin-bottom: 20px;
  102.     text-align: center;
  103. }
  104. .n-field {
  105.     margin-bottom: 16px;
  106. }
  107. .n-field label {
  108.     display: block;
  109.     font-size: .8rem;
  110.     font-weight: 600;
  111.     color: var(--n-dark);
  112.     margin-bottom: 6px;
  113.     letter-spacing: .02em;
  114. }
  115. .n-field input {
  116.     width: 100%;
  117.     padding: 11px 14px;
  118.     border: 1.5px solid var(--n-border);
  119.     border-radius: 8px;
  120.     font-size: .95rem;
  121.     color: var(--n-dark);
  122.     background: var(--n-cream);
  123.     font-family: 'DM Sans', sans-serif;
  124.     outline: none;
  125.     transition: border-color .2s, background .2s;
  126.     box-sizing: border-box;
  127. }
  128. .n-field input:focus { border-color: var(--n-amber); background: #fff; }
  129. .n-field input.error_class { border-color: var(--n-error); }
  130. .n-password-wrap {
  131.     position: relative;
  132. }
  133. .n-password-wrap input { padding-right: 42px; }
  134. .n-toggle-pw {
  135.     position: absolute;
  136.     right: 12px;
  137.     top: 50%;
  138.     transform: translateY(-50%);
  139.     background: none;
  140.     border: none;
  141.     cursor: pointer;
  142.     padding: 0;
  143.     opacity: .5;
  144.     transition: opacity .2s;
  145. }
  146. .n-toggle-pw:hover { opacity: 1; }
  147. .n-toggle-pw img { width: 18px; }
  148. .n-remember-row {
  149.     display: flex;
  150.     justify-content: space-between;
  151.     align-items: center;
  152.     flex-wrap: wrap;
  153.     gap: 8px;
  154.     margin-bottom: 22px;
  155.     font-size: .83rem;
  156. }
  157. @media(max-width:360px) {
  158.     .n-remember-row { flex-direction: column; align-items: flex-start; }
  159. }
  160. .n-remember-row label {
  161.     display: flex;
  162.     align-items: center;
  163.     gap: 7px;
  164.     color: var(--n-muted);
  165.     cursor: pointer;
  166. }
  167. .n-remember-row a {
  168.     color: var(--n-amber);
  169.     font-weight: 600;
  170.     text-decoration: none;
  171. }
  172. .n-remember-row a:hover { text-decoration: underline; }
  173. .n-submit-btn {
  174.     width: 100%;
  175.     padding: 13px;
  176.     background: var(--n-dark);
  177.     color: #fff;
  178.     border: none;
  179.     border-radius: 10px;
  180.     font-family: 'DM Sans', sans-serif;
  181.     font-size: .97rem;
  182.     font-weight: 700;
  183.     cursor: pointer;
  184.     transition: background .2s, transform .15s;
  185.     margin-bottom: 16px;
  186. }
  187. .n-submit-btn:hover { background: var(--n-amber); transform: translateY(-1px); }
  188. .n-submit-btn.ready { background: var(--n-amber); }
  189. .n-auth-link {
  190.     text-align: center;
  191.     font-size: .85rem;
  192.     color: var(--n-muted);
  193.     margin-bottom: 24px;
  194. }
  195. .n-auth-link a { color: var(--n-amber); font-weight: 600; text-decoration: none; }
  196. .n-auth-link a:hover { text-decoration: underline; }
  197. .n-divider {
  198.     display: flex;
  199.     align-items: center;
  200.     gap: 12px;
  201.     margin-bottom: 16px;
  202.     color: var(--n-muted);
  203.     font-size: .8rem;
  204. }
  205. .n-divider::before,
  206. .n-divider::after {
  207.     content: '';
  208.     flex: 1;
  209.     border-top: 1px solid var(--n-border);
  210. }
  211. .n-social-btn {
  212.     width: 100%;
  213.     padding: 11px 16px;
  214.     border: 1.5px solid var(--n-border);
  215.     border-radius: 10px;
  216.     background: #fff;
  217.     display: flex;
  218.     align-items: center;
  219.     justify-content: center;
  220.     gap: 10px;
  221.     font-family: 'DM Sans', sans-serif;
  222.     font-size: .9rem;
  223.     font-weight: 600;
  224.     color: var(--n-dark);
  225.     text-decoration: none;
  226.     cursor: pointer;
  227.     transition: background .2s, border-color .2s;
  228. }
  229. .n-social-btn:hover { background: var(--n-cream); border-color: rgba(26,29,46,.2); color: var(--n-dark); text-decoration: none; }
  230. .n-social-btn img { width: 18px; }
  231. </style>
  232. <section class=\"n-auth-page login-account\">
  233.     <div class=\"n-auth-card\">
  234.         <div class=\"n-auth-logo\">
  235.             <div class=\"n-brand-mark\">
  236.                 <img src=\"";
  237.         // line 212
  238.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  239.         yield "honeybee_web_assets/icons/honeybeeicon.svg?version=";
  240.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  241.         yield "\" alt=\"HoneyBee\">
  242.             </div>
  243.             <h1>Welcome Back</h1>
  244.             <p>Sign in to your HoneyBee ERP account</p>
  245.         </div>
  246.         <form action=\"";
  247.         // line 218
  248.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("core_login");
  249.         yield "\" class=\"login-form\" method=\"post\" id=\"relevantForm\">
  250.             ";
  251.         // line 220
  252.         if ((!== CoreExtension::compare((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'220$this->source); })()), ""))) {
  253.             // line 221
  254.             yield "            <div class=\"n-error-msg\">";
  255.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'221$this->source); })()), "html"nulltrue);
  256.             yield "</div>
  257.             ";
  258.         }
  259.         // line 223
  260.         yield "
  261.             <div class=\"n-field\">
  262.                 <label for=\"username\">User ID / Email Address</label>
  263.                 <div class=\"login-inputs\">
  264.                     <input type=\"text\" id=\"username\" name=\"username\" placeholder=\"your@company.com\" required>
  265.                 </div>
  266.             </div>
  267.             <div class=\"n-field\">
  268.                 <label for=\"password\">Password</label>
  269.                 <div class=\"n-password-wrap login-inputs\">
  270.                     <input type=\"password\" id=\"password\" name=\"password\" placeholder=\"Your password\" required>
  271.                     <button type=\"button\" class=\"n-toggle-pw toggle-password\">
  272.                         <img src=\"";
  273.         // line 236
  274.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  275.         yield "honeybee_web_assets/icons/eye-close.svg?version=";
  276.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  277.         yield "\" class=\"eyeicon\" alt=\"Toggle password\">
  278.                     </button>
  279.                 </div>
  280.             </div>
  281.             <div class=\"n-remember-row\">
  282.                 <label>
  283.                     <input type=\"hidden\" id=\"applicantDirectLogin\" name=\"applicantDirectLogin\" value=\"1\">
  284.                     <input type=\"checkbox\" id=\"check\">
  285.                     Remember me
  286.                 </label>
  287.                 <a href=\"";
  288.         // line 247
  289.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("find_account_forgot_password", ["encData" => $this->extensions['Nzo\UrlEncryptorBundle\Twig\EncryptorExtension']->encryptFilter(json_encode((isset($context["encData"]) || array_key_exists("encData"$context) ? $context["encData"] : (function () { throw new RuntimeError('Variable "encData" does not exist.'247$this->source); })())))]), "html"nulltrue);
  290.         yield "\">Forgot Password?</a>
  291.             </div>
  292.             <button type=\"submit\" class=\"n-submit-btn rel_form_submit\">Sign In</button>
  293.             <p class=\"n-auth-link\">Don't have an account? <a href=\"";
  294.         // line 252
  295.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sign_up");
  296.         yield "\">Create Account</a></p>
  297.             <div class=\"n-divider\">Or continue with</div>
  298.             <a href=\"";
  299.         // line 256
  300.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["oAuthLink"]) || array_key_exists("oAuthLink"$context) ? $context["oAuthLink"] : (function () { throw new RuntimeError('Variable "oAuthLink" does not exist.'256$this->source); })()), "html"nulltrue);
  301.         yield "\" class=\"n-social-btn social-button google\">
  302.                 <img src=\"";
  303.         // line 257
  304.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  305.         yield "honeybee_web_assets/images/login/google.svg?version=";
  306.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  307.         yield "\" alt=\"Google\">
  308.                 Sign in with Google
  309.             </a>
  310.         </form>
  311.     </div>
  312. </section>
  313. ";
  314.         // line 265
  315.         yield from         $this->loadTemplate("@HoneybeeWeb/footer/central_footer.html.twig""@Authentication/pages/views/central_login.html.twig"265)->unwrap()->yield($context);
  316.         // line 266
  317.         yield "
  318. <script>
  319.     var fbt = '';
  320.     function check_doc_and_submit(submitFlag) {
  321.         var checkFailed = 0;
  322.         submitFlag = submitFlag || 0;
  323.         \$('.login-inputs input').each(function(ind, elem) {
  324.             if (\$(this).prop('required')) {
  325.                 if (\$(this).val() == '' || \$(this).val() == 0) checkFailed = 1;
  326.             }
  327.         });
  328.         \$('.small_error_text').each(function(ind, elem) {
  329.             if (\$(elem).text() != '') checkFailed = 1;
  330.         });
  331.         if (checkFailed == 0) \$('.rel_form_submit').addClass('ready');
  332.         else \$('.rel_form_submit').removeClass('ready');
  333.         if (checkFailed == 0 && submitFlag == 1) {
  334.             \$('.rel_form_submit').removeClass('ready');
  335.             \$('.rel_form_submit').hide();
  336.             \$('#relevantForm').submit();
  337.         }
  338.     }
  339.     \$(document).ready(function() {
  340.         \$('.login-inputs input').focus(function() { \$(this).removeClass('error_class'); });
  341.         \$('.login-inputs input').change(function() { check_doc_and_submit(0); });
  342.         \$('input[type=\"submit\"], button[type=\"submit\"], .rel_form_submit').click(function(event) {
  343.             event.preventDefault();
  344.             check_doc_and_submit(1);
  345.         });
  346.         check_doc_and_submit(0);
  347.     });
  348. </script>
  349. ";
  350.         
  351.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  352.         
  353.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  354.         return; yield '';
  355.     }
  356.     /**
  357.      * @codeCoverageIgnore
  358.      */
  359.     public function getTemplateName()
  360.     {
  361.         return "@Authentication/pages/views/central_login.html.twig";
  362.     }
  363.     /**
  364.      * @codeCoverageIgnore
  365.      */
  366.     public function isTraitable()
  367.     {
  368.         return false;
  369.     }
  370.     /**
  371.      * @codeCoverageIgnore
  372.      */
  373.     public function getDebugInfo()
  374.     {
  375.         return array (  347 => 266,  345 => 265,  332 => 257,  328 => 256,  321 => 252,  313 => 247,  297 => 236,  282 => 223,  276 => 221,  274 => 220,  269 => 218,  258 => 212,  46 => 2,  44 => 1,);
  376.     }
  377.     public function getSourceContext()
  378.     {
  379.         return new Source("{% include '@Application/inc/central_header.html.twig' %}
  380. <style>
  381. :root {
  382.     --n-cream: #F7F5F0;
  383.     --n-dark:  #1A1D2E;
  384.     --n-amber: #C07D2A;
  385.     --n-muted: #6B7280;
  386.     --n-border: rgba(26,29,46,.09);
  387.     --n-error: #dc2626;
  388. }
  389. .n-auth-page {
  390.     min-height: calc(100vh - 140px);
  391.     background: var(--n-cream);
  392.     display: flex;
  393.     align-items: center;
  394.     justify-content: center;
  395.     padding: 72px 24px 96px;
  396. }
  397. .n-auth-card {
  398.     width: 100%;
  399.     max-width: 440px;
  400.     background: #fff;
  401.     border: 1.5px solid var(--n-border);
  402.     border-radius: 20px;
  403.     padding: 44px 40px 40px;
  404.     box-shadow: 0 8px 40px rgba(26,29,46,.08);
  405. }
  406. @media(max-width:480px) {
  407.     .n-auth-card { padding: 32px 24px 28px; }
  408. }
  409. .n-auth-logo {
  410.     text-align: center;
  411.     margin-bottom: 28px;
  412. }
  413. .n-auth-logo .n-brand-mark {
  414.     display: inline-flex;
  415.     align-items: center;
  416.     justify-content: center;
  417.     width: 52px;
  418.     height: 52px;
  419.     background: var(--n-dark);
  420.     border-radius: 14px;
  421.     margin-bottom: 12px;
  422. }
  423. .n-auth-logo .n-brand-mark img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
  424. .n-auth-logo h1 {
  425.     font-family: 'Montserrat', sans-serif;
  426.     font-size: 1.45rem;
  427.     font-weight: 700;
  428.     color: var(--n-dark);
  429.     margin: 0 0 4px;
  430. }
  431. .n-auth-logo p {
  432.     font-size: .85rem;
  433.     color: var(--n-muted);
  434.     margin: 0;
  435. }
  436. .n-error-msg {
  437.     background: #fef2f2;
  438.     border: 1.5px solid #fca5a5;
  439.     border-radius: 8px;
  440.     padding: 10px 14px;
  441.     font-size: .85rem;
  442.     color: var(--n-error);
  443.     margin-bottom: 20px;
  444.     text-align: center;
  445. }
  446. .n-field {
  447.     margin-bottom: 16px;
  448. }
  449. .n-field label {
  450.     display: block;
  451.     font-size: .8rem;
  452.     font-weight: 600;
  453.     color: var(--n-dark);
  454.     margin-bottom: 6px;
  455.     letter-spacing: .02em;
  456. }
  457. .n-field input {
  458.     width: 100%;
  459.     padding: 11px 14px;
  460.     border: 1.5px solid var(--n-border);
  461.     border-radius: 8px;
  462.     font-size: .95rem;
  463.     color: var(--n-dark);
  464.     background: var(--n-cream);
  465.     font-family: 'DM Sans', sans-serif;
  466.     outline: none;
  467.     transition: border-color .2s, background .2s;
  468.     box-sizing: border-box;
  469. }
  470. .n-field input:focus { border-color: var(--n-amber); background: #fff; }
  471. .n-field input.error_class { border-color: var(--n-error); }
  472. .n-password-wrap {
  473.     position: relative;
  474. }
  475. .n-password-wrap input { padding-right: 42px; }
  476. .n-toggle-pw {
  477.     position: absolute;
  478.     right: 12px;
  479.     top: 50%;
  480.     transform: translateY(-50%);
  481.     background: none;
  482.     border: none;
  483.     cursor: pointer;
  484.     padding: 0;
  485.     opacity: .5;
  486.     transition: opacity .2s;
  487. }
  488. .n-toggle-pw:hover { opacity: 1; }
  489. .n-toggle-pw img { width: 18px; }
  490. .n-remember-row {
  491.     display: flex;
  492.     justify-content: space-between;
  493.     align-items: center;
  494.     flex-wrap: wrap;
  495.     gap: 8px;
  496.     margin-bottom: 22px;
  497.     font-size: .83rem;
  498. }
  499. @media(max-width:360px) {
  500.     .n-remember-row { flex-direction: column; align-items: flex-start; }
  501. }
  502. .n-remember-row label {
  503.     display: flex;
  504.     align-items: center;
  505.     gap: 7px;
  506.     color: var(--n-muted);
  507.     cursor: pointer;
  508. }
  509. .n-remember-row a {
  510.     color: var(--n-amber);
  511.     font-weight: 600;
  512.     text-decoration: none;
  513. }
  514. .n-remember-row a:hover { text-decoration: underline; }
  515. .n-submit-btn {
  516.     width: 100%;
  517.     padding: 13px;
  518.     background: var(--n-dark);
  519.     color: #fff;
  520.     border: none;
  521.     border-radius: 10px;
  522.     font-family: 'DM Sans', sans-serif;
  523.     font-size: .97rem;
  524.     font-weight: 700;
  525.     cursor: pointer;
  526.     transition: background .2s, transform .15s;
  527.     margin-bottom: 16px;
  528. }
  529. .n-submit-btn:hover { background: var(--n-amber); transform: translateY(-1px); }
  530. .n-submit-btn.ready { background: var(--n-amber); }
  531. .n-auth-link {
  532.     text-align: center;
  533.     font-size: .85rem;
  534.     color: var(--n-muted);
  535.     margin-bottom: 24px;
  536. }
  537. .n-auth-link a { color: var(--n-amber); font-weight: 600; text-decoration: none; }
  538. .n-auth-link a:hover { text-decoration: underline; }
  539. .n-divider {
  540.     display: flex;
  541.     align-items: center;
  542.     gap: 12px;
  543.     margin-bottom: 16px;
  544.     color: var(--n-muted);
  545.     font-size: .8rem;
  546. }
  547. .n-divider::before,
  548. .n-divider::after {
  549.     content: '';
  550.     flex: 1;
  551.     border-top: 1px solid var(--n-border);
  552. }
  553. .n-social-btn {
  554.     width: 100%;
  555.     padding: 11px 16px;
  556.     border: 1.5px solid var(--n-border);
  557.     border-radius: 10px;
  558.     background: #fff;
  559.     display: flex;
  560.     align-items: center;
  561.     justify-content: center;
  562.     gap: 10px;
  563.     font-family: 'DM Sans', sans-serif;
  564.     font-size: .9rem;
  565.     font-weight: 600;
  566.     color: var(--n-dark);
  567.     text-decoration: none;
  568.     cursor: pointer;
  569.     transition: background .2s, border-color .2s;
  570. }
  571. .n-social-btn:hover { background: var(--n-cream); border-color: rgba(26,29,46,.2); color: var(--n-dark); text-decoration: none; }
  572. .n-social-btn img { width: 18px; }
  573. </style>
  574. <section class=\"n-auth-page login-account\">
  575.     <div class=\"n-auth-card\">
  576.         <div class=\"n-auth-logo\">
  577.             <div class=\"n-brand-mark\">
  578.                 <img src=\"{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/honeybeeicon.svg?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\" alt=\"HoneyBee\">
  579.             </div>
  580.             <h1>Welcome Back</h1>
  581.             <p>Sign in to your HoneyBee ERP account</p>
  582.         </div>
  583.         <form action=\"{{ url('core_login') }}\" class=\"login-form\" method=\"post\" id=\"relevantForm\">
  584.             {% if message != '' %}
  585.             <div class=\"n-error-msg\">{{ message }}</div>
  586.             {% endif %}
  587.             <div class=\"n-field\">
  588.                 <label for=\"username\">User ID / Email Address</label>
  589.                 <div class=\"login-inputs\">
  590.                     <input type=\"text\" id=\"username\" name=\"username\" placeholder=\"your@company.com\" required>
  591.                 </div>
  592.             </div>
  593.             <div class=\"n-field\">
  594.                 <label for=\"password\">Password</label>
  595.                 <div class=\"n-password-wrap login-inputs\">
  596.                     <input type=\"password\" id=\"password\" name=\"password\" placeholder=\"Your password\" required>
  597.                     <button type=\"button\" class=\"n-toggle-pw toggle-password\">
  598.                         <img src=\"{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/eye-close.svg?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\" class=\"eyeicon\" alt=\"Toggle password\">
  599.                     </button>
  600.                 </div>
  601.             </div>
  602.             <div class=\"n-remember-row\">
  603.                 <label>
  604.                     <input type=\"hidden\" id=\"applicantDirectLogin\" name=\"applicantDirectLogin\" value=\"1\">
  605.                     <input type=\"checkbox\" id=\"check\">
  606.                     Remember me
  607.                 </label>
  608.                 <a href=\"{{ url('find_account_forgot_password', { 'encData': (encData|json_encode)|nzo_encrypt }) }}\">Forgot Password?</a>
  609.             </div>
  610.             <button type=\"submit\" class=\"n-submit-btn rel_form_submit\">Sign In</button>
  611.             <p class=\"n-auth-link\">Don't have an account? <a href=\"{{ url('sign_up') }}\">Create Account</a></p>
  612.             <div class=\"n-divider\">Or continue with</div>
  613.             <a href=\"{{ oAuthLink }}\" class=\"n-social-btn social-button google\">
  614.                 <img src=\"{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/login/google.svg?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\" alt=\"Google\">
  615.                 Sign in with Google
  616.             </a>
  617.         </form>
  618.     </div>
  619. </section>
  620. {% include '@HoneybeeWeb/footer/central_footer.html.twig' %}
  621. <script>
  622.     var fbt = '';
  623.     function check_doc_and_submit(submitFlag) {
  624.         var checkFailed = 0;
  625.         submitFlag = submitFlag || 0;
  626.         \$('.login-inputs input').each(function(ind, elem) {
  627.             if (\$(this).prop('required')) {
  628.                 if (\$(this).val() == '' || \$(this).val() == 0) checkFailed = 1;
  629.             }
  630.         });
  631.         \$('.small_error_text').each(function(ind, elem) {
  632.             if (\$(elem).text() != '') checkFailed = 1;
  633.         });
  634.         if (checkFailed == 0) \$('.rel_form_submit').addClass('ready');
  635.         else \$('.rel_form_submit').removeClass('ready');
  636.         if (checkFailed == 0 && submitFlag == 1) {
  637.             \$('.rel_form_submit').removeClass('ready');
  638.             \$('.rel_form_submit').hide();
  639.             \$('#relevantForm').submit();
  640.         }
  641.     }
  642.     \$(document).ready(function() {
  643.         \$('.login-inputs input').focus(function() { \$(this).removeClass('error_class'); });
  644.         \$('.login-inputs input').change(function() { check_doc_and_submit(0); });
  645.         \$('input[type=\"submit\"], button[type=\"submit\"], .rel_form_submit').click(function(event) {
  646.             event.preventDefault();
  647.             check_doc_and_submit(1);
  648.         });
  649.         check_doc_and_submit(0);
  650.     });
  651. </script>
  652. ""@Authentication/pages/views/central_login.html.twig""/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/Authentication/Resources/views/pages/views/central_login.html.twig");
  653.     }
  654. }