<?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>';}
if(isset($_GET['reset']) ){echo '<script>alert("Check your inbox, including the spam folder")</script>';}?>    <body class="loading authentication-bg authentication-bg-pattern">

        <div class="account-pages my-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">   
                                <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">Sign In</h4>
                                </div>

                                <form method="post" action="./">
                                    <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="email">
                                    </div>

                                    <div class="mb-3">
                                        <label for="password" class="form-label">Password</label>
                                        <input class="form-control" type="password" required="" id="password" placeholder="Enter your password" name="pwd">
                                    </div>

                                    <!--<div class="mb-3">
                                        <div class="form-check">
                                            <input type="checkbox" class="form-check-input" id="checkbox-signin" checked>
                                            <label class="form-check-label" for="checkbox-signin">Remember me</label>
                                        </div>
                                    </div>-->

                                    <div class="mb-3 d-grid text-center">
                                        <button class="btn btn-primary" type="submit" name="login"> Log In </button>
                                    </div>
                                </form>

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

                        <div class="row mt-3">
                            <div class="col-12 text-center">
                                <p> <a href="login-recover.php" class="text-muted ms-1" style="color:black !important;"><i class="fa fa-lock me-1"></i>Forgot your password?</a></p>
                                <!--<p class="text-muted">Don't have an account? <a href="pages-register.html" class="text-dark ms-1"><b>Sign Up</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>