Files
systemrevivalserver/Services/Admin/Pages/Login.cshtml
T
2025-12-26 10:00:34 -05:00

69 lines
3.2 KiB
Plaintext

@page "/admin/login"
@model LoginModel
@{
Layout = null;
ViewData["Title"] = "Login";
}
<!DOCTYPE html>
<html lang="en" class="h-full bg-gray-900">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin Login - Dungeon Divers</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="h-full flex items-center justify-center">
<div class="w-full max-w-md">
<div class="bg-gray-800 rounded-2xl shadow-xl border border-gray-700 p-8">
<!-- Logo -->
<div class="text-center mb-8">
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-indigo-600 mb-4">
<svg class="w-10 h-10 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
</svg>
</div>
<h1 class="text-2xl font-bold text-white">Dungeon Divers</h1>
<p class="text-gray-400 mt-1">Admin Panel</p>
</div>
<!-- Error message -->
@if (!string.IsNullOrEmpty(Model.ErrorMessage))
{
<div class="mb-6 p-4 bg-red-900/50 border border-red-700 rounded-lg text-red-200 text-sm">
@Model.ErrorMessage
</div>
}
<!-- Login form -->
<form method="post" class="space-y-6">
@Html.AntiForgeryToken()
<div>
<label for="username" class="block text-sm font-medium text-gray-300 mb-2">Username</label>
<input type="text" id="username" name="Username" value="@Model.Username" required
class="w-full px-4 py-3 bg-gray-900 border border-gray-700 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"
placeholder="Enter your username" />
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-300 mb-2">Password</label>
<input type="password" id="password" name="Password" required
class="w-full px-4 py-3 bg-gray-900 border border-gray-700 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"
placeholder="Enter your password" />
</div>
<button type="submit"
class="w-full py-3 px-4 bg-indigo-600 hover:bg-indigo-700 text-white font-medium rounded-lg transition-colors focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-800">
Sign In
</button>
</form>
<p class="mt-6 text-center text-sm text-gray-500">
Only authorized administrators can access this panel.
</p>
</div>
</div>
</body>
</html>