<?php include PATH_VIEW.'/layout/head.tpl'; ?>

	<div class="container">
		<div class="d-flex align-items-center" style="height:100vh">

			<div class="col-md-4 mx-auto">

				<div class="bg-body-tertiary p-3">
					<h1 class="title-page text-center pb-3"><?php echo $_LANG['password_reset']; ?></h1>
				
					<form id="userEditPassReset" class="no-ajaxy" method="post">
						<div id="changesuccess">
							<input type="hidden" name="action" value="editPassword">
							<div class="form-floating mb-3">
								<input type="password" class="form-control" id="new_password" placeholder="<?php echo $_LANG['new_password']; ?>" name="new_password" required="" minlength="8">
								<label for="new_password"><?php echo $_LANG['new_password']; ?></label>
							</div>

							<div class="form-floating mb-3">
								<input type="password" class="form-control" id="confirm_password" placeholder="<?php echo $_LANG['new_repeat_password']; ?>" name="confirm_password" required="" minlength="8">
								<label for="confirm_password"><?php echo $_LANG['new_repeat_password']; ?></label>
							</div>

							<div class="mb-3 text-center">
								<button type="submit" class="submit btn btn-primary"><?php echo $_LANG['change_password']; ?></button>
								<button class="loading btn btn-primary d-none" type="button" disabled="">
									<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
									<span class="visually-hidden"><?php echo $_LANG['loading']; ?></span>
								</button>
							</div>
						</div>
						
						<div class="mb-3 text-center">
							<span id="res-message" class="d-block mt-3"></span>  
						</div>

					</form>
				</div>

			</div>
		</div>

	</div>


<?php include PATH_VIEW.'/layout/scripts.tpl'; ?>
