<div class="auth-container">
    <div class="auth-card">
        <div class="auth-brand"><i class="fas fa-orbit" style="font-size:2rem;color:var(--secondary)"></i><h2>Reset Password</h2><p>Enter your new password</p></div>
        <?php if (!empty($error)): ?><div class="alert-cix alert-cix-error"><?= $error ?></div><?php endif; ?>
        <?php if (!empty($success)): ?><div class="alert-cix alert-cix-success"><?= $success ?></div><?php endif; ?>
        <?php if (!$error && !$success): ?>
        <form method="POST"><div class="form-group-cix"><label class="form-label-cix">New Password</label><input type="password" name="password" class="form-control-cix" required minlength="8"></div>
        <div class="form-group-cix"><label class="form-label-cix">Confirm Password</label><input type="password" name="confirm_password" class="form-control-cix" required></div>
        <button type="submit" class="btn-cix btn-cix-primary w-100"><i class="fas fa-key me-1"></i> Reset Password</button></form>
        <?php endif; ?>
        <div class="text-center mt-3"><a href="<?= base_url('login') ?>" class="text-secondary"><i class="fas fa-arrow-left me-1"></i> Back to Login</a></div>
    </div>
</div>
