Files
nixpanel-website/views/login.php
T

39 lines
1.6 KiB
PHP
Raw Normal View History

<?php $pageTitle = 'Sign In — NixPanel'; ?>
<div class="min-h-[80vh] flex items-center justify-center px-4 py-16">
<div class="w-full max-w-md">
<div class="text-center mb-8">
<h1 class="text-3xl font-bold text-white">Welcome back</h1>
<p class="text-gray-400 mt-2">Sign in to your NixPanel account</p>
</div>
<div class="card">
<form method="POST" action="/login" class="space-y-4">
<?= csrf_field() ?>
<div>
<label class="block text-sm text-gray-400 mb-1.5">Email address</label>
<input type="email" name="email" value="<?= old('email') ?>" required autofocus
class="input" placeholder="[email protected]">
</div>
<div>
<label class="block text-sm text-gray-400 mb-1.5">Password</label>
<input type="password" name="password" required
class="input" placeholder="••••••••">
</div>
<div class="flex items-center justify-end">
<a href="/forgot-password" class="text-sm text-brand-400 hover:underline">Forgot password?</a>
</div>
<button type="submit" class="btn-primary w-full justify-center py-3">Sign in</button>
</form>
</div>
<p class="text-center text-sm text-gray-500 mt-6">
Don't have an account? <a href="/register" class="text-brand-400 hover:underline">Create one</a>
</p>
</div>
</div>