api-ix commited on
Commit
c807dac
·
verified ·
1 Parent(s): 8f8212c

Upload forget.html

Browse files
Files changed (1) hide show
  1. forget.html +270 -0
forget.html ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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, maximum-scale=1.0, user-scalable=no">
6
+ <title>Reset Password</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+
10
+ <style>
11
+ /* --- RESET & CORE STYLES --- */
12
+ * {
13
+ margin: 0;
14
+ padding: 0;
15
+ box-sizing: border-box;
16
+ font-family: 'Poppins', sans-serif;
17
+ -webkit-tap-highlight-color: transparent;
18
+ }
19
+
20
+ body {
21
+ min-height: 100vh;
22
+ min-height: -webkit-fill-available;
23
+ display: flex;
24
+ justify-content: center;
25
+ align-items: center;
26
+ background-color: #0f0f1a;
27
+ overflow: hidden;
28
+ position: relative;
29
+ touch-action: none;
30
+ }
31
+
32
+ /* --- AURORA BACKGROUND --- */
33
+ body::before {
34
+ content: '';
35
+ position: absolute;
36
+ top: -50%;
37
+ left: -50%;
38
+ width: 200%;
39
+ height: 200%;
40
+ background: radial-gradient(circle, #4F46E5 0%, #7C3AED 30%, #EC4899 60%, #0f0f1a 80%);
41
+ background-size: 200% 200%;
42
+ animation: auroraMove 15s ease infinite alternate;
43
+ opacity: 0.5;
44
+ z-index: -1;
45
+ filter: blur(80px);
46
+ }
47
+
48
+ @keyframes auroraMove {
49
+ 0% { transform: translate(0, 0) rotate(0deg); }
50
+ 50% { transform: translate(-10%, 5%) rotate(10deg); }
51
+ 100% { transform: translate(5%, -10%) rotate(-5deg); }
52
+ }
53
+
54
+ /* --- CARD STYLING --- */
55
+ .login-card-container {
56
+ perspective: 1500px;
57
+ width: 100%;
58
+ display: flex;
59
+ justify-content: center;
60
+ padding: 20px;
61
+ }
62
+
63
+ .login-card {
64
+ width: 100%;
65
+ max-width: 420px;
66
+ padding: 50px 30px;
67
+ border-radius: 40px;
68
+ background: rgba(255, 255, 255, 0.05);
69
+ backdrop-filter: blur(25px);
70
+ -webkit-backdrop-filter: blur(25px);
71
+ border: 1px solid rgba(255, 255, 255, 0.15);
72
+ box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05),
73
+ 0 20px 40px rgba(0, 0, 0, 0.3);
74
+ color: #fff;
75
+ text-align: center;
76
+ transition: transform 0.1s ease-out;
77
+ transform-style: preserve-3d;
78
+ will-change: transform;
79
+ }
80
+
81
+ .login-card h2 {
82
+ font-weight: 700;
83
+ font-size: 30px;
84
+ margin-bottom: 10px;
85
+ background: linear-gradient(to right, #fff, #c4b5fd);
86
+ -webkit-background-clip: text;
87
+ -webkit-text-fill-color: transparent;
88
+ }
89
+
90
+ .login-card p.subtitle {
91
+ font-size: 14px;
92
+ color: rgba(255, 255, 255, 0.7);
93
+ margin-bottom: 35px;
94
+ line-height: 1.5;
95
+ }
96
+
97
+ /* --- INPUT FIELDS --- */
98
+ .input-group {
99
+ position: relative;
100
+ margin-bottom: 25px;
101
+ text-align: left;
102
+ }
103
+
104
+ .input-group i.field-icon {
105
+ position: absolute;
106
+ top: 50%;
107
+ left: 20px;
108
+ transform: translateY(-50%);
109
+ color: rgba(255, 255, 255, 0.5);
110
+ font-size: 16px;
111
+ pointer-events: none;
112
+ transition: 0.3s;
113
+ }
114
+
115
+ .input-group input {
116
+ width: 100%;
117
+ padding: 16px 50px 16px 50px;
118
+ border-radius: 50px;
119
+ border: none;
120
+ outline: none;
121
+ background: rgba(255, 255, 255, 0.08);
122
+ color: #fff;
123
+ font-size: 16px;
124
+ font-weight: 400;
125
+ transition: all 0.3s ease;
126
+ box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1);
127
+ }
128
+
129
+ .input-group input::placeholder { color: rgba(255, 255, 255, 0.4); }
130
+
131
+ .input-group input:focus {
132
+ background: rgba(255, 255, 255, 0.15);
133
+ box-shadow: 0 0 15px rgba(124, 58, 237, 0.3), inset 2px 2px 5px rgba(0,0,0,0.1);
134
+ }
135
+
136
+ .input-group input:focus + i.field-icon { color: #c4b5fd; }
137
+
138
+ /* --- BUTTON --- */
139
+ .login-btn {
140
+ width: 100%;
141
+ padding: 16px;
142
+ border-radius: 50px;
143
+ border: none;
144
+ font-size: 16px;
145
+ font-weight: 600;
146
+ color: #fff;
147
+ cursor: pointer;
148
+ background: linear-gradient(135deg, #4F46E5, #EC4899);
149
+ box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
150
+ transition: all 0.3s ease;
151
+ user-select: none;
152
+ }
153
+
154
+ .login-btn:hover {
155
+ background: linear-gradient(135deg, #4338ca, #db2777);
156
+ transform: translateY(-2px) scale(1.01);
157
+ box-shadow: 0 15px 30px rgba(124, 58, 237, 0.6);
158
+ }
159
+
160
+ .links {
161
+ margin-top: 25px;
162
+ font-size: 14px;
163
+ color: rgba(255, 255, 255, 0.6);
164
+ }
165
+ .links a {
166
+ color: #fff;
167
+ text-decoration: none;
168
+ font-weight: 600;
169
+ margin-left: 5px;
170
+ }
171
+ .links a:hover {
172
+ text-decoration: underline;
173
+ }
174
+
175
+ /* --- ANIMATIONS --- */
176
+ .shake { animation: shake 0.4s ease-in-out; }
177
+ @keyframes shake {
178
+ 0%, 100% { transform: translateX(0); }
179
+ 25% { transform: translateX(-8px); }
180
+ 75% { transform: translateX(8px); }
181
+ }
182
+
183
+ @media (max-width: 480px) {
184
+ .login-card { padding: 40px 20px; }
185
+ .login-card h2 { font-size: 26px; }
186
+ }
187
+ </style>
188
+ </head>
189
+ <body>
190
+
191
+ <div class="login-card-container">
192
+ <div class="login-card" id="tiltCard">
193
+ <h2>Reset Password</h2>
194
+ <p class="subtitle">Enter your email address and we'll send you a link to reset your password.</p>
195
+
196
+ <form id="resetForm">
197
+ <div class="input-group">
198
+ <input type="email" id="email" placeholder="Enter your email" autocomplete="email" required>
199
+ <i class="fa-regular fa-envelope field-icon"></i>
200
+ </div>
201
+
202
+ <button type="submit" class="login-btn" id="sendBtn">Send Reset Link</button>
203
+ </form>
204
+
205
+ <div class="links">
206
+ <a href="login.html"><i class="fa-solid fa-arrow-left"></i> Back to Login</a>
207
+ </div>
208
+ </div>
209
+ </div>
210
+
211
+ <script>
212
+ /* --- LOGIC --- */
213
+
214
+ // 1. TILT EFFECT
215
+ const card = document.getElementById('tiltCard');
216
+ const container = document.querySelector('.login-card-container');
217
+
218
+ if (window.matchMedia("(pointer: fine)").matches) {
219
+ container.addEventListener('mousemove', (e) => {
220
+ const rect = container.getBoundingClientRect();
221
+ const x = e.clientX - rect.left - rect.width / 2;
222
+ const y = e.clientY - rect.top - rect.height / 2;
223
+
224
+ const multiple = 15;
225
+ const rotateX = (y / rect.height) * -multiple;
226
+ const rotateY = (x / rect.width) * multiple;
227
+
228
+ card.style.transform = `rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
229
+ });
230
+
231
+ container.addEventListener('mouseleave', () => {
232
+ card.style.transform = `rotateX(0deg) rotateY(0deg)`;
233
+ });
234
+ }
235
+
236
+ // 2. SUBMIT SIMULATION
237
+ const form = document.getElementById('resetForm');
238
+ const sendBtn = document.getElementById('sendBtn');
239
+ const emailInput = document.getElementById('email');
240
+
241
+ form.addEventListener('submit', (e) => {
242
+ e.preventDefault();
243
+
244
+ if (emailInput.value === "") {
245
+ card.classList.add('shake');
246
+ setTimeout(() => card.classList.remove('shake'), 400);
247
+ return;
248
+ }
249
+
250
+ sendBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Sending...';
251
+ sendBtn.style.opacity = '0.8';
252
+ sendBtn.disabled = true;
253
+
254
+ setTimeout(() => {
255
+ sendBtn.innerHTML = 'Link Sent!';
256
+ sendBtn.style.background = 'linear-gradient(135deg, #10B981, #059669)';
257
+
258
+ // Optional: Reset button after a few seconds
259
+ setTimeout(() => {
260
+ sendBtn.innerHTML = 'Send Reset Link';
261
+ sendBtn.style.background = 'linear-gradient(135deg, #4F46E5, #EC4899)';
262
+ sendBtn.style.opacity = '1';
263
+ sendBtn.disabled = false;
264
+ emailInput.value = ""; // Clear input
265
+ }, 3000);
266
+ }, 2000);
267
+ });
268
+ </script>
269
+ </body>
270
+ </html>