{{!
    This file is part of Moodle - https://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <https://www.gnu.org/licenses/>.
}}

{{!
    @template theme_nice/nice_login

    Login page layout template for theme_nice.

    Displays the login screen, optionally with a page heading,
    standard Boost header/footer, and the login form as the main content.

    Context variables required for this template:
    * bodyattributes - HTML attributes for the <body> tag.
    * output - Core renderer object containing:
        * output.standard_top_of_body_html
        * output.navbar
        * output.main_content
        * output.if_home_pages
        * output.standard_after_main_region_html

    * pageheading - Optional page title (e.g. "Log in")

    Example context (JSON):
    {
        "bodyattributes": "class=\"someclasses\"",
        "output": {
            "standard_top_of_body_html": "<div>top-of-body</div>",
            "navbar": "<ul>breadcrumb nav</ul>",
            "main_content": "<form>Login form HTML here</form>",
            "if_home_pages": false,
            "standard_after_main_region_html": "<div>after main</div>"
        },
        "pageheading": "Log in"
    }
}}

{{> theme_boost/head }}
<body {{{ bodyattributes }}}>
{{> core/local/toast/wrapper}}
<div id="wrapper" class="nice-page-container">
   {{> theme_boost/navbar }}
   {{{ output.standard_top_of_body_html }}}
   {{^ output.if_home_pages}}
   <div class="page-title-area">
      <div class="container">
         <div class="page-title-content">
            {{{ output.navbar }}}
            <h1>{{{ pageheading }}}</h1>
         </div>
      </div>
   </div>
   {{/output.if_home_pages}}
   <div class="nice-login-container">
      <div class="container">
         <div id="page-content" class="row">
            <div id="region-main-box" class="col-12">
               <section id="region-main" class="col-12 h-100" aria-label="{{#str}}content{{/str}}">
                  <div class="login-wrapper pt-100 pb-75">
                     <div class="login-container">
                        {{{ output.main_content }}}
                     </div>
                  </div>
               </section>
            </div>
         </div>
      </div>
   </div>
   <!--End nice-login-container -->
   {{> theme_boost/footer }}
</div>
<!--End nice-page-container -->
</body>
</html>
{{#js}}
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader'], function() {
M.util.js_complete('theme_boost/loader');
});
M.util.js_pending('theme_boost/drawer');
require(['theme_boost/drawer'], function(mod) {
mod.init();
M.util.js_complete('theme_boost/drawer');
});
{{/js}}