blob: bda6364e074931d2de8150cd3bb4ff38f5ba4730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - Personal Dashboard</title>
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
<link rel="stylesheet" href="/static/css/output.css">
<style>
.text-shadow { text-shadow: 0 0 8px black, 0 0 8px black; }
</style>
</head>
<body class="min-h-screen flex items-center justify-center bg-gray-900" style="background-image: url('https://picsum.photos/1920/1080?random=login'); background-size: cover; background-position: center;">
<div class="w-full max-w-md p-8">
<div class="bg-black/60 backdrop-blur-sm rounded-xl p-8 text-shadow" style="box-shadow: 0 0 12px black;">
<h1 class="text-2xl font-light text-white text-center mb-8 tracking-wide">Personal Dashboard</h1>
{{if .Error}}
<div class="mb-6 p-4 bg-red-900/50 border border-red-500/30 rounded-lg text-red-300 text-sm">
{{.Error}}
</div>
{{end}}
<form method="POST" action="/login" class="space-y-6" autocomplete="on">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<div>
<label for="username" class="block text-sm font-medium text-white/70 mb-2">
Username
</label>
<input
type="text"
id="username"
name="username"
autocomplete="username"
required
autofocus
class="w-full px-4 py-3 bg-black/40 border border-white/20 rounded-lg text-white placeholder-white/50 focus:ring-2 focus:ring-white/30 focus:border-white/30 transition-colors"
placeholder="Enter your username">
</div>
<div>
<label for="password" class="block text-sm font-medium text-white/70 mb-2">
Password
</label>
<input
type="password"
id="password"
name="password"
autocomplete="current-password"
required
class="w-full px-4 py-3 bg-black/40 border border-white/20 rounded-lg text-white placeholder-white/50 focus:ring-2 focus:ring-white/30 focus:border-white/30 transition-colors"
placeholder="Enter your password">
</div>
<button
type="submit"
class="w-full bg-white/20 hover:bg-white/30 text-white font-medium py-3 px-4 rounded-lg transition-colors">
Sign In
</button>
</form>
</div>
</div>
</body>
</html>
|