27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
|
|
<?php
|
||
|
|
$pageTitle = 'Admin Login';
|
||
|
|
ob_start();
|
||
|
|
?>
|
||
|
|
<section class="admin-card" style="max-width:520px; margin:0 auto;">
|
||
|
|
<div class="badge">Admin</div>
|
||
|
|
<h1 style="margin-top:16px; font-size:28px;">Admin Login</h1>
|
||
|
|
<p style="color: var(--muted); margin-top:6px;">Sign in to manage AudioCore.</p>
|
||
|
|
<?php if (!empty($error)): ?>
|
||
|
|
<p style="color:#ff9d9d; font-size:13px; margin-top:12px;"><?= htmlspecialchars($error, ENT_QUOTES, 'UTF-8') ?></p>
|
||
|
|
<?php endif; ?>
|
||
|
|
<form method="post" action="/admin/login" style="margin-top:18px; display:grid; gap:16px;">
|
||
|
|
<div style="display:grid; gap:8px;">
|
||
|
|
<label class="label">Email</label>
|
||
|
|
<input class="input" name="email" autocomplete="username">
|
||
|
|
</div>
|
||
|
|
<div style="display:grid; gap:8px;">
|
||
|
|
<label class="label">Password</label>
|
||
|
|
<input class="input" name="password" type="password" autocomplete="current-password">
|
||
|
|
</div>
|
||
|
|
<button type="submit" class="btn">Login</button>
|
||
|
|
</form>
|
||
|
|
</section>
|
||
|
|
<?php
|
||
|
|
$content = ob_get_clean();
|
||
|
|
require __DIR__ . '/../../../modules/admin/views/layout.php';
|