@model LittleShop.DTOs.LoginDto

@{
    ViewData["Title"] = "Admin Login";
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"]</title>
    <link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/lib/fontawesome/css/all.min.css" rel="stylesheet">
</head>
<body class="bg-light">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-6 col-lg-4">
                <div class="card mt-5">
                    <div class="card-header text-center">
                        <h4><i class="fas fa-store"></i> LittleShop Admin</h4>
                    </div>
                    <div class="card-body">
                        <form method="post" asp-area="Admin" asp-controller="Account" asp-action="Login">
                            @if (ViewData.ModelState[""]?.Errors.Count > 0)
                            {
                                <div class="alert alert-danger" role="alert">
                                    @ViewData.ModelState[""]?.Errors.First().ErrorMessage
                                </div>
                            }
                            
                            <div class="mb-3">
                                <label for="username" class="form-label">Username</label>
                                <input name="username" id="username" class="form-control" required />
                            </div>
                            
                            <div class="mb-3">
                                <label for="password" class="form-label">Password</label>
                                <input name="password" id="password" type="password" class="form-control" required />
                            </div>
                            
                            <div class="d-grid">
                                <button type="submit" class="btn btn-primary">
                                    <i class="fas fa-sign-in-alt"></i> Login
                                </button>
                            </div>
                        </form>
                        
                        <div class="mt-3 text-center">
                            <small class="text-muted">Default: admin/admin</small>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="/lib/jquery/jquery.min.js"></script>
    <script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>