<!DOCTYPE html>
<html lang="en" dir="ltr" data-startbar="light" data-bs-theme="light">

    <head>
        

        <meta charset="utf-8" />
                <title>Login | The Perfect Vape</title>
                <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
                <meta content="" name="author" />
                <meta http-equiv="X-UA-Compatible" content="IE=edge" />

                <!-- App favicon -->
                <link rel="shortcut icon" href="assets/images/favicon.ico">

       
         <!-- App css -->
         <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
         <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" />
         <link href="assets/css/app.min.css" rel="stylesheet" type="text/css" />

    </head>

    
    <!-- Top Bar Start -->
    <body class="bg-light">
    <div class="container-xxl">
        <div class="row vh-100 d-flex justify-content-center align-items-center">
            <div class="col-12 align-self-center">
                <div class="row">
                    <div class="col-lg-5 col-md-7 mx-auto">
                        <div class="card shadow-lg border-0">
                            <!-- Header with gradient -->
                            <div class="card-body p-0 auth-header-box rounded-top" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);">
                                <div class="text-center p-4">
                                    <a href="index.php" class="logo logo-admin">
                                        <img src="assets/images/logo-sm.png" height="60" alt="logo" class="auth-logo mb-3">
                                    </a>
                                    <h4 class="mt-2 mb-2 fw-bold text-white fs-20">Admin Portal</h4>   
                                    <p class="text-white-50 fw-medium mb-0 fs-14">Sign in to access The Perfect Vape dashboard</p>  
                                </div>
                            </div>
                            
                            <!-- Form Body -->
                            <div class="card-body p-4">                                    
                                <form class="my-3" id="loginForm">            
                                    <div class="form-group mb-3">
                                        <label class="form-label fw-semibold" for="username">Username</label>
                                        <input type="text" class="form-control form-control-lg" id="username" name="username" placeholder="Enter your username" required autocomplete="username">                               
                                    </div>
            
                                    <div class="form-group mb-3">
                                        <label class="form-label fw-semibold" for="userpassword">Password</label>                                            
                                        <input type="password" class="form-control form-control-lg" name="password" id="userpassword" placeholder="Enter your password" required autocomplete="current-password">                            
                                    </div>
            
                                    <div class="form-group mb-3">
                                        <div class="text-end">
                                            <a href="recover-password.php" class="text-primary font-13 text-decoration-none"><i class="dripicons-lock"></i> Forgot password?</a>                                    
                                        </div>
                                    </div>
            
                                    <div class="form-group mb-0">
                                        <div class="d-grid mt-4">
                                            <button class="btn btn-lg btn-primary fw-semibold py-3" type="button" id="loginBtn" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none;">
                                                Log In <i class="fas fa-sign-in-alt ms-1"></i>
                                            </button>
                                        </div>
                                    </div>                          
                                </form>
                            </div>
                        </div>
                        
                        <!-- Footer Text -->
                        <div class="text-center mt-3">
                            <p class="text-muted">© 2025 The Perfect Vape. All rights reserved.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>                                        
    </div>
    
    <!-- jQuery (required for some Bootstrap features) -->
    <script src="assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
    
    <!-- API Client -->
    <script src="assets/js/api/api-client.js"></script>
    
    <!-- Auth API -->
    <script src="assets/js/api/auth.js"></script>
    
    <!-- Login Script -->
    <script src="assets/js/login.js"></script>
    
    </body>
    <!--end body-->
</html>