124 lines
5.0 KiB
HTML
124 lines
5.0 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">
|
|
<meta name="description" content="{% trans 'King Abdullah Academic University Hospital - Reset Password' %}">
|
|
<title>{% trans "Reset Password" %}</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-target {
|
|
min-height: 48px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
button {
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
}
|
|
</style>
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'image/favicon/apple-touch-icon.png'%}">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'image/favicon/favicon-32x32.png'%}">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'image/favicon/favicon-16x16.png'%}">
|
|
<link rel="manifest" href="{% static 'image/favicon/site.webmanifest'%}">
|
|
|
|
{% block customCSS %}{% endblock %}
|
|
</head>
|
|
<body class="bg-temple-cream min-h-screen flex 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">
|
|
|
|
<div class="text-center mb-8">
|
|
<div class="inline-flex items-center justify-center w-20 h-20 rounded-full bg-temple-red/10 mb-4">
|
|
<i data-lucide="key" class="w-8 h-8 text-temple-red"></i>
|
|
</div>
|
|
<h1 class="text-2xl font-bold text-gray-900 mb-2">
|
|
{% trans "Reset Your Password" %}
|
|
</h1>
|
|
<p class="text-sm text-gray-500">
|
|
{% trans "Enter your email address and we'll send you a link to reset your password." %}
|
|
</p>
|
|
</div>
|
|
|
|
<form method="post" action="" class="space-y-6">
|
|
{% csrf_token %}
|
|
|
|
<div>
|
|
<label for="id_email" 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="email"
|
|
name="email"
|
|
id="id_email"
|
|
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 touch-target"
|
|
placeholder="{% trans 'Enter your email' %}"
|
|
required
|
|
autofocus>
|
|
</div>
|
|
</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="send" class="w-4 h-4"></i>
|
|
{% trans "Send Reset Link" %}
|
|
</button>
|
|
|
|
<div class="mt-6 text-center">
|
|
<a href="{% url 'account_login' %}" class="text-sm font-medium text-temple-red hover:text-temple-red/80 transition">
|
|
<i data-lucide="arrow-left" class="w-4 h-4 inline-block mr-2 align-text-bottom"></i>
|
|
{% trans "Back to Sign In" %}
|
|
</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
lucide.createIcons();
|
|
</script>
|
|
</body>
|
|
</html> |