forked from gyanshankar1708/GrowCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforgot_password.html
More file actions
113 lines (103 loc) · 2.77 KB
/
Copy pathforgot_password.html
File metadata and controls
113 lines (103 loc) · 2.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GrowCraft - Forgot Password</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<style>
*{margin:0; padding:0; box-sizing:border-box; font-family:'Poppins', sans-serif;}
body{
background:linear-gradient(135deg,#e6f9ec,#c8f3d6);
display:flex;
justify-content:center;
align-items:center;
min-height:100vh;
animation:fadeIn 1s ease forwards;
}
@keyframes fadeIn {
from{opacity:0; transform:translateY(20px);}
to{opacity:1; transform:translateY(0);}
}
.container{
width:400px;
max-width:90%;
background:#fff;
border-radius:12px;
padding:30px 25px;
box-shadow:0 12px 30px rgba(0,0,0,0.2);
text-align:center;
animation:slideUp 1s ease forwards;
}
@keyframes slideUp {
from{opacity:0; transform:translateY(30px);}
to{opacity:1; transform:translateY(0);}
}
h2{color:#2e7d32; margin-bottom:10px;}
p{color:#4f4f4f; font-size:14px; margin-bottom:20px;}
input{
width:100%;
padding:14px;
margin-bottom:15px;
border-radius:6px;
border:none;
outline:none;
font-size:14px;
transition:all 0.3s ease;
}
input:focus{
border:2px solid #a5d6a7;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
}
button{
width:100%;
padding:14px;
background:#1b5e20;
border:none;
border-radius:6px;
color:white;
font-size:16px;
cursor:pointer;
transition:all 0.3s ease;
}
button:hover{
background:#2e7d32;
transform:scale(1.05);
}
.back-login{
margin-top:15px;
font-size:13px;
}
.back-login a{
color:#2e7d32;
text-decoration:none;
transition:all 0.3s ease;
}
.back-login a:hover{
color:#1b5e20;
}
</style>
</head>
<body>
<div class="container">
<h2>Forgot Password</h2>
<p>Enter your email below to reset your password.</p>
<form id="forgotForm">
<input type="email" id="email" placeholder="Enter your email" required>
<button type="submit">Reset Password</button>
</form>
<div class="back-login">
<p>Remembered your password? <a href="login.html">Login here</a></p>
</div>
</div>
<script>
document.getElementById("forgotForm").addEventListener("submit", function(e){
e.preventDefault();
const email = document.getElementById("email").value.trim();
if(!email){ alert("Please enter your email."); return; }
alert("Password reset link sent to: " + email);
});
</script>
</body>
</html>