{{!
    This file is part of Moodle - http://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 <http://www.gnu.org/licenses/>.
}}
{{!
    @template theme_boost_magnific/login

    Login page template

    Example context (json):
    {
        "output": {
            "doctype": "<!DOCTYPE html>",
            "page_title": "Login page",
            "favicon": "favicon.ico",
            "main_content": "<h1>Headers keep HTML validators happy</h1>"
        }
    }
}}
{{> theme_boost/head}}

<body data-templates="login" {{{bodyattributes}}}>

<div id="page-wrapper" class="login-wrapper position-relative login_theme--{{{login_theme}}}">

    {{{output.standard_top_of_body_html}}}

    <div class="login-logo-area">
        <a href="{{{config.wwwroot}}}/?redirect=0">
            <div class="logo">
                {{{logourl_header}}}
            </div>
        </a>
    </div>
    <div class="login-area">

        <div class="login-background-area" style="{{login_background_image}}">
            <div class="login-color-area">
                <div id="login_login_description">{{{login_login_description}}}</div>
                <div id="login_forgot_description">{{{login_forgot_description}}}</div>
                <div id="login_signup_description">{{{login_signup_description}}}</div>
            </div>
        </div>
        <div class="login-form-area">
            <div class="form-content">
                <div class="form-items">
                    {{{output.course_content_header}}}
                    {{{output.main_content}}}
                    {{{output.course_content_footer}}}
                </div>
            </div>
        </div>
    </div>

    <div class="footer-content-debugging footer-dark bg-dark text-light">
        <div class="container-fluid footer-dark-inner">
            {{{ output.standard_end_of_body_html}}}
        </div>
    </div>
</div>
</body>
</html>
{{#js}}
    require(['theme_boost/footer-popover', 'theme_boost/drawer', 'theme_boost/loader'],
        function(FooterPopover, Drawer, Loader) {
            FooterPopover.init();
            Drawer.init();
            M.util.js_complete('theme_boost/loader');
        });
{{/js}}
