<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <!-- Hero Section -->
            <div class="hero-section text-center">
                <h1 class="display-5 fw-bold mb-4" style="color: var(--primary-color);">
                    <i class="bi bi-clipboard-check me-2"></i>CEK HASIL TKA
                </h1>
                <p class="lead mb-4">
                    Masukkan NISN dan Token untuk melihat hasil Tes Kemampuan Akademik Anda
                </p>

                <!-- Flash Messages -->
                <?php if ($this->session->flashdata('error')): ?>
                    <div class="alert alert-danger alert-dismissible fade show" role="alert">
                        <?php echo $this->session->flashdata('error'); ?>
                        <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                    </div>
                <?php endif; ?>

                <?php if ($this->session->flashdata('success')): ?>
                    <div class="alert alert-success alert-dismissible fade show" role="alert">
                        <?php echo $this->session->flashdata('success'); ?>
                        <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                    </div>
                <?php endif; ?>

                <!-- Check Form -->
                <div class="card border-0">
                    <div class="card-body p-4">
                        <form action="<?php echo site_url('home/cek_hasil'); ?>" method="POST">
                            <div class="mb-4">
                                <label for="nisn" class="form-label fw-bold">
                                    <i class="bi bi-person-badge me-2"></i>NISN (Nomor Induk Siswa Nasional)
                                </label>
                                <input type="text" class="form-control form-control-lg" id="nisn" name="nisn"
                                    placeholder="Masukkan 10 digit NISN" required maxlength="10"
                                    value="<?php echo set_value('nisn'); ?>">
                            </div>

                            <div class="mb-4">
                                <label for="token" class="form-label fw-bold">
                                    <i class="bi bi-key me-2"></i>Token Akses
                                </label>
                                <input type="text" class="form-control form-control-lg" id="token" name="token"
                                    placeholder="Masukkan 5 karakter token" required maxlength="5"
                                    value="<?php echo set_value('token'); ?>">
                                <small class="text-muted">Token diberikan oleh administrator sekolah</small>
                            </div>

                            <div class="d-grid">
                                <button type="submit" class="btn btn-primary btn-lg">
                                    <i class="bi bi-search me-2"></i>Cek Hasil
                                </button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- Information Card -->
                <div class="card border-0 mt-4" style="background-color: var(--light-bg);">
                    <div class="card-body">
                        <h5 class="card-title">
                            <i class="bi bi-info-circle me-2"></i>Informasi Penting
                        </h5>
                        <ul class="list-unstyled">
                            <li><i class="bi bi-check-circle text-success me-2"></i>Pastikan NISN yang dimasukkan benar
                            </li>
                            <li><i class="bi bi-check-circle text-success me-2"></i>Token bersifat rahasia dan hanya
                                bisa digunakan sekali</li>
                            <li><i class="bi bi-check-circle text-success me-2"></i>Hasil dapat dicetak setelah muncul
                                di layar</li>
                            <li><i class="bi bi-check-circle text-success me-2"></i>Hubungi administrator jika mengalami
                                kendala</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>