Awesome Modal Template

by Kirubel Girma

HTML

<script src="https://use.fontawesome.com/7132176dc0.js"></script>
<input type="button" class="btn" id="btn1" onclick="hidemodal()">
<input type="button" class="btn" id="btn1" onclick="showmodal()">

<div id="mdl1" class="mdlfiller">
  <i class="closx fa fa-times" aria-hidden="true" onclick="hidemodal()"></i>
  <div class="cxmdl">

    <div class="lgo">
      <img class="lgoim" src="https://image.ibb.co/dWS4rR/kirusoft_withcolor.png" alt="">
    </div>
    <form action="">
      <div class="inpxcont">
        <input type="text" placeholder="Username" class="inpt_txtbx">
      </div>
      <div class="inpxcont">
        <input type="text" placeholder="Password" class="inpt_txtbx">
      </div>
      <div class="btncnt">
        <input class="subbtn" type="submit" Value="Continue">
      </div>
    </form>
    <div class="sgntxt">Login using your credentials to review your project updates or simply register using the following social media networks.</div>
    <div class="socim">
      <div class="socmd">
        <div class="socnt soc_fb">
          <i class="fa fa-facebook socentz" aria-hidden="true"></i>
        </div>
        <div class="socnt soc_go">
          <i class="fa fa-google socentz" aria-hidden="true"></i>
        </div>
        <div class="socnt soc_tw">
          <i class="fa fa-twitter socentz" aria-hidden="true"></i>
        </div>
        <div class="socnt soc_ln">
          <i class="fa fa-linkedin socentz" aria-hidden="true"></i>
        </div>
      </div>
    </div>
    <div class="lglst">Kirusoft Dev. LLC All rights reserved under U.S. Copyright law</div>
  </div>
</div>

<script>
  function hidemodal() {
    document.getElementById('mdl1').className += ' hide';
  };

  function showmodal() {
    document.getElementById('mdl1').classList.remove("hide");
  };

</script>

CSS

body {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
  margin: 0em;
}

.mdlfiller {
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 1);
}

.cxmdl {
  position: absolute;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 23em;
  max-height: 30em;
  border-radius: .5em .5em .5em .5em;
}

.hide {
  animation: hidemodal .145s ease;
  animation-fill-mode: forwards;
  display: none;
}

@keyframes hidemodal {
  0% {
    opacity: 1
  }
  100% {
    opacity: 0;
  }
}

.lgoim {
  margin: 2em auto;
  height: 1.7em;
  display: flex;
}

.closx {
  float: right;
  color: grey;
  font-size: 2.2em;
  margin: 1em 1em 0em 0em;
}

.closx:active {
  opacity: 0.6;
}

.sgntxt {
  color: #728389;
  text-align: center;
  font-family: arial;
  border-top: .1em solid rgba(114, 131, 137, 0.08);
  padding: 1em;
  margin: 1.2em 1em 1em 1em;
  opacity: .86;
}

.lglst {
  font-family: arial;
  font-size: 0.6em;
  text-align: center;
  opacity: 0.26;
}

.inpt_txtbx {
  min-width: 15em;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #7d7d7d;
  background-color: rgba(255, 255, 255, 0.19);
  background-image: none;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.25rem;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  display: table;
  margin: 1em auto;
}

.inpxcont input::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.2);
}

.inpxcont input::-moz-placeholder {
  color: rgba(0, 0, 0, 0.2);
}

button,
input[type="submit"],
input[type="reset"] {
  border: none;
  cursor: pointer;
  outline: inherit !important;
}

.btncnt {
  display: flex;
}

.subbtn {
  padding: 0.8em;
  background: rgb(0, 201, 255);
  border-radius: 0.3em;
  font-family: arial;
  color: white;
  font-size: 0.9em;
  margin: 0 auto;
  min-width: 15em;
}

.socim {
  display: flex;
  align-self: center;
}

.soc_fb {
  background-color: #3b5998;
}

.soc_go...