-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforgot-password.html
More file actions
185 lines (172 loc) · 9.42 KB
/
forgot-password.html
File metadata and controls
185 lines (172 loc) · 9.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>Forgot Password - Note.Lab</title>
<link rel="stylesheet" href="frontend/css/main.css">
<link rel="stylesheet" href="frontend/css/login.css">
<link rel="icon" type="image/png" href="frontend/assets/Image/Logo.png">
</head>
<body class="login-body">
<div class="login-container">
<!-- Forgot Password Card -->
<div class="login-card">
<!-- Header -->
<div class="login-header">
<div class="logo-section">
<img src="frontend/assets/Image/Logo.png" alt="Note.Lab Logo" class="logo-image">
<h1 class="app-title">Note.Lab</h1>
</div>
<p class="login-subtitle">Reset your password</p>
</div>
<!-- Forgot Password Form -->
<div class="login-form-container">
<!-- Step Navigation -->
<div class="auth-tabs">
<button class="auth-tab active" data-step="request" id="requestTab">Request Reset</button>
<button class="auth-tab" data-step="reset" id="resetTab" style="display: none;">Reset Password</button>
</div>
<!-- Messages -->
<div id="messageContainer" class="message-container"></div>
<!-- Step 1: Request Password Reset -->
<form id="requestForm" class="auth-form">
<div class="form-group">
<label for="email">Email Address</label>
<input
type="email"
id="email"
name="email"
placeholder="Enter your email address"
required
autocomplete="email"
>
</div>
<button type="submit" class="btn-primary btn-full" id="requestBtn">
<span class="btn-text">Send Reset Link</span>
<span class="btn-loading" style="display: none;">
<svg class="spinner" width="20" height="20" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"
stroke-dasharray="31.416" stroke-dashoffset="31.416">
<animate attributeName="stroke-dasharray" dur="2s"
values="0 31.416;15.708 15.708;0 31.416" repeatCount="indefinite"/>
<animate attributeName="stroke-dashoffset" dur="2s"
values="0;-15.708;-31.416" repeatCount="indefinite"/>
</circle>
</svg>
<span class="loading-text">Sending...</span>
</span>
</button>
</form>
<!-- Step 2: Reset Password -->
<form id="resetForm" class="auth-form" style="display: none;">
<div class="form-group">
<label for="resetToken">Reset Token</label>
<input
type="text"
id="resetToken"
name="resetToken"
placeholder="Enter the token from your email"
required
autocomplete="off"
>
</div>
<div class="form-group">
<label for="newPassword">New Password</label>
<div class="password-input">
<input
type="password"
id="newPassword"
name="newPassword"
placeholder="Enter your new password"
required
autocomplete="new-password"
>
<button type="button" class="password-toggle" id="newPasswordToggle">
<svg class="eye-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>
<circle cx="12" cy="12" r="3"/>
</svg>
</button>
</div>
</div>
<div class="form-group">
<label for="confirmNewPassword">Confirm New Password</label>
<div class="password-input">
<input
type="password"
id="confirmNewPassword"
name="confirmNewPassword"
placeholder="Confirm your new password"
required
autocomplete="new-password"
>
<button type="button" class="password-toggle" id="confirmPasswordToggle">
<svg class="eye-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>
<circle cx="12" cy="12" r="3"/>
</svg>
</button>
</div>
</div>
<button type="submit" class="btn-primary btn-full" id="resetBtn">
<span class="btn-text">Reset Password</span>
<span class="btn-loading" style="display: none;">
<svg class="spinner" width="20" height="20" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"
stroke-dasharray="31.416" stroke-dashoffset="31.416">
<animate attributeName="stroke-dasharray" dur="2s"
values="0 31.416;15.708 15.708;0 31.416" repeatCount="indefinite"/>
<animate attributeName="stroke-dashoffset" dur="2s"
values="0;-15.708;-31.416" repeatCount="indefinite"/>
</circle>
</svg>
<span class="loading-text">Resetting...</span>
</span>
</button>
</form>
<!-- Success Message -->
<div id="successMessage" class="success-message" style="display: none;">
<div class="success-icon">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/>
<polyline points="22,4 12,14.01 9,11.01"/>
</svg>
</div>
<h3>Check Your Email</h3>
<p>We've sent a password reset link to your email address. Please check your inbox and follow the instructions to reset your password.</p>
<div class="success-actions">
<button type="button" class="btn-secondary" id="resendBtn">Resend Email</button>
<button type="button" class="btn-primary" id="backToLoginBtn">Back to Login</button>
</div>
</div>
<!-- Back to Login -->
<div class="back-to-login">
<a href="login.html" class="back-link">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 12H5M12 19l-7-7 7-7"/>
</svg>
Back to Sign In
</a>
</div>
</div>
<!-- Footer -->
<div class="login-footer">
<p>© 2025 Note.Lab. Built for developers, by <a href="https://aeroer.live" target="_blank">Aeroer.Live</a>.</p>
<div class="footer-links">
<a href="#" class="footer-link">GitHub</a>
</div>
</div>
</div>
<!-- Background Elements -->
<div class="background-pattern"></div>
<div class="floating-shapes">
<div class="shape shape-1"></div>
<div class="shape shape-2"></div>
<div class="shape shape-3"></div>
</div>
</div>
<!-- Scripts -->
<script src="frontend/js/forgot-password.js"></script>
</body>
</html>