<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="vi">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Quên mật khẩu</title>
    <link rel="icon" href="resources/img/icon/favicon.ico" type="image/x-icon">
    
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" 
        integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">

    <link href="resources/css/login.css" rel="stylesheet">
</head>

<body>
	<main class="form-signin w-100 m-auto">
		<form class="text-center" action="forgot-password" method="post">
			<input type="hidden" name="action" value="send">
			<a href="home"><img class="logo" src="resources/img/logo/logo(black).png" alt="logo" width="280"></a>

			<h1 class="h3 mb-3 fw-normal">QUÊN MẬT KHẨU</h1>

			<div class="text-center"><p class="red"><i>${message}</i></p></div>

			<div class="form-floating mb-2">
				<input type="email" class="form-control" id="email"
					placeholder="Email" name="email" value="${email}" required> <label for="email">Email <span class="red">*</span></label>
			</div>
			<button class="w-100 btn btn-lg btn-primary mb-2" type="submit">Gửi mã</button>
		</form>
		
		<form class="text-center" action="forgot-password" method="post">
			<input type="hidden" name="action" value="confirm">
			<input type="hidden" name="email" value="${email}">
			<div class="form-floating mb-2">
				<input type="text" class="form-control" id="otp"
					placeholder="OTP" name="otp" required> <label for="otp">Mã OTP <span class="red">*</span></label>
			</div>

			<button class="w-100 btn btn-lg btn-primary mb-2" type="submit">Xác nhận</button>
			<p class="mt-5 mb-3 text-muted">&copy; 2023 Jacobin.com</p>
		</form>
	</main>
	
	<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</body>

</html>
