<%- include('../partials/header') %>

    <main id="main" class="main">
        <div class="container">

            <section
                class="section register min-vh-100 d-flex flex-column align-items-center justify-content-center py-4">
                <div class="container">
                    <div class="row justify-content-center">
                        <div class="col-lg-4 col-md-6 d-flex flex-column align-items-center justify-content-center">

                            <div class="d-flex justify-content-center py-4">
                                <a class="logo d-flex align-items-center w-auto">
                                    <img src="/img/logo.png" alt="">
                                    <span class="d-none d-lg-block">Dashboard</span>
                                </a>
                            </div>

                            <div class="card mb-3">

                                <div class="card-body">

                                    <div class="pt-4 pb-2">
                                        <h5 class="card-title text-center pb-0 fs-4">Create an Account</h5>
                                        <p class="text-center small">Enter your personal details to create account</p>
                                    </div>

                                    <form action="/Register" method="post">
                                        <% if(message !='' ){ %>
                                            <div class="alert alert-danger" role="alert">
                                                <%=message%>
                                            </div>
                                            <% } %>
                                                <div class="col-12 pt-2 pb-2">
                                                    <label for="email">Email</label>
                                                    <input type="email" class="form-control" name="username"
                                                        placeholder="name@example.com" required>
                                                </div>

                                                <div class="col-12 pt-2 pb-2">
                                                    <label for="password">Password</label>
                                                    <input type="password" class="form-control" name="password"
                                                        placeholder="" style="-webkit-text-security: disc" required>
                                                </div>

                                                <div class="col-12 pt-2 pb-2">
                                                    <label for="password">Confirm Password</label>
                                                    <input type="password" class="form-control" name="confirmPassword"
                                                        placeholder="" style="-webkit-text-security: disc" required>
                                                </div>

                                                <div class="col-12">
                                                    <div class="form-check">
                                                        <input class="form-check-input" name="terms" type="checkbox"
                                                            value="check" id="acceptTerms" required>
                                                        <label class="form-check-label" for="acceptTerms">I agree and
                                                            accept the
                                                            <a href="/Terms">terms and conditions</a></label>
                                                    </div>
                                                </div>
                                                <div class="col-12">
                                                    <button class="btn btn-primary w-100" type="submit">Create
                                                        Account</button>
                                                </div>
                                                <div class="col-12">
                                                    <p class="small mb-0">Already have an account? <a href="/Login">Log
                                                            in</a>
                                                    </p>
                                                </div>
                                    </form>

                                </div>
                            </div>

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

            </section>

        </div>
    </main>

    <%- include('../partials/footer') %>