Files
ThorsHammerNew/templates/login.html
2026-04-25 12:03:54 -05:00

90 lines
4.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Login — Thor's Hammer Electrical</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="icon" href="{{ url_for('static', filename='images/Logo.png') }}">
<style>
body { font-family: system-ui, sans-serif; background-color: #080808; }
.font-oswald { font-family: 'Oswald', sans-serif; }
.glow-yellow { box-shadow: 0 0 20px rgba(250,204,21,0.35); }
.grid-bg {
background-image:
linear-gradient(rgba(250,204,21,0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(250,204,21,0.025) 1px, transparent 1px);
background-size: 60px 60px;
}
</style>
</head>
<body class="min-h-screen flex items-center justify-center grid-bg text-white" style="background-color: #080808;">
<div class="w-full max-w-sm px-4">
<!-- Logo -->
<div class="text-center mb-8">
<img src="{{ url_for('static', filename='images/Logo.png') }}" alt="Logo"
class="h-16 w-16 rounded-full mx-auto mb-4 ring-2 ring-yellow-400/40">
<h1 class="font-oswald text-2xl font-bold text-white tracking-widest">ADMIN LOGIN</h1>
<p class="text-gray-500 text-xs mt-1">Thor's Hammer Electrical</p>
</div>
<!-- Flash messages -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="mb-4 space-y-2">
{% for category, message in messages %}
<div class="px-4 py-3 rounded-lg border text-sm
{% if category == 'danger' %}bg-red-950 border-red-500/50 text-red-300
{% else %}bg-yellow-950 border-yellow-500/50 text-yellow-300{% endif %}">
{{ message }}
</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
<!-- Card -->
<div class="rounded-2xl border border-white/8 overflow-hidden" style="background-color: #111111;">
<form action="/login" method="POST" class="px-8 py-8 space-y-5">
<div>
<label for="username" class="block text-sm font-medium text-gray-300 mb-2">Username</label>
<input type="text" id="username" name="username" required autofocus
class="w-full px-4 py-3 rounded-lg border text-white text-sm placeholder-gray-600
focus:outline-none focus:ring-2 focus:ring-yellow-400/50 focus:border-yellow-400/50
transition-all"
style="background-color: #1a1a1a; border-color: rgba(255,255,255,0.1);">
</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 rounded-lg border text-white text-sm placeholder-gray-600
focus:outline-none focus:ring-2 focus:ring-yellow-400/50 focus:border-yellow-400/50
transition-all"
style="background-color: #1a1a1a; border-color: rgba(255,255,255,0.1);">
</div>
<button type="submit"
class="w-full py-3 bg-yellow-400 text-black font-oswald font-bold tracking-widest
text-sm rounded-lg hover:bg-yellow-300 active:scale-[0.99] transition-all glow-yellow">
LOGIN
</button>
</form>
</div>
<p class="text-center mt-6">
<a href="{{ url_for('index') }}" class="text-gray-600 hover:text-yellow-400 text-xs transition-colors">
← Back to Website
</a>
</p>
</div>
</body>
</html>