<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>點名系統</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.6.0/dist/confetti.browser.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
    <link rel="stylesheet" href="https://class.ccnl.cloud/1111462001/styles.css">
</head>
<body class="bg-gray-100 flex items-center justify-center min-h-screen">
    <div class="container bg-white p-6 rounded-lg shadow-md max-w-md w-full text-center">
        <h1 class="text-2xl font-bold text-gray-800 mb-6">點名系統</h1>
        
        <form id="rollcall-form" action="https://rollcall.cutexyz.com/webdesign2409down/rollcall.php" method="POST" target="response-iframe" class="space-y-4">
            <div>
                <label for="uid" class="block text-left text-sm font-medium text-gray-700 mb-1">學號 (UID):</label>
                <input type="text" id="uid" name="uid" placeholder="請輸入學號" 
                    class="w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500 transition-all duration-300">
            </div>

            <div>
                <label for="cname" class="block text-left text-sm font-medium text-gray-700 mb-1">姓名 (Name):</label>
                <input type="text" id="cname" name="cname" placeholder="請輸入姓名" 
                    class="w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500 transition-all duration-300">
            </div>

            <div class="btn-wrapper">
                <div class="ear-container">
                    <div id="leftEar" class="ear-left"></div>
                    <div id="rightEar" class="ear-right"></div>
                </div>
                <button type="submit" class="submit-btn w-full py-2 px-4 bg-blue-600 text-white font-semibold rounded-md shadow-md hover:bg-blue-700 hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-all duration-300 active:scale-95">
                    提交
                </button>
            </div>
        </form>

        <iframe id="response-iframe" name="response-iframe" class="w-full h-20 mt-4 border rounded-md"></iframe>
    </div>
    <script src="https://class.ccnl.cloud/1111462001/scripts.js"></script>
</body>
</html>