I'm currently using Bootstrap V5 and trying to center the login button in the div. I've attempted using mx-auto and text-center, but so far, none of them seem to be working. Can anyone point out where I might be going wrong?
<div class='container my-auto w-50' style={{backgroundColor: "#E8D2A6"}}>
<div class="text-center my-4" style={{fontSize: "2.5rem"}}>Login</div>
<div class="form-group row">
<label htmlFor='userid' class='col-3 col-form-label' style={{fontSize: "1.3rem"}}>Enter UserID:</label>
<div class="col-8">
<input type="text" id="userid" class='form-control' placeholder='Enter user ID'/>
</div>
</div>
<div class="form-group row my-3">
<label htmlFor='userid' class='col-3 col-form-label' style={{fontSize: "1.3rem"}}>Enter Password:</label>
<div class="col-8">
<input type="text" id="userid" class='form-control' placeholder='Enter Password'/>
</div>
</div>
<button type='button' class="mx-auto btn btn-danger btn-block text-center">Login</button>
</div>