<?php 
require_once $_SERVER['DOCUMENT_ROOT'] . '/auth/cek_login.php'; 
include $_SERVER['DOCUMENT_ROOT'] . '/assets/db/db.php'; 
?>
<!DOCTYPE html>
<html>
<head>
    <title>SINKARKES - Ganti Password</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body class="bg-light">
    <div class="container mt-5">
        <div class="row justify-content-center">
            <div class="col-md-5">
                <div class="card shadow">
                    <div class="card-header bg-dark text-white">Ganti Password Admin</div>
                    <div class="card-body">
                        <form action="proses_ganti_pass.php" method="POST">
                            <div class="form-group">
                                <label>Username</label>
                                <input type="text" class="form-control" value="admin" readonly>
                            </div>
                            <div class="form-group">
                                <label>Password Baru</label>
                                <input type="password" name="pass_baru" class="form-control" required>
                            </div>
                            <button type="submit" class="btn btn-primary btn-block">Simpan Password Baru</button>
                            <a href="../entry/admin.php" class="btn btn-link btn-block text-muted">Kembali</a>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>