41 lines
2.6 KiB
PHP
41 lines
2.6 KiB
PHP
<div class="glass-panel" style="width: 100%; max-width: 440px; padding: 40px; display: flex; flex-direction: column; gap: 30px;">
|
|
<div style="text-align: center; display: flex; flex-direction: column; gap: 10px;">
|
|
<h1 style="font-size: 2.2rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">ScoutIQ</h1>
|
|
<p style="color: var(--text-muted); font-size: 0.95rem;">الاستكشاف الذكي للمستثمرين بالذكاء الاصطناعي</p>
|
|
</div>
|
|
|
|
<?php if ($flashError = $this->session->getFlash('error')): ?>
|
|
<div class="alert alert-error">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-left: 10px;"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
|
|
<span><?= $this->escape($flashError) ?></span>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($flashSuccess = $this->session->getFlash('success')): ?>
|
|
<div class="alert alert-success">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-left: 10px;"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>
|
|
<span><?= $this->escape($flashSuccess) ?></span>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<form action="/login" method="POST" style="display: flex; flex-direction: column; gap: 20px;">
|
|
<input type="hidden" name="_csrf" value="<?= $this->session->getCsrfToken() ?>">
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="email">البريد الإلكتروني</label>
|
|
<input type="email" name="email" id="email" class="form-control" placeholder="name@domain.com" required autocomplete="username">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="password">كلمة المرور</label>
|
|
<input type="password" name="password" id="password" class="form-control" placeholder="••••••••" required autocomplete="current-password">
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary" style="width: 100%; margin-top: 10px;">تسجيل الدخول</button>
|
|
</form>
|
|
|
|
<div style="text-align: center; font-size: 0.9rem; color: var(--text-muted);">
|
|
ليس لديك حساب؟ <a href="/register" style="font-weight: 600;">إنشاء حساب</a>
|
|
</div>
|
|
</div>
|