{% extends "layouts/base-fullscreen.html" %}

{% block title %} Login {% endblock %}

<!-- Specific Page CSS goes HERE  -->
{% block stylesheets %}{% endblock stylesheets %}

{% block body_class %} bg-soft {% endblock body_class %}

{% block content %}

<main>

    <!-- Section -->
    <section class="vh-lg-100 d-flex align-items-center">
        <div class="container">
            <div class="row justify-content-center form-bg-image"
                data-background="/static/assets/img/illustrations/signin.png">
                <div class="col-12 d-flex align-items-center justify-content-center">
                    <div
                        class="signin-inner my-3 my-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500">

                        <div class="text-center text-md-center mb-4 mt-md-0">
                            <h1 class="mb-0 h3">
                                <a>Stack Lifecycle Deployment</a>
                            </h1>
                            <br />
                            <p>
                                {% if msg %}
                               <p style="color:#FF0000";> {{ msg | safe }}</p>
                                {% else %}
                                Add your credentials
                                {% endif %}
                            </p>
                        </div>

                        <form method="post" action="" class="mt-4">

                            {{ form.hidden_tag() }}

                            <!-- Form -->
                            <div class="form-group mb-4">
                                <label for="email">Username</label>
                                <div class="input-group">
                                    <span class="input-group-text" id="basic-addon1"><span
                                            class="fas fa-user-circle"></span></span>
                                    {{ form.username(placeholder="Username", class="form-control") }}
                                </div>
                            </div>
                            <!-- End of Form -->
                            <div class="form-group">
                                <!-- Form -->
                                <div class="form-group mb-4">
                                    <label for="password">Your Password</label>
                                    <div class="input-group">
                                        <span class="input-group-text" id="basic-addon2"><span
                                                class="fas fa-unlock-alt"></span></span>
                                        {{ form.password(placeholder="Password", class="form-control", type="password")
                                        }}
                                    </div>
                                </div>
                                <!-- End of Form -->


                            </div>
                            <button type="submit" name="login" class="btn btn-block btn-primary">Sign in</button>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </section>

</main>

{% endblock content %}

<!-- Specific Page JS goes HERE  -->
{% block javascripts %}{% endblock javascripts %}
