You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.1 KiB
107 lines
3.1 KiB
6 months ago
|
<!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>
|
||
|
body {
|
||
|
font-family: Arial, sans-serif;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
height: 100vh;
|
||
|
}
|
||
|
.container {
|
||
|
text-align: center;
|
||
|
padding: 20px;
|
||
|
border: 1px solid #ccc;
|
||
|
border-radius: 10px;
|
||
|
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
|
||
|
max-width: 400px;
|
||
|
width: 100%;
|
||
|
}
|
||
|
h2 {
|
||
|
margin-bottom: 20px;
|
||
|
}
|
||
|
form {
|
||
|
margin-bottom: 20px;
|
||
|
}
|
||
|
label {
|
||
|
display: block;
|
||
|
margin-bottom: 8px;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
input[type="email"] {
|
||
|
width: 100%;
|
||
|
padding: 10px;
|
||
|
margin-bottom: 20px;
|
||
|
border: 1px solid #ccc;
|
||
|
border-radius: 5px;
|
||
|
}
|
||
|
button {
|
||
|
background-color: #007bff;
|
||
|
color: white;
|
||
|
border: none;
|
||
|
padding: 10px 20px;
|
||
|
border-radius: 5px;
|
||
|
cursor: pointer;
|
||
|
font-size: 16px;
|
||
|
}
|
||
|
button:hover {
|
||
|
background-color: #0056b3;
|
||
|
}
|
||
|
#message {
|
||
|
margin-top: 10px;
|
||
|
font-size: 14px;
|
||
|
color: #333;
|
||
|
}
|
||
|
.return-btn {
|
||
|
background-color: #f0f0f0;
|
||
|
color: #007bff;
|
||
|
border: 1px solid #ccc;
|
||
|
padding: 10px 20px;
|
||
|
border-radius: 5px;
|
||
|
cursor: pointer;
|
||
|
font-size: 16px;
|
||
|
text-decoration: none;
|
||
|
display: inline-block;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
.return-btn:hover {
|
||
|
background-color: #e0e0e0;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container">
|
||
|
<h2>Forgot Password</h2>
|
||
|
<form id="forgotPasswordForm">
|
||
|
<label for="email">Enter your email address:</label>
|
||
|
<input type="email" id="email" name="email" placeholder="Enter your email" required>
|
||
|
<button type="button" onclick="sendOtp()">Send OTP</button>
|
||
|
</form>
|
||
|
<div id="message"></div>
|
||
|
<a href="login.php" class="return-btn">Return to Login</a>
|
||
|
</div>
|
||
|
<script>
|
||
|
function sendOtp() {
|
||
|
const email = document.getElementById("email").value;
|
||
|
const message = document.getElementById("message");
|
||
|
|
||
|
if (email) {
|
||
|
message.textContent = 'An OTP has been sent to ' + email + '. Please check your email.';
|
||
|
// Simulate sending OTP and redirect to OTP verification page
|
||
|
setTimeout(function() {
|
||
|
window.location.href = 'verifyotp.html'; // Redirect to OTP verification page
|
||
|
}, 2000); // Redirect after 2 seconds
|
||
|
} else {
|
||
|
message.textContent = "Please enter a valid email address.";
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|