<?php
session_start();
@include('../../includes/config.php'); 
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="./template/tngweb/assets/images/favicon-32x32.png" type="image/png" />
    <link href="./template/tngweb/assets/plugins/simplebar/css/simplebar.css" rel="stylesheet" />
    <link href="./template/tngweb/assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet" />
    <link href="./template/tngweb/assets/plugins/metismenu/css/metisMenu.min.css" rel="stylesheet" />
    <link href="./template/tngweb/assets/css/pace.min.css" rel="stylesheet" />
    <script src="./template/tngweb/assets/js/pace.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.4.14/dist/sweetalert2.all.min.js"></script>
<script disable-devtool-auto src='https://cdn.jsdelivr.net/npm/disable-devtool@latest'></script>
    <link href="./template/tngweb/assets/css/bootstrap.min.css" rel="stylesheet">
     <link href="./template/tngweb/assets/css/newlogin-extended.css" rel="stylesheet">
    <link href="./template/tngweb/assets/css/bootstrap-extended.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link href="./template/tngweb/assets/css/app.css" rel="stylesheet">
    <link href="./template/tngweb/assets/css/icons.css" rel="stylesheet">
    <title><?php echo XyZ_val('brand'); ?> | <?php echo XyZ_val('title'); ?></title>
    
</head>

<body>
  
<nav class="navbar navbar-expand-lg navbar-dark">
    <div class="container">
        <a class="navbar-brand" href="index.php">
            <!-- Logo image -->
            <img src="<?php echo XyZ_val('logo'); ?>" alt="Logo" style="height:40px; width:auto; margin-right:10px;">
            
            <!-- Brand text -->
            <?php echo XyZ_val('brand'); ?>
        </a>
   

        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav ms-auto">
                <li class="nav-item">
                    <a class="nav-link active" href="index.php">Home</a>
                </li>
               <?php if (XyZ_val('register_status') === 'active'): ?>
<li class="nav-item">
    <a class="nav-link" href="register.php">Register</a>
</li>
<?php endif; ?>

                <li class="nav-item">
                    <a class="nav-link" href="Forgot-password.php">Forgot Password</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">Contact</a>
                </li>
            </ul>
        </div>
    </div>
