/*
 * Author: Minyoung
 * CreateAt: 2021年10月14日23:44:45
 * License: MIT
 */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: #333;
}

.container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}
.container::before {
  content: " ";
  position: absolute;
  width: 2000px;
  height: 2000px;
  border-radius: 50%;
  background-image: linear-gradient(-45deg, #6266f5 0%, #04befe 100%);
  transition: 1.8s ease-in-out;
  z-index: 6;
  top: -10%;
  right: 48%;
  transform: translateY(-50%);
}
.container.sign-up-mode::before {
  transform: translate(100%, -50%);
}

.form-warp {
  width: 50%;
  position: absolute;
  z-index: 5;
  left: 75%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 1fr;
  transition: 1s 0.7s ease-in-out; 
}
.form-warp form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  /* 将两个 form 布局在 grid 同一位置 */
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  /* Do not animate border/outline during the first paint. Animating `all`
     caused the card edge to briefly interpolate from the browser default. */
  outline: 0;
  border: 1px solid rgba(201, 220, 244, 0.9);
  background: #fff;
  box-shadow: 0 24px 64px rgba(35, 76, 128, 0.15);
  transition: opacity 0.2s 0.7s, transform 0.2s 0.7s;
  opacity: 1;
  z-index: 4;
}

.form-title {
  color: #474a8f;
}
.form-warp .sign-up-form {
  opacity: 0;
  z-index: 3;
}
.container.sign-up-mode .form-warp {
  left: 25%;
}
.container.sign-up-mode .sign-in-form {
  opacity: 0;
  z-index: 3;
}
.container.sign-up-mode .sign-up-form {
  opacity: 1;
  z-index: 4;
}
input{
  min-width: 300px;
  outline: none;
  padding: 12px 40px;
  line-height: 1;
  font-size: 16px;
  border-radius: 60px;
  color: #333;
  background-color: #6267f513;
  border: none;
}

.submit-btn {
  padding: 0px;
  width: 130px;
  height: 35px;
  outline: none;
  line-height: 1;
  font-size: 16px;
  border-radius: 60px;
  color: #333;
  background-color: #6267f513;
  border: none;
}
input::placeholder {
  color: #cccc;
}
/*登录提交按钮*/
.submit-btn{
  background-color: #6266f5;
  color: #FFF;
  text-align: center;
  min-width: 150px;
  font-size: initial;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
}

.desc-warp {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.desc-warp-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-around;
  text-align: center;
  text-align: center;
  padding: 3rem 17% 2rem 12%;
  z-index: 6;
}
/* 事件穿透 BEGIN */
.sign-in-desc {
  pointer-events: none;
}
.sign-up-mode .sign-in-desc {
  pointer-events: all;
}
.sign-up-mode .sign-up-desc {
  pointer-events: none;
}
/* 事件穿透 END */
.content {
  width: 100%;
  transition: transform 0.9s ease-in-out;
  transition-delay: .6s;
}
.sign-in-desc img,
.sign-in-desc .content {
  transform: translateX(800px);
}
.sign-up-mode .sign-in-desc img,
.sign-up-mode .sign-in-desc .content {
  transform: translateX(0);
}

.sign-up-mode .sign-up-desc img,
.sign-up-mode .sign-up-desc .content {
  transform: translateX(-800px);
}

.content button {
  outline: none;
  padding: 6px 8px;
  min-width: 100px;
  text-align: center;
  border-radius: 30px;
  background-color:  #474a8f;
  border: 2px solid #FFF;
  color: #FFF;
  cursor: pointer;
  transition: all .5s ease;
}
.content button:hover {
  background-color: #259aed;
}
img {
  width: 100%;
  display: block;
  transition: transform 0.9s ease-in-out;
  transition-delay: .5s;
}

/* 响应式 */
@media screen and (max-width: 870px) {
  .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;
  }
  .form-warp {
    width: 100%;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -100%);
    transition: 1s 0.8s ease-in-out;
  }
  .container.sign-up-mode .form-warp {
    top: 25%;
    left: 50%;
    transform: translate(-50%, 0);
  }
  img {
    width: 200px;
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.7s;
  }
  .desc-warp {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 1fr;
  }
  .desc-warp-item {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 2.5rem 8%;
    grid-column: 1 / 2;
  }
  .sign-in-desc {
    grid-row: 3 / 4;
  }

  .sign-in-desc img,
  .sign-in-desc .content {
    transform: translateY(800px);
  }

  .sign-up-mode .sign-in-desc img,
  .sign-up-mode .sign-in-desc .content {
    transform: translateY(0);
  }

  .sign-up-mode .sign-up-desc img,
  .sign-up-mode .sign-up-desc .content {
    transform: translateY(-800px);
  }
}

@media screen and (max-width: 570px) {
  .container::before {
    bottom: 72%;
    left: 50%;
  }
  img {
    display: none;
  }
}
/*输入框的小图标*/
.userInput,.passwordInput,.mailInput,.captcha-containerInput,.newpassword1Input,.newpassword2Input{
  position: relative;
  display: inline-block;
}

input[type="text,password,mail"] {
  padding-left: 40px; /* 为输入框添加左侧内边距，以便给图标留出空间 */
  height: 35px;
}
.icon {
  position: absolute;
  left: 10px; /* 调整图标距输入框左侧的距离 */
  top: 50%;
  transform: translateY(-50%); /* 使图标垂直居中 */
  
}
.userInput img,.passwordInput img,.mailInput img,.captcha-containerInput img,.newpassword1Input img,.newpassword2Input  img{
  width: 20px;
  height: 20px;
}

/* 验证码位置放置 */
 .captcha-containerInput {
  position: relative;
}
.captcha-containerInput input {
  width: 100%;
  padding-right: 120px; /* 给验证码留出空间 */
  padding-left: 40px;
  height: 40px;
  font-size: 16px;
}
.captcha-containerInput canvas {
  position: absolute;
  right: 10px; /* 将验证码放在输入框的右边 */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border:none;
}
#captchaInput1,#captchaInput2{
  width: 300px;
}
.submit-btn button {
  width: 100%;
  height: 100%;
  /* background: #6266f5; */
  background: #474a8f;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 1s ease; /* 设置颜色过渡效果的时间 */
} 
 /* 鼠标悬停时的颜色变化 */
.submit-btn button:hover{
  background-color: #259aed; /* 悬停时的目标颜色 */
}
.content p{
  color: #FFF;
  text-align: center;
  padding: 10px;
}
/* 忘记密码 */
.forgetPassword a{
  text-decoration: none;
  color: rgb(249, 151, 23);
  transition: color 0.8s ease; /* 添加过渡效果 */
}
.forgetPassword a:hover {
    color: #0CA9FF; /* 悬停时的颜色 */
}
.logo {
  position: fixed; /* 固定在页面的位置 */
  top: 30px; /* 距离页面顶部 10px */
  left: 30px; /* 距离页面左边 10px */
  width: 100px; /* 调整图片宽度 */
  height: 68; /* 保持图片的原始宽高比 */
  z-index: 9999; /* 设置较高的 z-index，确保图片在最前面 */
}

@media only screen and (max-width: 768px) {
  .logo {
      width: 40px; /* 在移动端调整 Logo 的大小 */
  }
}
