<?php include_once "./Configs.php"; ?>
<!DOCTYPE html>
<html lang="en">
<?php
$titulo="";    
include_once "./Head.php"; 
if(isset($_GET['error']) ){echo '<script>alert("Login error, try again.\nIf the problem persist reset your password or contact support")</script>';}
if(isset($_GET['logout']) ){echo '<script>alert("Session closed")</script>';}?>
    <body class="loading authentication-bg authentication-bg-pattern">
        <div class="account-pages mt-5 mb-5">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-md-8 col-lg-6 col-xl-4">
                        <div class="text-center">
                        <div class="text-center">   
                                <img src="<?php echo $logo;?>" alt="" height="22" class="mx-auto">
                            <p class="text-muted mt-2 mb-4">Optimal Sales</p>
                            </div>
                        <div class="card">

                            <div class="card-body p-4">
                                
                                <div class="text-center mb-4">
                                    <h4 class="text-uppercase mt-0 mb-3">Reset Password</h4>
                                    <p class="text-muted mb-0 font-13">Enter your email address and we'll send you an email with instructions to reset your password.  </p>
                                </div>

                                <form action="./login.php?reset=1" method="post">

                                    <div class="mb-3">
                                        <label for="emailaddress" class="form-label">Email address</label>
                                        <input class="form-control" type="email" id="emailaddress" required="" placeholder="Enter your email" name="reset-pwd">
                                    </div>

                                    <div class="mb-3 text-center d-grid">
                                        <button class="btn btn-primary" type="submit"> Reset Password </button>
                                    </div>

                                </form>        

                            </div> <!-- end card-body -->
                        </div>
                        <!-- end card -->

                        <div class="row mt-3">
                            <div class="col-12 text-center">
                                <p class="text-muted" style="color:black !important;">Back to <a href="./login.php" class="text-dark ml-1"><b>Log in</b></a></p>
                            </div> <!-- end col -->
                        </div>
                        <!-- end row -->

                    </div> <!-- end col -->
                </div>
                <!-- end row -->
            </div>
            <!-- end container -->
        </div>
        <!-- end page -->

        <!-- Vendor js -->
        <script src="./assets/js/vendor.min.js"></script>

        <!-- App js -->
        <script src="./assets/js/app.min.js"></script>
        
    </body>
</html>