</nav>

    <!-- Login Content -->
    <div class="wrapper py-5">
        <div class="section-authentication-signin d-flex align-items-center justify-content-center my-5 my-lg-0">
            <div class="container-fluid">
                <div class="row row-cols-1 row-cols-lg-2 row-cols-xl-3">
                    <div class="col mx-auto">
                        <div class="card">
                            <div class="card-body">
                                <div class="p-4 rounded">
                                    <div class="text-center">
                                        <h3 class="welcome-text">Login Your Account</h3>
                                        <p class="auth-subtitle">Access your account to continue your journey</p>
                                    </div>
                                   
                                   
                                    <div class="form-body">
                                        <form method="POST" action="" class="row g-4">
                                            <div class="col-12">
                                                <label for="inputEmailAddress" class="form-label">Email or Phone</label>
                                                <input name="username" type="text" class="form-control" id="inputEmailAddress" placeholder="Email or Phone">
                                            </div>
                                            <div class="col-12">
                                                <label for="inputChoosePassword" class="form-label">Enter Password</label>
                                                <div class="input-group" id="show_hide_password">
                                                    <input name="password" type="password" class="form-control border-end-0" id="inputChoosePassword" value="" placeholder="Enter Password"> 
                                                    <a href="javascript:;" class="input-group-text bg-transparent">
                                                        <i class='bx bx-hide'></i> 
                                                    </a>
                                                </div>
                                            </div>
                                            <div class="col-md-6">
                                                <div class="form-check form-switch">
                                                    <input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked" checked>
                                                    <label class="form-check-label" for="flexSwitchCheckChecked">Remember Me</label>
                                                </div>
                                            </div>
                                            <div class="col-md-6 text-end">
                                                <a href="Forgot-password.php">Forgot Password?</a>
                                            </div>
                                            <div class="col-12">
                                                <div class="d-grid">
                                                    <button type="submit" class="btn btn-primary">
                                                        <i class="bx bxs-lock-open me-2"></i>Sign in
                                                    </button>
                                                </div>
                                            </div>
                                            <?php if (XyZ_val('register_status') === 'active'): ?>
                                            <div class="col-12 text-center">
                                                <p class="mb-0">Don't have an account yet? 
                                                    <a href="register.php">Sign up here</a>
                                                </p>
                                            </div>
                                            <?php endif; ?>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <!--footer class="footer mt-5">
        <div class="container">
            <div class="row">
                <div class="col-lg-4 mb-4 mb-lg-0">
                    <h5><?php echo strtoupper($_SERVER['SERVER_NAME']); ?></h5>
                    <p>Transforming India into a digitally empowered society and knowledge economy.</p>
                    <div class="social-icons mt-3">
                        <a href="#"><i class="bx bxl-facebook"></i></a>
                        <a href="#"><i class="bx bxl-twitter"></i></a>
                        <a href="#"><i class="bx bxl-instagram"></i></a>
                        <a href="#"><i class="bx bxl-linkedin"></i></a>
                    </div>
                </div>
                <div class="col-lg-2 col-md-4 mb-4 mb-md-0">
                    <h5>Quick Links</h5>
                    <ul class="list-unstyled">
                        <li><a href="index.php">Home</a></li>
                        <li><a href="#">About Us</a></li>
                        <li><a href="#">Services</a></li>
                        <li><a href="#">Contact</a></li>
                    </ul>
                </div>
                <div class="col-lg-2 col-md-4 mb-4 mb-md-0">
                    <h5>Account</h5>
                    <ul class="list-unstyled">
                        <li><a href="login.php">Login</a></li>
                        <li><a href="register.php">Register</a></li>
                        <li><a href="Forgot-password.php">Forgot Password</a></li>
                        <li><a href="#">Privacy Policy</a></li>
                    </ul>
                </div>
                <div class="col-lg-4 col-md-4">
                    <h5>Contact Info</h5>
                    <ul class="list-unstyled">
                        <li><i class="bx bx-map me-2"></i> <?php tngweb('address'); ?></li>
                        <li><i class="bx bx-phone me-2"></i> +91 <?php tngweb('phone'); ?></li>
                        <li><i class="bx bx-envelope me-2"></i> <?php tngweb('email'); ?></li>
                    </ul>
                </div>
            </div>
            <hr class="my-4">
            <div class="row align-items-center">
                <div class="col-md-6">
                   <p class="mb-0">
    © 2023 <?php echo strtoupper($_SERVER['SERVER_NAME']); ?>. All rights reserved.
</p>

                </div>
                <div class="col-md-6 text-md-end">
                    <a href="#">Terms of Service</a>
                    <span class="mx-2">|</span>
                    <a href="#">Privacy Policy</a>
                </div>
            </div>
        </div-->
    </footer>

    <!-- Bootstrap JS -->
    <script src="./template/tngweb/assets/js/bootstrap.bundle.min.js"></script>
    <!--plugins-->
    <script src="./template/tngweb/assets/js/jquery.min.js"></script>
    <script src="./template/tngweb/assets/plugins/simplebar/js/simplebar.min.js"></script>
    <script src="./template/tngweb/assets/plugins/metismenu/js/metisMenu.min.js"></script>
    <script src="./template/tngweb/assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js"></script>
    <!--Password show & hide js -->
    <script>
        $(document).ready(function () {
            $("#show_hide_password a").on('click', function (event) {
                event.preventDefault();
                if ($('#show_hide_password input').attr("type") == "text") {
                    $('#show_hide_password input').attr('type', 'password');
                    $('#show_hide_password i').addClass("bx-hide");
                    $('#show_hide_password i').removeClass("bx-show");
                } else if ($('#show_hide_password input').attr("type") == "password") {
                    $('#show_hide_password input').attr('type', 'text');
                    $('#show_hide_password i').removeClass("bx-hide");
                    $('#show_hide_password i').addClass("bx-show");
                }
            });
        });
    </script>
    <!--app JS-->
    <script src="./template/tngweb/assets/js/app.js"></script>
</body>
</html>