larxius commited on
Commit
5987c42
·
verified ·
1 Parent(s): 4e3a89c

Update backend/templates/emails/password_reset.html

Browse files
backend/templates/emails/password_reset.html ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Reset Your Password</title>
7
+ <style>
8
+
9
+ /* LarShield Premium Email Design System */
10
+ body { margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #f8fafc; color: #0f172a; -webkit-font-smoothing: antialiased; }
11
+ .wrapper { width: 100%; table-layout: fixed; background-color: #f8fafc; padding: 40px 0; }
12
+ .main { background-color: #ffffff; margin: 0 auto; width: 100%; max-width: 600px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); overflow: hidden; }
13
+ .header { padding: 40px 30px; text-align: center; color: white; position: relative; overflow: hidden; }
14
+ .header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); z-index: 1; }
15
+ .header-content { position: relative; z-index: 2; }
16
+ .header.blue { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
17
+ .header.green { background: linear-gradient(135deg, #064e3b 0%, #10b981 100%); }
18
+ .header.red { background: linear-gradient(135deg, #7f1d1d 0%, #ef4444 100%); }
19
+ .header.purple { background: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 100%); }
20
+
21
+ .header h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
22
+ .logo { max-height: 48px; width: auto; margin-bottom: 24px; display: block; margin-left: auto; margin-right: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
23
+
24
+ .content { padding: 40px 40px 30px; }
25
+ .content p { font-size: 16px; line-height: 1.7; color: #334155; margin-bottom: 24px; }
26
+ .content strong { color: #0f172a; font-weight: 600; }
27
+
28
+ .alert-box { background-color: #fef2f2; border-left: 4px solid #ef4444; padding: 16px 20px; border-radius: 0 8px 8px 0; margin-bottom: 24px; }
29
+ .alert-box p { color: #991b1b; margin: 0; font-size: 15px; font-weight: 500; }
30
+
31
+ .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
32
+ .stat-card { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center; }
33
+ .stat-card.full-width { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
34
+ .stat-label { display: block; color: #64748b; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
35
+ .stat-value { display: block; color: #0f172a; font-size: 20px; font-weight: 700; }
36
+ .stat-value.critical { color: #dc2626; }
37
+ .stat-value.high { color: #ea580c; }
38
+ .stat-value.medium { color: #d97706; }
39
+ .stat-value.low { color: #2563eb; }
40
+
41
+ .btn-wrapper { text-align: center; margin: 36px 0; }
42
+ .btn { display: inline-block; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff !important; text-decoration: none; font-weight: 600; font-size: 16px; padding: 16px 32px; border-radius: 12px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); transition: transform 0.2s, box-shadow 0.2s; }
43
+ .btn.red { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }
44
+ .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); }
45
+
46
+ .signature { margin-top: 40px; margin-bottom: 0; padding-top: 24px; border-top: 1px solid #e2e8f0; }
47
+ .footer { text-align: center; padding: 24px 30px; color: #94a3b8; font-size: 13px; line-height: 1.6; }
48
+ .footer a { color: #64748b; text-decoration: underline; }
49
+
50
+ @media (prefers-color-scheme: dark) {
51
+ body, .wrapper { background-color: #020617; color: #f8fafc; }
52
+ .main { background-color: #0f172a; border-color: #1e293b; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5); }
53
+ .content p { color: #cbd5e1; }
54
+ .content strong { color: #f8fafc; }
55
+ .stat-card { background-color: #1e293b; border-color: #334155; }
56
+ .stat-label { color: #94a3b8; }
57
+ .stat-value { color: #f8fafc; }
58
+ .signature { border-color: #334155; }
59
+ .alert-box { background-color: #450a0a; border-color: #dc2626; }
60
+ .alert-box p { color: #fecaca; }
61
+ }
62
+ @media (max-width: 600px) {
63
+ .stats-grid { grid-template-columns: 1fr; }
64
+ .content { padding: 30px 20px; }
65
+ }
66
+
67
+ </style>
68
+ </head>
69
+ <body>
70
+ <div class="wrapper">
71
+ <div class="main">
72
+ <div class="header blue">
73
+ <div class="header-content">
74
+ <img src="{{ logo_url }}" alt="LarShield Logo" class="logo">
75
+ <h1>Password Reset</h1>
76
+ </div>
77
+ </div>
78
+ <div class="content">
79
+ <p>Hello <strong>{{ user_name }}</strong>,</p>
80
+ <p>We received a request to reset the password for your LarShield account associated with this email address.</p>
81
+
82
+ <p>If you made this request, please click the button below to set a new password. This link will expire in 15 minutes for security reasons.</p>
83
+
84
+ <div class="btn-wrapper">
85
+ <a href="{{ reset_link }}" class="btn">Reset Password</a>
86
+ </div>
87
+
88
+ <p style="font-size: 14px; color: #64748b; background: #f1f5f9; padding: 16px; border-radius: 8px;">
89
+ If you did not request a password reset, you can safely ignore this email. Your password will remain unchanged and your account is secure.
90
+ </p>
91
+ <p class="signature">Securely yours,<br><strong>The LarShield Defense Team</strong></p>
92
+ </div>
93
+ </div>
94
+ <div class="footer">
95
+ &copy; {{ year }} LarShield Security. All rights reserved.<br>
96
+ Automated platform notification. For assistance, contact <a href="mailto:{{ support_email }}">{{ support_email }}</a>.
97
+ </div>
98
+ </div>
99
+ </body>
100
+ </html>