<!DOCTYPE html>
<html lang="vi">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Đăng Nhập - SMS Scheduler</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"/>
    <style>
        body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-color: #f8f9fa; }
        .login-card { max-width: 400px; width: 100%; }
    </style>
</head>
<body>
    <div class="card login-card shadow-sm">
        <div class="card-body p-4">
            <h3 class="text-center mb-4"><i class="fa-solid fa-comment-dots text-primary"></i> SMS Scheduler</h3>
            
            <?php if(isset($_GET['error'])): ?>
                <div class="alert alert-danger">Tên đăng nhập hoặc mật khẩu không đúng!</div>
            <?php endif; ?>

            <form action="actions/login_action.php" method="POST">
                <div class="mb-3">
                    <label for="username" class="form-label">Tên đăng nhập</label>
                    <input type="text" class="form-control" id="username" name="username" required>
                </div>
                <div class="mb-3">
                    <label for="password" class="form-label">Mật khẩu</label>
                    <input type="password" class="form-control" id="password" name="password" required>
                </div>
                <div class="d-grid">
                    <button type="submit" class="btn btn-primary">Đăng Nhập</button>
                </div>
                <div class="text-center mt-4">
    <p class="text-muted">Hoặc tải ứng dụng di động để sử dụng</p>
    <a href="downloads/app-debug.apk" class="btn btn-success btn-lg" download>
        <i class="fa-brands fa-android"></i> Tải Về Ứng Dụng Android
    </a>
</div>
            </form>
        </div>
    </div>
</body>
</html>