quantum-ai/templates/authentication/forgot_password.html
Claude e2ad1f84e1 Implement comprehensive header CSS architecture redesign and font consistency fixes
- Extract 476 lines of inline CSS from pricing.html to external pricing.css file
- Unify font stack across all pages to use 'Inter', Arial, sans-serif consistently
- Fix font weight inconsistency between marketplace and pricing page navigation
- Add clean active page indicator with thin blue underline for current page
- Optimize CSS loading order: page-specific CSS first, header-component.css last
- Remove font inheritance conflicts between agent-base.css and header component
- Standardize Inter font loading in base.html for all pages (single source of truth)
- Improve browser compatibility with font smoothing and rendering optimizations
- Add comprehensive documentation in HEADER_OPTIMIZATION.md

Key improvements:
• Consistent navigation font weight across all pages (resolves bold font issue)
• Better performance with external CSS files and browser caching
• Clean component-based CSS architecture for maintainability
• Subtle active state indicators without layout shifts
• Unified theme system with CSS custom properties

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 10:41:24 +05:30

196 lines
5.3 KiB
HTML

{% extends 'base.html' %}
{% load static %}
{% block title %}Forgot Password{% endblock %}
{% block extra_css %}
<link rel="stylesheet" href="{% static 'css/agent-base.css' %}">
<style>
/* Override main-container for full-width sections */
.main-container {
max-width: none;
padding: 0;
}
/* Forgot password page using agent-base.css */
.forgot-password-page {
background: var(--background);
min-height: calc(100vh - 84px);
display: flex;
align-items: center;
justify-content: center;
padding: var(--spacing-lg);
}
.forgot-password-container {
background: var(--surface);
border-radius: var(--radius-lg);
padding: 48px;
box-shadow: var(--shadow-lg);
width: 100%;
max-width: 450px;
border: 1px solid var(--outline);
}
.forgot-password-header {
text-align: center;
margin-bottom: 40px;
}
.forgot-password-title {
font-size: 28px;
font-weight: 700;
color: var(--on-surface);
margin: 0 0 var(--spacing-sm) 0;
}
.forgot-password-subtitle {
font-size: 16px;
color: var(--on-surface-variant);
margin: 0;
}
.reset-btn {
width: 100%;
margin-bottom: 32px;
margin-top: 8px;
}
.messages {
margin-bottom: var(--spacing-lg);
}
.message {
padding: var(--spacing-md);
border-radius: var(--radius-sm);
margin-bottom: var(--spacing-sm);
font-size: 14px;
font-weight: 500;
border: 1px solid;
}
.message.success {
background: var(--surface-variant);
color: var(--on-surface);
border-color: var(--outline);
}
.message.error {
background: var(--surface-variant);
color: var(--on-surface);
border-color: var(--outline);
}
.message.info {
background: var(--surface-variant);
color: var(--on-surface);
border-color: var(--outline);
}
.forgot-auth-links {
text-align: center;
padding-top: 24px;
border-top: 1px solid var(--outline);
}
.forgot-auth-links p {
margin: var(--spacing-sm) 0;
color: var(--on-surface-variant);
font-size: 14px;
}
.forgot-auth-links a {
color: var(--primary);
text-decoration: none;
font-weight: 600;
transition: all var(--transition);
}
.forgot-auth-links a:hover {
text-decoration: underline;
}
/* Responsive */
@media (max-width: 480px) {
.forgot-password-page {
padding: var(--spacing-md);
}
.forgot-password-container {
padding: 32px 24px;
}
.forgot-password-title {
font-size: 24px;
}
}
</style>
{% endblock %}
{% block content %}
<div class="forgot-password-page theme-professional">
<div class="forgot-password-container">
<div class="forgot-password-header">
<h1 class="forgot-password-title">Reset Password</h1>
<p class="forgot-password-subtitle">Enter your email address and we'll send you a link to reset your password</p>
</div>
{% if messages %}
<div class="messages">
{% for message in messages %}
<div class="message {{ message.tags }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
<form method="post" class="forgot-password-form">
{% csrf_token %}
<div class="form-group">
<label for="email" class="form-label">Email Address</label>
<input
type="email"
id="email"
name="email"
class="form-input"
placeholder="Enter your email address"
required
autocomplete="email"
>
</div>
<button type="submit" class="btn btn-primary reset-btn">
Send Reset Instructions
</button>
</form>
<div class="forgot-auth-links">
<p>Remember your password? <a href="{% url 'authentication:login' %}">Sign in</a></p>
<p>Don't have an account? <a href="{% url 'authentication:register' %}">Create account</a></p>
</div>
</div>
</div>
{% endblock %}
{% block extra_js %}
<script>
// Focus on email field when page loads
document.addEventListener('DOMContentLoaded', function() {
const emailField = document.getElementById('email');
if (emailField) {
emailField.focus();
}
// Add loading state to button on form submission
const resetForm = document.querySelector('.forgot-password-form');
const resetBtn = document.querySelector('.reset-btn');
if (resetForm && resetBtn) {
resetForm.addEventListener('submit', function() {
resetBtn.innerHTML = '⏳ Sending instructions...';
resetBtn.disabled = true;
});
}
});
</script>
{% endblock %}