<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter">
Sign In
</button>
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header bg-primary text-white">
<h5 class="modal-title" id="exampleModalCenterTitle">Modal box like material design</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="">
<div class="form-group">
<input type="text" name="" id="" class="form-control" required="">
<label>User Name</label>
</div>
<div class="form-group">
<input type="password" name="" id="" class="form-control" required="">
<label>Password</label>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary">Submit</button>
</div>
</div>
</div>
</div>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Poppins:400&display=swap" rel="stylesheet">
<style>
body { font-family: 'Poppins', sans-serif; }
.form-group { position: relative;}
input.form-control { background-color: transparent; z-index: 99; position: relative; height: 45px; border-radius: 0px;}
input.form-control:focus { box-shadow: none; background-color: #fff; z-index: 999; }
.form-group label {position: absolute; top: 10px; transition: all .5s; left: 10px; z-index: 1; color: #b5b2b2;}
.form-group input:focus ~ label, .form-group input:valid ~ label { top: -10px; font-size: 14px; background: #fff; padding: 0px 5px; color: #5aa2f1; z-index: 9999;}
.close {
float: right;
font-size: 1.5rem;
font-weight: 700;
line-height: 1;
color: #fff;
text-shadow: 0 1px 0 #fff;
opacity: 1;
}
</style>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>