Karan Adhikari commited on
Update login.html
Browse files
Backend/fastapi/templates/login.html
CHANGED
|
@@ -3,45 +3,72 @@
|
|
| 3 |
{% block title %}Login - Telegram Stremio{% endblock %}
|
| 4 |
|
| 5 |
{% block content %}
|
| 6 |
-
<div class="
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
</div>
|
| 12 |
|
| 13 |
{% if error %}
|
| 14 |
-
<div class="bg-red-
|
| 15 |
-
|
|
|
|
| 16 |
</div>
|
| 17 |
{% endif %}
|
| 18 |
|
| 19 |
-
<form method="post" class="
|
| 20 |
-
<div>
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
</div>
|
| 25 |
|
| 26 |
-
<div>
|
| 27 |
-
<label for="password" class="block text-sm font-
|
| 28 |
-
<
|
| 29 |
-
class="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
</div>
|
| 31 |
|
| 32 |
-
<
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
| 36 |
</form>
|
| 37 |
|
| 38 |
-
<div class="text-center">
|
| 39 |
-
<p class="
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
</p>
|
| 44 |
</div>
|
| 45 |
</div>
|
| 46 |
</div>
|
| 47 |
-
{% endblock %}
|
|
|
|
| 3 |
{% block title %}Login - Telegram Stremio{% endblock %}
|
| 4 |
|
| 5 |
{% block content %}
|
| 6 |
+
<div class="flex items-center justify-center min-h-[calc(100vh-160px)] py-12 px-4 sm:px-6 lg:px-8 relative">
|
| 7 |
+
|
| 8 |
+
<div class="max-w-md w-full space-y-8 relative z-10">
|
| 9 |
+
|
| 10 |
+
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[120%] h-[120%] bg-blue-500/10 rounded-full blur-[100px] pointer-events-none"></div>
|
| 11 |
+
|
| 12 |
+
<div class="text-center relative z-10">
|
| 13 |
+
<div class="w-16 h-16 rounded-2xl bg-gradient-to-br from-blue-500/20 to-purple-500/20 flex items-center justify-center mx-auto mb-5 border border-white/10 shadow-lg shadow-purple-500/10">
|
| 14 |
+
<i class="fas fa-lock text-2xl text-purple-400"></i>
|
| 15 |
+
</div>
|
| 16 |
+
<h2 class="text-3xl md:text-4xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-blue-400 to-purple-500 tracking-tight">Admin Login</h2>
|
| 17 |
+
<p class="mt-2 text-gray-400 font-medium">Sign in to access the admin dashboard</p>
|
| 18 |
</div>
|
| 19 |
|
| 20 |
{% if error %}
|
| 21 |
+
<div class="bg-red-500/10 border border-red-500/30 text-red-400 px-5 py-3.5 rounded-xl flex items-center gap-3 shadow-lg shadow-red-500/5 backdrop-blur-sm animate-[slideDown_0.3s_ease-out]">
|
| 22 |
+
<i class="fas fa-exclamation-circle text-lg shrink-0"></i>
|
| 23 |
+
<span class="text-sm font-semibold">{{ error }}</span>
|
| 24 |
</div>
|
| 25 |
{% endif %}
|
| 26 |
|
| 27 |
+
<form method="post" class="glass-panel p-8 sm:p-10 rounded-2xl shadow-2xl space-y-6 relative overflow-hidden border border-white/10">
|
| 28 |
+
<div class="absolute -top-20 -right-20 w-40 h-40 bg-purple-500/20 rounded-full blur-[60px] pointer-events-none"></div>
|
| 29 |
+
|
| 30 |
+
<div class="relative z-10">
|
| 31 |
+
<label for="username" class="block text-sm font-semibold text-gray-300 mb-2">Username</label>
|
| 32 |
+
<div class="relative group">
|
| 33 |
+
<div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none transition-colors group-focus-within:text-purple-400 text-gray-500">
|
| 34 |
+
<i class="fas fa-user"></i>
|
| 35 |
+
</div>
|
| 36 |
+
<input type="text" id="username" name="username" required placeholder="Enter your username"
|
| 37 |
+
class="w-full glass-input rounded-xl pl-11 pr-4 py-3 text-sm placeholder-gray-500 focus:ring-2 focus:ring-purple-500/30 transition-all">
|
| 38 |
+
</div>
|
| 39 |
</div>
|
| 40 |
|
| 41 |
+
<div class="relative z-10">
|
| 42 |
+
<label for="password" class="block text-sm font-semibold text-gray-300 mb-2">Password</label>
|
| 43 |
+
<div class="relative group">
|
| 44 |
+
<div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none transition-colors group-focus-within:text-purple-400 text-gray-500">
|
| 45 |
+
<i class="fas fa-key"></i>
|
| 46 |
+
</div>
|
| 47 |
+
<input type="password" id="password" name="password" required placeholder="Enter your password"
|
| 48 |
+
class="w-full glass-input rounded-xl pl-11 pr-4 py-3 text-sm placeholder-gray-500 focus:ring-2 focus:ring-purple-500/30 transition-all">
|
| 49 |
+
</div>
|
| 50 |
</div>
|
| 51 |
|
| 52 |
+
<div class="pt-2 relative z-10">
|
| 53 |
+
<button type="submit"
|
| 54 |
+
class="w-full bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-500 hover:to-indigo-500 text-white py-3.5 px-4 rounded-xl transition-all duration-200 font-bold shadow-lg shadow-blue-500/20 border border-blue-400/30 flex items-center justify-center gap-2 hover:scale-[1.02] active:scale-[0.98]">
|
| 55 |
+
<span>Secure Sign In</span>
|
| 56 |
+
<i class="fas fa-arrow-right text-sm"></i>
|
| 57 |
+
</button>
|
| 58 |
+
</div>
|
| 59 |
</form>
|
| 60 |
|
| 61 |
+
<div class="text-center relative z-10 mt-8">
|
| 62 |
+
<p class="text-gray-500 text-sm font-medium flex flex-wrap items-center justify-center gap-4">
|
| 63 |
+
<a href="/status" class="text-blue-400 hover:text-blue-300 transition-colors flex items-center gap-1.5 px-2 py-1 rounded-lg hover:bg-white/5">
|
| 64 |
+
<i class="fas fa-server"></i> System Status
|
| 65 |
+
</a>
|
| 66 |
+
<span class="text-white/10 hidden sm:inline">•</span>
|
| 67 |
+
<a href="/stremio" class="text-purple-400 hover:text-purple-300 transition-colors flex items-center gap-1.5 px-2 py-1 rounded-lg hover:bg-white/5">
|
| 68 |
+
<i class="fas fa-book"></i> Stremio Guide
|
| 69 |
+
</a>
|
| 70 |
</p>
|
| 71 |
</div>
|
| 72 |
</div>
|
| 73 |
</div>
|
| 74 |
+
{% endblock %}
|