<div class="flex_space">
    <a href="/login" style="width: 50%;display: block" class="login_item_title ">Login</a>
    <div style="width: 50%" class="login_item_title login_active">Register</div>
</div>
<div class="main">
    <div class="login_form">
        <form class="layui-form layui-form-pane">

            <div class="form_container" >
                <div class="label">Phone Number</div>
                <div class="layui-form-item" >
                    <label class="layui-form-label flex_space">
                        <p ><i class="layui-icon layui-icon-cellphone"></i><span id="area_code_text"></span></p>
                    </label>
                    <div class="layui-input-block">
                        <!-- পরিবর্তন ১: name="username" কে name="phone" করা হয়েছে -->
                        <input type="text" name="phone" value="" lay-verify="required" placeholder="Please enter your phone number"  autocomplete="off" class="layui-input" lay-affix="clear">
                    </div>
                </div>
                <div class="label">Login Password</div>
                <div class="layui-form-item">
                    <div class="layui-input-wrap"  style="border: none;background: none;">
                        <input type="password" name="password" value="" lay-verify="required" placeholder="Login Password"  autocomplete="off" class="layui-input" lay-affix="eye" style="border: none;background: none;">
                    </div>
                </div>
                <div class="label">Nick name</div>
                <div class="layui-form-item">
                    <div class="layui-input-wrap"  >
                        <input type="text" name="nickname" value="" lay-verify="required" placeholder="Enter your nick name"  autocomplete="off" class="layui-input" style="border: none;background: none;">
                    </div>
                </div>
                
                <div class="label">Invitation Code</div>
                <div class="layui-form-item" >
                    <div class="layui-input-wrap"  >
                        <!-- পরিবর্তন ২: name="invitation_code" কে name="ref_by" করা হয়েছে -->
                        <input type="text" name="ref_by" id="invitation_code" value="" lay-verify="required" placeholder="Please enter invitation code"  autocomplete="off" class="layui-input" lay-affix="clear" style="border: none;background: none;">
                    </div>
                </div>
            
                <div class="label">Verification code (OTP)</div>

                <div class="layui-form-item">
                    <div class="flex_space" style="background: none">

                        <div class="layui-input-wrap border_noe">
                            <div class="layui-input-prefix" style="line-height: 44px;">
                                <i class="layui-icon layui-icon-vercode layui-font-22"></i>
                            </div>
                            <input type="number" name="code" id="code"  lay-verify="required" placeholder="Verification code" autocomplete="off" class="layui-input border_noe" style="border-radius:8px;">
                        </div>
                        <div  style="width:80px;background: #ffffff;border: 1px solid #F6F6F6">
                            <div>
                                <div  class="layui-btn layui-btn-fluid layui-btn-primary" style="color: #4568E8 ;border: none;height:42px;line-height: 42px;" id="getCode">Send</div>
                            </div>
                        </div>
                    </div>
                </div>

                <div  style="margin-top: 30px;">
                    <!-- সাবমিট ফিল্টার 'register' রাখা হয়েছে -->
                    <button class="layui-btn  layui-btn-lg layui-btn-fluid layui-btn-radius login_btn"  lay-submit lay-filter="register">Register Now</button>
                    <a href="/login" class="register_link" >Already have an account? ? <span style="color: #ffffff;font-weight: 700">Go to login</span></a>
                </div>

            </div>
        </form>
    </div>
</div>