<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome Back!</title>
    <link rel="stylesheet" href="/css/styles.css"> <!-- Adjust the path accordingly -->
    <link href="<?= base_url('assets/images/favicon.ico') ?>" rel="icon">
</head>

<body>
    <div class="container">
        <div class="left-side">
            <img src="<?= base_url('assets/images/logo.png') ?>" alt="School Logo" class="logo"> <!-- Adjust the path accordingly -->
            <div>Al Rahma Sunday School</div>
        </div>
        <div class="right-side">
            <div class="welcome-back-container">
                <h2>Welcome back!</h2>
                <p>As user have assigned multiple roles in the Al Rahma Sunday School's portal, please select a role you
                    want to login with:</p>
                <form method="post" action="/user/select_role">
                    <?= csrf_field(); ?>
                    <div class="form-group">
                        <label for="role">Role:</label>
                        <select id="role" name="role">
                            <option value="parent">Parent / Guardian</option>
                            <option value="teacher">Teacher</option>
                            <option value="admin">Admin</option>
                            <option value="admin">Guest</option>
                            <option value="administrator">Administrator</option>
                        </select>
                    </div>
                    <div class="form-actions">
                        <button type="submit">Login</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>

</html>