<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <title><?php if (!empty($site_name)) echo $site_name; ?> | <?php echo $title; ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap & AdminLTE -->
    <link rel="stylesheet" href="<?php echo base_url(); ?>public/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>public/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>public/plugins/adminlte/css/AdminLTE.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>public/plugins/adminlte/css/skins/_all-skins.min.css">

    <!-- JS -->
    <script src="<?php echo base_url(); ?>public/plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <script src="<?php echo base_url(); ?>public/bootstrap/js/bootstrap.min.js"></script>
    <script src="<?php echo base_url(); ?>public/plugins/adminlte/js/app.min.js"></script>

    <style>
        /* ===============================
           BACKGROUND – PROFESSIONAL CBT
        =============================== */
        body {
            min-height: 100vh;
            font-family: "Poppins", sans-serif;
            background: linear-gradient(120deg, #0f2027, #203a43, #2c5364);
            background-size: 300% 300%;
            animation: bgFlow 18s ease infinite;
        }

        @keyframes bgFlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .wrapper,
        .content-wrapper {
            background: transparent !important;
        }

        .content-wrapper {
            min-height: calc(100vh - 80px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        /* ===============================
           LOGIN BOX – CLEAN & COMPACT
        =============================== */
        .cbt-login-box {
            width: 640px;
            max-width: 100%;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 18px 45px rgba(0,0,0,.35);
            display: flex;
            overflow: hidden;
        }

        /* LEFT PANEL */
        .cbt-left {
            width: 42%;
            padding: 26px;
            background: linear-gradient(160deg, #1c3faa, #1e88e5);
            color: #ffffff;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .cbt-left h3 {
            margin: 0 0 10px;
            font-weight: 600;
            letter-spacing: .8px;
        }

        .cbt-left p {
            font-size: 13px;
            line-height: 1.6;
            opacity: .95;
        }

        .cbt-left .badge-cbt {
            margin-top: 16px;
            display: inline-block;
            font-size: 11px;
            padding: 6px 14px;
            border-radius: 20px;
            background: rgba(255,255,255,.2);
            letter-spacing: 1px;
        }

        /* RIGHT PANEL */
        .cbt-right {
            width: 58%;
            padding: 28px;
        }

        .cbt-right h4 {
            margin-bottom: 18px;
            font-weight: 600;
            color: #1c3faa;
        }

        .cbt-right .form-control {
            height: 40px;
            border-radius: 6px;
            border: 1px solid #ddd;
            font-size: 14px;
        }

        .cbt-right .form-control:focus {
            border-color: #1e88e5;
            box-shadow: 0 0 0 2px rgba(30,136,229,.12);
        }

        .cbt-right .btn {
            height: 40px;
            border-radius: 6px;
            font-weight: 600;
            background: linear-gradient(135deg, #1c3faa, #1e88e5);
            border: none;
        }

        /* ===============================
           FOOTER
        =============================== */
        .main-footer {
            background: #ffffff !important;
            border-top: 1px solid #ddd;
            padding: 10px 15px;
            text-align: center;
        }

        /* ===============================
           MOBILE FRIENDLY
        =============================== */
        @media (max-width: 768px) {
            .cbt-login-box {
                flex-direction: column;
            }

            .cbt-left,
            .cbt-right {
                width: 100%;
                text-align: center;
            }
        }
    </style>
</head>

<body class="skin-blue layout-top-nav">
<div class="wrapper">

    <!-- CONTENT -->
    <div class="content-wrapper">
        <div class="cbt-login-box">

            <div class="cbt-left">
                <h3><?php if (!empty($site_name)) echo $site_name; ?></h3>
                <p>
                    INAS-MOBILE-EXAM<br>
                    
                </p>
                <span class="badge-cbt">COMPUTER BASED TEST</span>
            </div>

            <div class="cbt-right">
               
                <?php
                if (!empty($content)) {
                    echo $content;
                }
                ?>
            </div>

        </div>
    </div>

    <!-- FOOTER -->
    <footer class="main-footer no-print">
        <div class="pull-right hidden-xs">
            <?php
            if (!empty($link_login_operator)) {
                if ($link_login_operator == 'ya') {
                    ?>
                    <strong><a href="<?php echo site_url(); ?>/manager/">Log in admin</a></strong>
                    <?php
                }
            } else {
                ?>
                <strong><a href="<?php echo site_url(); ?>/manager/">Log in admin</a></strong>
                <?php
            }
            ?>
        </div>
        <strong>kangrinan#mariarumi</strong>
    </footer>

</div>
</body>
</html>