* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HarmonyOS */

@font-face {
  font-family: 'HarmonyOS_Sans_SC_Medium';
  src: url('../font/HarmonyOS_Sans_SC_Medium.ttf') format('ttf'),
    url('../font/HarmonyOS_Sans_SC_Medium.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'HarmonyOS_Sans_SC_Regular';
  src: url('../font/HarmonyOS_Sans_SC_Regular.ttf') format('ttf'),
    url('../font/HarmonyOS_Sans_SC_Regular.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}

body,
input {
  font-family: 'HarmonyOS_Sans_SC_Regular';
}
a {
  text-decoration: none;
  color: #4abcc3;
}
.container {
  position: relative;
  width: 100%;
  background: url(../picture/bg.png) no-repeat;
  background-size: 150% auto;
  /*background-attachment:fixed;*/
  background-position: right;
  min-height: 100vh;
  overflow: hidden;
}

.forms-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.signin-signup {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 25%;
  width: 50%;
  transition: 1s 0.7s ease-in-out;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 5;
}

form {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 0rem 5rem;
  transition: all 0.2s 0.7s;
  overflow: hidden;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

form.sign-up-form {
  opacity: 1;
  z-index: 1;
}

form.sign-in-form {
  z-index: 2;
}

.title {
  margin-bottom: 10px;
  font-size: 2.2rem;
  color: #4abcc3;
  max-width: 380px;
  width: 100%;
  margin: 14px 0;
  height: 55px;
  display: grid;
  grid-template-columns: 15% 85%;
  padding: 0 0.4rem;
  position: relative;
}

.input-field {
  max-width: 380px;
  width: 100%;
  background-color: #fff;
  border: 1px solid #4abcc3;
  margin: 14px 0;
  height: 55px;
  border-radius: 55px;
  display: grid;
  grid-template-columns: 15% 85%;
  padding: 0 0.4rem;
  position: relative;
}

.input-field i {
  text-align: center;
  line-height: 55px;
  color: #4abdc4;
  transition: 0.5s;
  font-size: 1.1rem;
}

.input-field input {
  background: 0;
  outline: 0;
  border: 0;
  line-height: 1;
  font-weight: normal;
  font-size: 1.1rem;
  color: #999;
}

.input-field input::placeholder {
  color: #aaa;
  font-weight: 500;
}
.input-field .form-select {
  width: 97%;
  height: 97%;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
}
.input-field .form-select option:first-child {
  color: #999;
}
.cd-form {
  max-width: 380px;
  width: 100%;
  height: 36px;
  padding: 0 0.4rem;
  position: relative;
  display: flex;
  justify-content: space-between;
}

.cd-form .fieldset {
  width: auto;
  height: 36px;
  position: relative;
  margin: 0;
  float: left;
  display: flex;
  align-items: center;
}
.cd-form .fieldset a {
  text-decoration: underline;
}
.cd-form .fieldset label {
  color: #4abdc4;
}

.cd-form input {
  margin: 0;
  padding: 0;
  background-color: #eceef0;
  border-radius: 0.25em;
}

.social-text {
  padding: 0.7rem 0;
  font-size: 1rem;
  color: #777;
}
.social-text a {
  text-decoration: underline;
}
.social-media {
  display: flex;
  justify-content: center;
}

.social-icon {
  height: 46px;
  width: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0.45rem;
  color: #333;
  border-radius: 50%;
  border: 1px solid #333;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s;
}

.social-icon:hover {
  color: #4481eb;
  border-color: #4481eb;
}

.btn {
  max-width: 380px;
  font-size: larger;
  width: 100%;
  background-color: #4abcc3;
  border: 0;
  outline: 0;
  height: 49px;
  border-radius: 49px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  margin: 10px 0;
  cursor: pointer;
  transition: 0.5s;
}

.btn:hover {
  background-color: #13adb6;
}

.panels-container {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.container:before {
  content: '';
  position: absolute;
  height: 2000px;
  width: 2000px;
  top: 50%;
  right: -50%;
  transform: translateY(-50%);
  /*background-image: linear-gradient(-45deg,#f1ffff 0,#d2ebfe 100%);*/
  transition: 1.8s ease-in-out;
  border-radius: 50%;
  z-index: -1;
}

.image {
  width: 100%;
  transition: transform 1.1s ease-in-out;
  transition-delay: 0.4s;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-around;
  text-align: center;
  z-index: 6;
}

.left-panel {
  pointer-events: all;
  padding: 3rem 22% 2rem 12%;
}

.right-panel {
  pointer-events: none;
  padding: 3rem 12% 2rem 17%;
}

.panel .content {
  margin-left: 80px;
  color: #fff;
  transition: transform 0.9s ease-in-out;
  transition-delay: 0.6s;
}
.panel .content img {
  width: 120%;
  margin-left: 20px;
  z-index: -1;
}
.panel h3 {
  font-weight: 600;
  line-height: 1;
  font-size: 1.5rem;
}

.panel p {
  font-size: 0.95rem;
  padding: 0.7rem 0;
}

.btn.transparent {
  margin: 0;
  background: 0;
  border: 2px solid #fff;
  width: 130px;
  height: 41px;
  font-weight: 600;
  font-size: 0.8rem;
}

.right-panel .image,
.right-panel .content {
  transform: translateX(800px);
}

.container.sign-up-mode:before {
  transform: translate(100%, -50%);
  right: 60%;
}

.container.sign-up-mode .left-panel .image,
.container.sign-up-mode .left-panel .content {
  transform: translateX(-800px);
}

.container.sign-up-mode .signin-signup {
  left: 25%;
}

.container.sign-up-mode form.sign-up-form {
  opacity: 1;
  z-index: 2;
}

.container.sign-up-mode form.sign-in-form {
  opacity: 0;
  z-index: 1;
}

.container.sign-up-mode .right-panel .image,
.container.sign-up-mode .right-panel .content {
  transform: translateX(0%);
}

.container.sign-up-mode .left-panel {
  pointer-events: none;
}

.container.sign-up-mode .right-panel {
  pointer-events: all;
}

/* 遮罩层样式 */
.modal-overlay {
  /* display: none; 默认不显示   */
  position: fixed; /* 固定定位 */
  z-index: 10; /* 置于顶层 */
  left: 0;
  top: 0;
  width: 100%; /* 宽度100% */
  height: 100%; /* 高度100% */
  overflow: auto; /* 超出内容可滚动 */
  background-color: rgba(0, 0, 0, 0.8); /* 黑色背景，透明度0.4 */
}

/* 对话框样式 */
.modal-dialog {
  margin: 10% auto; /* 上下外边距10%，水平居中 */
  /*padding: 20px;*/
  /*border: 1px solid #888;*/
  width: 30%; /* 宽度80% */
  background-color: #fefefe; /* 背景色 */
}

/* 对话框内容样式 */
.modal-content {
  background: white;
  margin: auto;
  padding: 20px;
  border: 0px solid #888;
  width: 100%; /* 宽度80% */
}

/* 关闭按钮样式 */
.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  /*position: absolute;
  margin-left: 500px; */
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 显示遮罩层时 */
#myModal.show {
  display: block; /* 显示遮罩层 */
}
#mask_shadow {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center; /* 与子元素的Flexbox布局结合使用 */
  justify-content: center; /* 同上 */
}
.overlay {
  display: none;
  position: absolute;
  z-index: 8;
  top: 150px;
  width: 600px;
  margin: auto;
  height: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  background-color: #fff;
  border-radius: 30px;
  padding: 10px;
}
/* 对话框样式 */
.overlay .titles {
  position: relative;
  width: 100%;
  height: 38px;
}
.overlay .titles .close_button {
  position: absolute;
  right: 0px;
  width: 30px;
  height: 30px;
  color: #000;
  cursor: pointer;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  background-color: unset;
  border-radius: 0;
  border: 0;
}
.overlay .titles .close_button:hover {
  opacity: 0.8;
}
.overlay .cont {
  width: 100%; /*height:80px;*/
  padding: 5px;
  text-align: left;
  font-size: 20px;
}
#btn1 {
  margin: 30px;
}
.overlay .btns {
  max-width: 100px;
  font-size: larger;
  width: 100%;
  background-color: #4abcc3;
  border: 0;
  height: 38px;
  border-radius: 49px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s;
  float: right;
  margin-right: 20px;
}

@media (max-width: 870px) {
  .container {
    min-height: 800px;
    height: 100vh;
  }

  .signin-signup {
    width: 100%;
    top: 95%;
    transform: translate(-50%, -100%);
    transition: 1s 0.8s ease-in-out;
  }

  .signin-signup,
  .container.sign-up-mode .signin-signup {
    left: 50%;
  }

  .panels-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 1fr;
  }

  .panel {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 2.5rem 8%;
    grid-column: 1 / 2;
  }

  .right-panel {
    grid-row: 3 / 4;
  }

  .left-panel {
    grid-row: 1 / 2;
  }

  .image {
    width: 200px;
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.6s;
  }

  .panel .content {
    padding-right: 15%;
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.8s;
  }

  .panel h3 {
    font-size: 1.2rem;
  }

  .panel p {
    font-size: 0.7rem;
    padding: 0.5rem 0;
  }

  .btn.transparent {
    width: 110px;
    height: 35px;
    font-size: 0.7rem;
  }

  .container:before {
    width: 1500px;
    height: 1500px;
    transform: translateX(-50%);
    left: 30%;
    bottom: 68%;
    right: initial;
    top: initial;
    transition: 2s ease-in-out;
  }

  .container.sign-up-mode:before {
    transform: translate(-50%, 100%);
    bottom: 32%;
    right: initial;
  }

  .container.sign-up-mode .left-panel .image,
  .container.sign-up-mode .left-panel .content {
    transform: translateY(-300px);
  }

  .container.sign-up-mode .right-panel .image,
  .container.sign-up-mode .right-panel .content {
    transform: translateY(0px);
  }

  .right-panel .image,
  .right-panel .content {
    transform: translateY(300px);
  }

  .container.sign-up-mode .signin-signup {
    top: 5%;
    transform: translate(-50%, 0);
  }
  #popup {
    width: 365px;
    left: 22px;
  }
  #popup .cont {
    padding-top: 5px;
  }
}

@media (max-width: 570px) {
  form {
    padding: 0 1.5rem;
  }
  .modal-dialog {
    width: 100%;
  }
  .close-button {
    margin-left: 440px;
  }
  .image {
    display: none;
  }

  .panel .content {
    margin: 0px;
    padding: 0rem 0rem;
  }
  .panel .content img {
    display: none;
    width: 100%;
    margin-left: 0px;
    z-index: -1;
  }
  .container {
    padding: 1.5rem;
    background: none;
  }

  .container:before {
    bottom: 72%;
    left: 50%;
  }

  .container.sign-up-mode:before {
    bottom: 15%;
    left: 50%;
  }
}
