Files
aiinvoice_pharmacyDashboard/templates/appforget.html
T
2026-10-07 17:31:08 +05:30

192 lines
5.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forgot Password - AIInfinite</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
:root {
--white: #ffffff;
--text-dark: #1a1a1a;
--primary-color: #003087;
--secondary-color: #666666;
--background-light: #f0f2f5;
--error-color: #d32f2f;
--success-color: #155724;
}
body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
color: var(--text-dark);
background: var(--background-light);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.auth-form {
background: var(--white);
padding: 4rem;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 500px;
margin: 2rem;
animation: slideIn 0.5s ease-in-out;
}
@keyframes slideIn {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.form-title {
font-size: 2.2rem;
font-weight: 600;
margin-bottom: 0.5rem;
text-align: center;
}
.form-subtitle {
color: var(--secondary-color);
margin-bottom: 2rem;
text-align: center;
}
.auth-form-group {
margin-bottom: 1.5rem;
}
.auth-form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--secondary-color);
}
.auth-form-group input {
width: 100%;
padding: 1rem;
border: 2px solid var(--background-light);
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s ease;
}
.auth-form-group input:focus {
border-color: var(--primary-color);
outline: none;
box-shadow: 0 0 8px rgba(0, 48, 135, 0.2);
}
.btn-primary {
width: 100%;
padding: 1rem;
background: var(--primary-color);
color: var(--white);
border: none;
border-radius: 8px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: background 0.3s ease;
}
.btn-primary:hover {
background: #002366;
}
.switch-auth {
text-align: center;
margin-top: 2rem;
}
.btn-link {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
}
.btn-link:hover {
text-decoration: underline;
}
.security-note {
color: var(--secondary-color);
font-size: 0.9rem;
margin-top: 1rem;
text-align: center;
}
.flash-messages {
list-style: none;
padding: 0;
margin: 1rem 0;
}
.flash-message {
padding: 1rem;
margin: 1rem 0;
border-radius: 8px;
font-weight: 500;
text-align: center;
}
.flash-message.success {
background-color: #d4edda;
color: var(--success-color);
}
.flash-message.error {
background-color: #f8d7da;
color: var(--error-color);
}
@media (max-width: 768px) {
.auth-form {
padding: 2rem;
margin: 1rem;
}
.form-title {
font-size: 1.8rem;
}
}
</style>
</head>
<body>
<div class="auth-form">
<h1 class="form-title">Reset Password</h1>
<p class="form-subtitle">Enter your email to receive reset instructions</p>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<ul class="flash-messages">
{% for category, message in messages %}
<li class="flash-message {{ category }}">{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
<form action="{{ url_for('forgot_password') }}" method="POST">
<div class="auth-form-group">
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required>
</div>
<button type="submit" class="btn-primary">Send Reset Link</button>
<div class="switch-auth">
<p>Remember your password? <a href="{{ url_for('login') }}" class="btn-link">Sign In</a></p>
<p class="security-note"><i class="fas fa-lock"></i> Secured with SSL Encryption</p>
</div>
</form>
</div>
</body>
</html>