148 lines
6.1 KiB
HTML
148 lines
6.1 KiB
HTML
{% load static i18n %}
|
|
{% get_current_language_bidi as LANGUAGE_BIDI %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
<!DOCTYPE html>
|
|
<html lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes, viewport-fit=cover">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<title>{% trans "Sign In" %}</title>
|
|
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script src="https://unpkg.com/lucide@latest"></script>
|
|
|
|
<script>
|
|
tailwind.config = {
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
'temple-red': '#9d2235',
|
|
'temple-dark': '#1a1a1a',
|
|
'temple-cream': '#f8f7f2',
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
* {
|
|
-webkit-tap-highlight-color: rgba(157, 34, 53, 0.1);
|
|
}
|
|
|
|
/* Touch-friendly tap targets */
|
|
button,
|
|
a:not(.no-touch-target),
|
|
.touch-target {
|
|
min-height: 48px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
button {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-temple-cream text-gray-800 flex min-h-screen items-center justify-center p-6">
|
|
|
|
<div class="w-full max-w-md">
|
|
<div class="bg-white rounded-2xl shadow-xl border border-gray-100 p-8">
|
|
|
|
<!-- Header -->
|
|
<div class="text-center mb-8">
|
|
<div class="inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-temple-red/10 mb-4">
|
|
<i data-lucide="shield-check" class="w-8 h-8 text-temple-red"></i>
|
|
</div>
|
|
<h1 class="text-2xl font-bold text-gray-900 mb-2">
|
|
{% trans "Welcome Back" %}
|
|
</h1>
|
|
<p class="text-sm text-gray-500">
|
|
{% trans "Sign in to access your account" %}
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Login Form -->
|
|
<form id="login-form" method="post" action="{% url 'account_login' %}" class="space-y-6">
|
|
{% csrf_token %}
|
|
|
|
<div>
|
|
<label for="id_login" class="block text-sm font-semibold text-gray-700 mb-2">
|
|
{% trans "Email Address" %}
|
|
</label>
|
|
<div class="relative">
|
|
<i data-lucide="mail" class="absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"></i>
|
|
<input type="text"
|
|
name="login"
|
|
id="id_login"
|
|
class="w-full pl-10 pr-4 py-3.5 border border-gray-200 rounded-xl text-sm focus:ring-2 focus:ring-temple-red/20 focus:border-temple-red outline-none transition"
|
|
placeholder="{% trans 'Enter your email' %}"
|
|
required
|
|
autofocus
|
|
autocomplete="email">
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="id_password" class="block text-sm font-semibold text-gray-700 mb-2">
|
|
{% trans "Password" %}
|
|
</label>
|
|
<div class="relative">
|
|
<i data-lucide="lock" class="absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"></i>
|
|
<input type="password"
|
|
name="password"
|
|
id="id_password"
|
|
class="w-full pl-10 pr-4 py-3.5 border border-gray-200 rounded-xl text-sm focus:ring-2 focus:ring-temple-red/20 focus:border-temple-red outline-none transition"
|
|
placeholder="{% trans 'Password' %}"
|
|
required
|
|
autocomplete="current-password">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex items-center">
|
|
<label class="flex items-center gap-2 cursor-pointer text-sm text-gray-600">
|
|
<input type="checkbox"
|
|
name="remember"
|
|
id="id_remember"
|
|
class="w-4 h-4 text-temple-red border-gray-300 rounded focus:ring-2 focus:ring-temple-red/20 focus:ring-temple-red accent-temple-red">
|
|
<span for="id_remember" class="select-none">{% trans "Keep me signed in" %}</span>
|
|
</label>
|
|
</div>
|
|
|
|
<button type="submit"
|
|
class="w-full bg-temple-red hover:bg-[#7a1a29] text-white font-semibold py-4 rounded-xl text-sm transition shadow-md hover:shadow-lg flex items-center justify-center gap-2">
|
|
<i data-lucide="log-in" class="w-5 h-5"></i>
|
|
{% trans "Sign In" %}
|
|
</button>
|
|
</form>
|
|
|
|
<!-- Footer Info -->
|
|
<div class="mt-8 text-center space-y-4">
|
|
<a href="{% url 'account_reset_password' %}" class="text-sm font-medium text-temple-red hover:text-temple-red/80 transition">
|
|
{% trans "Forgot Password?" %}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
lucide.createIcons();
|
|
</script>
|
|
</body>
|
|
</html>h |