* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
/*身体*/
body {
  display: flex;
  justify-content: center;
  align-items: centerx;
  min-height: 100vh;
  background-color: #03a9f4;
  transition: 0.5s;
}
body.active {
  background-color: #f43648;
}
.container {
  position: relative;
  width: 800px;
  height: 500px;
  margin: 20px;
  top: 90px;
}
.bluebg {
  position: relative;
  height: 430px;
  width: 100%;
  top: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 45px rgba(0, 0, 0, 0.2);
}
.box {
  position: relative;
  height: 100%;
  width: 50%;
  display: -webkit-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.box h2 {
  color: #fff;
  font-size: 1.2em;
  font-weight: 500px;
  margin-bottom: 10px;
}
.box button {
  cursor: pointer;
  padding: 10px 15px;

  background-color: #fff;
  color: #444;
  font-size: 20px;
  font-weight: 500;
  border: none;
}
.formbx {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 45px rgba(0, 0, 0, 0.25);
  transition: 0.5s ease-in-out;
  overflow: hidden;
}
.formbx.active {
  left: 50%;
}
.formbx .form {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 50px;
  transition: 0.5s;
}
.formbx .siginform {
  transition-delay: 0.25s;
}
.formbx.active .siginform {
  left: -100%;
  transition-delay: 0s;
}
.formbx .sigupform {
  left: 100%;
}
.formbx.active .sigupform {
  left: 0;
  transition-delay: 0.25s;
}
.formbx .form form {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.formbx .form form h3 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}
.formbx .form form input {
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
  outline: none;
  font-size: 16px;
  border: 1px solid #333;
}
.formbx .form form input[type="submit"] {
  background-color: #03a9f4;
  border: none;
  color: #fff;
  max-width: 100px;
  cursor: pointer;
}
.formbx.active .sigupform input[type="submit"] {
  background: #f43648;
}
.formbx .form form .forgot {
  color: #333;
}
@media (max-width: 991px) {
  .container {
    max-width: 400px;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .container .bluebg {
    top: 0;
    height: 500px;
  }
  .formbx {
    width: 100%;
    height: 500px;
    top: 0;
    box-shadow: none;
  }
}
