 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

        :root {
            --primary-color: #667eea;
            --secondary-color: #764ba2;
            --text-color: #333;
            --bg-gradient-start: #667eea;
            --bg-gradient-end: #764ba2;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #2c3e50;
            color: white;
            padding: 12px 24px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-sizing: border-box;
        }

        .navbar .navbar-brand {
            font-size: 20px;
            font-weight: 600;
        }

        .user-info a {
            color: #fff;
            text-decoration: none;
            background-color: #e67e22;
            padding: 6px 14px;
            border-radius: 5px;
            font-size: 13px;
            font-weight: 500;
            transition: background 0.2s;
        }

        .user-info a:hover {
            background-color: #cf6d17;
        }

        /* Framing Registrasi */
        .register-frame {
            background: #ffffff;
            padding: 28px 32px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            max-width: 650px;
            width: 90%;
            margin-top: 60px; /* Spasi agar tidak tertutup navbar */
            box-sizing: border-box;
        }

        /* Header Frame */
        .header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 12px;
        }

        .logo img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-color);
        }

        .header h2 {
            font-size: 20px;
            color: #333;
            margin: 0 0 0 15px;
            font-weight: 600;
        }

        /* Form Layout 2 Kolom */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px 18px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group.full-width {
            grid-column: span 2;
        }

        label {
            font-size: 12px;
            color: #555;
            margin-bottom: 4px;
            font-weight: 500;
        }

        input[type="text"], input[type="password"], select {
            width: 100%;
            padding: 9px 12px;
            border: 1.5px solid #ddd;
            border-radius: 6px;
            font-size: 13px;
            box-sizing: border-box;
            transition: all 0.25s ease;
        }

        input[type="text"]:focus, input[type="password"]:focus, select:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 4px rgba(102, 126, 234, 0.4);
        }

        input[type="file"] {
            border: 1px dashed #ccc;
            padding: 6px 10px;
            width: 100%;
            background-color: #fafafa;
            border-radius: 6px;
            font-size: 12px;
            box-sizing: border-box;
        }

        /* Button Styling */
        .btn-submit {
            width: 100%;
            padding: 11px;
            background: var(--primary-color);
            border: none;
            border-radius: 6px;
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.25s ease, transform 0.15s ease;
            margin-top: 6px;
        }

        .btn-submit:hover {
            background: #5a67d8;
            transform: translateY(-1px);
        }

        /* Message Styling */
        .message {
            text-align: center;
            padding: 10px 14px;
            margin-top: 14px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
        }
        .error {
            background-color: #fde8e8;
            color: #e53e3e;
            border: 1px solid #feb2b2;
        }
        .success {
            background-color: #e6fffa;
            color: #234e52;
            border: 1px solid #b2f5ea;
        }

        /* Responsif untuk Layar HP */
        @media (max-width: 600px) {
            .form-grid {
                grid-template-columns: 1fr;
            }
            .form-group.full-width {
                grid-column: span 1;
            }
            .register-frame {
                padding: 20px;
                margin-top: 70px;
            }
        }