-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathforgot-password.html
179 lines (149 loc) · 3.3 KB
/
forgot-password.html
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
<!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>
<style type="text/css">
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background: linear-gradient(135deg, #4a90e2, #1abc9c);
height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
color: #fff;
}
.navbar {
display: flex;
justify-content: center;
padding: 15px;
background-color: #1c2833;
border-bottom: 2px solid #34495e;
width: 100%;
position: sticky;
top: 0;
z-index: 10;
}
.nav-link {
text-decoration: none;
color: #f39c12;
font-size: 1.2rem;
font-weight: bold;
margin: 0 15px;
transition: color 0.3s;
}
.nav-link:hover {
color: #d35400;
}
/* Forgot Password Container */
.forgot-password-container {
background: rgba(255, 255, 255, 0.1);
padding: 30px;
border-radius: 10px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
width: 100%;
max-width: 400px;
text-align: center;
margin-top: 50px;
}
.form-wrapper h1 {
font-size: 2rem;
margin-bottom: 10px;
}
.form-wrapper p {
font-size: 1rem;
margin-bottom: 20px;
}
/* Form Inputs */
form {
display: flex;
flex-direction: column;
}
label {
text-align: left;
margin-bottom: 8px;
font-size: 0.9rem;
}
input[type="email"] {
padding: 12px;
border-radius: 5px;
border: none;
margin-bottom: 20px;
outline: none;
font-size: 1rem;
background: rgba(255, 255, 255, 0.8);
color: #333;
}
input[type="email"]:focus {
background: #fff;
border: 2px solid #4a90e2;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Submit Button */
.submit-button {
padding: 12px;
border: none;
border-radius: 5px;
background: #9013fe;
color: #fff;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease-in-out;
}
.submit-button:hover {
background: #4a90e2;
transform: scale(1.05);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
/* Responsiveness */
@media (max-width: 480px) {
.forgot-password-container {
padding: 20px;
}
.form-wrapper h1 {
font-size: 1.5rem;
}
.form-wrapper p {
font-size: 0.9rem;
}
}
</style>
</head>
<body>
<header class="navbar">
<a href="../index.html" class="nav-link">Back to Home</a>
</header>
<div class="forgot-password-container">
<div class="form-wrapper">
<h1>Forgot Password</h1>
<p>Enter your registered email address to reset your password.</p>
<form id="forgot-password-form">
<label for="email">Email Address</label>
<input type="email" id="email" placeholder="Enter your email" required>
<button type="submit" class="submit-button">Send Reset Link</button>
</form>
</div>
</div>
<script>
document.getElementById('forgot-password-form').addEventListener('submit', function (e) {
e.preventDefault();
const email = document.getElementById('email').value;
if (email) {
alert(`Password reset link has been sent to ${email}`);
document.getElementById('email').value = ''; // Clear input field
} else {
alert('Please enter a valid email address!');
}
});
</script>
</body>
</html>