-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreset.html
More file actions
273 lines (241 loc) · 8.86 KB
/
reset.html
File metadata and controls
273 lines (241 loc) · 8.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forgot Password</title>
<link rel="icon" href="assets/favicon.png" type="image/png">
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=error" />
<style>
:root {
--primary-color: #2563eb;
--secondary-color: #1e40af;
--accent-color: #60a5fa;
--success-checkmark-color: #28a745;
}
html, body {
height: 100%;
margin: 0;
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.container {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem 0;
}
.form-container {
background: white;
padding: 2.5rem;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
width: 100%;
max-width: 450px;
position: relative;
}
.logo-container {
text-align: center;
margin-bottom: 2rem;
}
.logo {
width: 80px;
height: 80px;
margin-bottom: 1rem;
}
.brand-name {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.back-link {
position: absolute;
top: 1.5rem;
left: 1.5rem;
color: #6b7280;
text-decoration: none;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
transition: all 0.3s ease;
}
.back-link:hover {
color: var(--primary-color);
}
.back-link svg {
fill: currentColor;
}
.form-floating {
margin-bottom: 1.25rem;
}
.form-control {
border: 2px solid #e5e7eb;
border-radius: 10px;
transition: all 0.3s ease;
}
.form-control:focus {
border-color: var(--accent-color);
box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
}
.btn-primary {
background-color: var(--primary-color);
border: none;
padding: 0.8rem;
border-radius: 10px;
font-weight: 500;
transition: all 0.3s ease;
}
.btn-primary:hover {
background-color: var(--secondary-color);
transform: translateY(-1px);
}
.btn-outline-primary {
color: var(--primary-color);
border-color: var(--primary-color);
border-radius: 10px;
padding: 0.8rem;
font-weight: 500;
transition: all 0.3s ease;
}
.btn-outline-primary:hover {
background-color: var(--primary-color);
border-color: var(--primary-color);
transform: translateY(-1px);
}
.success-checkmark {
width: 80px;
height: 80px;
margin: 0 auto 1.5rem;
display: block;
animation: breath 2s infinite; /* Breathing effect */
}
@keyframes breath {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
.success-checkmark circle {
fill: var(--success-checkmark-color);
}
.success-checkmark path {
fill: none;
stroke: #fff;
stroke-width: 6;
stroke-linecap: round;
stroke-linejoin: round;
}
.info-text {
color: #6b7280;
font-size: 0.9rem;
text-align: center;
margin-top: 1.5rem;
padding: 0.75rem;
background: #f3f4f6;
border-radius: 8px;
}
@media (max-height: 700px) {
.container {
padding: 1rem 0;
}
.form-container {
padding: 2rem;
}
.logo {
width: 60px;
height: 60px;
margin-bottom: 0.75rem;
}
}
@media (max-width: 576px) {
.form-container {
margin: 1rem;
padding: 1.5rem;
}
}
</style>
</head>
<body>
<div class="container">
<!-- Password Reset Request Form -->
<div class="form-container animate__animated animate__fadeIn" id="requestForm">
<a href="auth.html" class="back-link">
<svg width="16" height="16" viewBox="0 0 16 16">
<path d="M15 8H3.83l3.58-3.59L6 3l-6 6 6 6 1.41-1.41L3.83 10H15z"/>
</svg>
Back to Login
</a>
<div class="logo-container">
<img src="assets/favicon-bg.png" alt="Logo" class="logo" />
<div class="brand-name">MediChain</div>
</div>
<h4 class="text-center mb-3">Reset Your Password</h4>
<p class="text-muted text-center mb-4">
Enter your email address and we'll send you instructions to reset your password.
</p>
<form onsubmit="event.preventDefault(); showSuccess();">
<div class="form-floating mb-4">
<input type="email" class="form-control" id="email" placeholder="name@example.com" required>
<label for="email">Email address</label>
</div>
<button type="submit" class="btn btn-primary w-100 btn-submit mb-3">
Send Reset Link
</button>
<div class="info-text">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="me-2" style="vertical-align: -2px;">
<circle cx="8" cy="8" r="7" stroke="currentColor" stroke-width="1.5" fill="none"/>
<rect x="7" y="4" width="2" height="5" fill="currentColor"/>
<circle cx="8" cy="11" r="1" fill="currentColor"/>
</svg>
Make sure to check your spam folder if you don't receive the email
</div>
</form>
</div>
<!-- Success Message -->
<div class="form-container animate__animated animate__fadeIn" id="successMessage" style="display: none;">
<div class="text-center">
<svg class="success-checkmark" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="40" fill="none" stroke="var(--success-checkmark-color)" stroke-width="5"/>
<path d="M30 50 L45 65 L70 35" fill="none" stroke="#fff" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<h4 class="text-center mb-3">Check Your Email</h4>
<p class="text-center text-muted mb-4">
We've sent password reset instructions to your email address.
The link will expire in 30 minutes.
</p>
</div>
<div class="d-grid gap-3">
<button onclick="showRequestForm()" class="btn btn-outline-primary btn-submit">
Didn't receive the email?
</button>
<a href="auth.html" class="btn btn-primary btn-submit">
Back to Login
</a>
</div>
<div class="info-text">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="me-2" style="vertical-align: -2px;">
<circle cx="8" cy="8" r="7" stroke="currentColor" stroke-width="1.5" fill="none"/>
<rect x="7" y="4" width="2" height="5" fill="currentColor"/>
<circle cx="8" cy="11" r="1" fill="currentColor"/>
</svg>
If you don't see the email, check your spam folder
</div>
</div>
</div>
<script>
function showRequestForm() {
document.getElementById('requestForm').style.display = 'block';
document.getElementById('successMessage').style.display = 'none';
}
function showSuccess() {
document.getElementById('requestForm').style.display = 'none';
document.getElementById('successMessage').style.display = 'block';
}
</script>
</body>
</html>