<!DOCTYPE html>
<html lang="fr">

<!-- Head -->
<head>
    {% include 'head.html' %}
</head>
<!-- End of Head -->

<body class="bg-gradient-primary">

<div class="container">

    <!-- Outer Row -->
    <div class="row justify-content-center">

        <div class="col-xl-10 col-lg-12 col-md-9">

            <div class="card o-hidden border-0 shadow-lg my-5">
                <div class="card-body p-0">
                    <!-- Nested Row within Card Body -->
                    <div class="row">
                        <div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
                        <div class="col-lg-6">
                            <div class="p-5">
                                <div class="text-center">
                                    <h1 class="h4 text-gray-900 mb-4">Bienvenue sur OxyCardio!</h1>
                                </div>
                                <!-- RenderTemplate savoir si les log sont bons -->
                                {% with messages = get_flashed_messages(with_categories=true) %}
                                {% if messages %}
                                {% for category, message in messages %}
                                <div class="card bg-{{ category }} text-white shadow">
                                    <div class="card-body">
                                        {{ message }}
                                    </div>
                                </div>
                                {% endfor %}
                                {% endif %}
                                {% endwith %}
                                <hr>
                                <form method="post" action="{{ url_for('form_login') }}" class="user">
                                    <div class="form-group">
                                        <input type="text" name="nom" class="form-control form-control-user"
                                               id="exampleInputNom" aria-describedby="emailHelp"
                                               placeholder="Entrez votre nom...">
                                    </div>
                                    <div class="form-group">
                                        <input type="text" name="prenom" class="form-control form-control-user"
                                               id="exampleInputPrenom" placeholder="Entrez votre prénom...">
                                    </div>
                                    <div class="form-group">
                                        <input type="password" name="password" class="form-control form-control-user"
                                               id="exampleInputPassword" placeholder="Mot de passe">
                                    </div>
                                    <div class="form-group">
                                        <div class="custom-control custom-checkbox small">
                                            <input type="checkbox" class="custom-control-input" id="customCheck">
                                            <label class="custom-control-label" for="customCheck">Se souvenir de
                                                moi</label>
                                        </div>
                                    </div>
                                    <input type="submit" class="btn btn-primary btn-user btn-block">
                                    <hr>
                                </form>
                                <div class="text-center">
                                    <a class="small" href="forgot-password">Mot de pass oublié ?</a>
                                </div>
                                <div class="text-center">
                                    <a class="small" href="register">Création de son compte !</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>

</div>

</body>

</html>
