/* Reference
https://codepen.io/banik/pen/dgQvWO
*/
#jd_login_1.on .wrap_input {
  opacity: 1;
  transition-delay: 0.2s;
}

#jd_login_1.on .wrap_input h2 {
  margin: 10px 0;
  text-align: center;
}

#jd_login_1.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.wrap_input {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  margin-left: -200px;
  margin-top: -200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  font-size: 20px;
  transition: all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
  transition-delay: 0s;
  text-align: center;
  color: #333;
}

.wrap_input input {
  width: 100%;
  padding: 15px;
  margin: 5px;
  border-radius: 1px;
  border: 1px solid #ccc;
  font-family: inherit;
}

button.jd_sub_1 {
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  border: none;
  color: black;
  background-color: white;
  transition: background 500ms;
}

button.jd_sub_1:hover {
  background-color: #3745b5;
  color: white;
}

@media screen and (min-width: 600px) {
  #jd_login_1.on .top:before, #jd_login_1.on .top:after, #jd_login_1.on .bottom:before, #jd_login_1.on .bottom:after {
    margin-left: 250px;
    transform-origin: -250px 50%;
    transition-delay: 0s;
  }
  #jd_login_1.on .wrap_input {
    opacity: 1;
    transition-delay: 0.2s;
  }
  #jd_login_1.on .wrap_input h2 {
    margin: 10px 0;
    text-align: center;
  }
  #jd_login_1.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  .top:before, .top:after, .bottom:before, .bottom:after {
    content: '';
    display: block;
    position: absolute;
    width: 200vw;
    height: 200vw;
    top: 50%;
    left: 50%;
    margin-top: -100%;
    transform-origin: 0 50%;
    transition: all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
    z-index: 10;
    opacity: 0.65;
    transition-delay: 0.2s;
  }
  .top:before {
    transform: rotate(45deg);
    background: #e46569;
  }
  .top:after {
    transform: rotate(135deg);
    background: #ecaf81;
  }
  .bottom:before {
    transform: rotate(-45deg);
    background: #60b8d4;
  }
  .bottom:after {
    transform: rotate(-135deg);
    background: #3745b5;
  }
  .wrap_input {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    margin-left: -200px;
    margin-top: -200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
    transition-delay: 0s;
    text-align: center;
    color: #333;
  }
  .wrap_input input {
    width: 100%;
    padding: 15px;
    margin: 5px;
    border-radius: 1px;
    border: 1px solid #ccc;
    font-family: inherit;
  }
  button.jd_sub_1 {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: none;
    color: black;
    background-color: white;
    transition: background 500ms;
  }
  button.jd_sub_1:hover {
    background-color: #3745b5;
    color: white;
  }
}
