<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8">
    <title><?= lang('App.login') ?></title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.rtl.min.css" rel="stylesheet">
</head>
<body style="background:#f5f6fa;">
<div class="d-flex align-items-center justify-content-center" style="min-height:100vh;">
    <div class="card p-4" style="width:380px;">
        <h4 class="mb-3 text-center">بوابة العميل</h4>
        <?php if (session()->getFlashdata('error')): ?>
            <div class="alert alert-danger"><?= session()->getFlashdata('error') ?></div>
        <?php endif; ?>
        <form method="post" action="/client/login">
            <?= csrf_field() ?>
            <div class="mb-3">
                <label class="form-label"><?= lang('App.email') ?></label>
                <input type="email" name="email" class="form-control" required>
            </div>
            <div class="mb-3">
                <label class="form-label"><?= lang('App.password') ?></label>
                <input type="password" name="password" class="form-control" required>
            </div>
            <button class="btn btn-dark w-100"><?= lang('App.login') ?></button>
        </form>
    </div>
</div>
</body>
</html>
