<!-- BEGIN: Content-->
<div class="app-content content">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper">
        <div class="content-header row">
        </div>
        <div class="content-body">
            <section class="row flexbox-container">
                <div class="col-xl-8 col-10 d-flex justify-content-center">
                    <div class="card bg-authentication rounded-0 mb-0">
                        <div class="row m-0">
                            <div class="col-lg-6 d-lg-block d-none text-center align-self-center pl-0 pr-3 py-0">
                                <img src="/assets2/images/pages/register.jpg" alt="branding logo">
                            </div>
                            <div class="col-lg-6 col-12 p-0">
                                <div class="card rounded-0 mb-0 p-2">
                                    <div class="card-header pt-50 pb-1">
                                        <div class="card-title">
                                            <h4 class="mb-0">Create CoreGrade Account</h4>
                                        </div>
                                    </div>
                                    <p class="px-2">Fill the below form to create a new account.</p>
                                    <div class="card-content">
                                        <div class="card-body pt-0">
                                            <form action="/auth/newuser" method="POST">
                                                <div class="form-label-group">
                                                    <input type="text" id="firstname" name="firstname" class="form-control" placeholder="Firstname" value='<?= isset($firstname) ? $firstname : '' ?>'  required>
                                                    <label for="firstname">Name</label>
                                                </div>
                                                <div class="form-label-group">
                                                    <input type="text" id="lastname" name="lastname" class="form-control" placeholder="Lastname" value='<?= isset($lastname) ? $lastname : '' ?>' required>
                                                    <label for="lastname">Name</label>
                                                </div>
                                                <div class="form-label-group">
                                                    <input type="email" id="email" name="username" name="username" class="form-control" placeholder="Email-Username" value='<?= isset($username) ? $username : '' ?>' required>
                                                    <label for="email">Email</label>
                                                </div>
                                                <div class="form-label-group">
                                                    <input type="password" id="pass1" class="form-control" name="pass1" placeholder="Password" required>
                                                    <label for="pass1">Password</label>
                                                </div>
                                                <!-- div class="form-label-group">
                                                    <input type="password" id="pass2" class="form-control" placeholder="Confirm Password" required>
                                                    <label for="pass2">Confirm Password</label>
                                                </div -->
                                                <div class="form-group row">
                                                    <div class="col-12">
                                                        <fieldset class="checkbox">
                                                            <div class="vs-checkbox-con vs-checkbox-primary">
                                                                <input type="checkbox" checked>
                                                                <span class="vs-checkbox">
                                                                    <span class="vs-checkbox--check">
                                                                        <i class="vs-icon feather icon-check"></i>
                                                                    </span>
                                                                </span>
                                                                <span class=""> I accept the terms & conditions.</span>
                                                            </div>
                                                        </fieldset>
                                                    </div>
                                                </div>
                                                <a href="/auth" class="btn btn-outline-primary float-left btn-inline mb-50">Login</a>
                                                <button type="submit" class="btn btn-primary float-right btn-inline mb-50">Register</a>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>

        </div>
    </div>
</div>
<!-- END: Content-->

