{{!
    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/login

    IILMP override of theme_boost/login. Version-coupled — a copy of the core
    Boost login layout with ONE marked IILMP addition: the login container is
    wrapped in a split-screen shell with a dark-olive brand panel (logo, value
    proposition) beside the form. Styled by the "Login page" section of
    scss/post.scss. Re-diff against theme/boost/templates/login.mustache on
    upgrade; delete this file to fall back to the plain centred login.

    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 {{{ bodyattributes }}}>
{{> core/local/toast/wrapper}}

<div id="page-wrapper">

    {{{ output.standard_top_of_body_html }}}

    <div id="page" class="container-fluid pt-5 mt-0">
        <div id="page-content" class="row">
            <div id="region-main-box" class="col-12">
                <div id="region-main" class="col-12 h-100">
                <div class="login-wrapper">
                    {{! IILMP: split-screen shell — brand panel + form column. }}
                    <div class="iilmp-login-split">
                        <aside class="iilmp-login-brand">
                            <div class="iilmp-login-brand__chip">
                                {{#pix}}logo, theme_iilmp{{/pix}}
                            </div>
                            <div class="iilmp-login-brand__body">
                                <div class="iilmp-login-brand__eyebrow">RUFORUM &middot; IILMP</div>
                                <h2 class="iilmp-login-brand__title">Learning for Africa&rsquo;s agricultural universities</h2>
                                <p class="iilmp-login-brand__lead">
                                    Courses, credentials, and community &mdash; one account across the
                                    Integrated Institutional Learning Management Platform.
                                </p>
                                <ul class="iilmp-login-brand__points list-unstyled">
                                    <li>
                                        <i class="fa-solid fa-graduation-cap" aria-hidden="true"></i>
                                        Self-paced courses from RUFORUM member universities
                                    </li>
                                    <li>
                                        <i class="fa-solid fa-award" aria-hidden="true"></i>
                                        Badges and certificates that travel with your profile
                                    </li>
                                    <li>
                                        <i class="fa-solid fa-users" aria-hidden="true"></i>
                                        A community of researchers, educators, and alumni
                                    </li>
                                </ul>
                            </div>
                            <div class="iilmp-login-brand__foot">
                                &copy; <span data-iilmp-year>2026</span> RUFORUM
                            </div>
                        </aside>
                        <div class="login-container">
                        {{{ output.main_content }}}
                        </div>
                    </div>
                </div>
                </div>
            </div>
        </div>
    </div>
    {{> theme_boost/footer }}
</div>

</body>
</html>
{{#js}}
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader'], function() {
  M.util.js_complete('theme_boost/loader');
});
{{/js}}
