@import url(main.css);
/* 初始化 */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  /* 引入字体 */
  font-family: "微软雅黑", sans-serif;
  /* 溢出隐藏 */
  overflow: hidden;
  background-color: var(--xf_color_1);
}
body .wave {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 100%;
  /* 让他当作一个背景 */
  z-index: -1;
}
body .container {
  width: 100vw;
  height: 100vh;
  /* 网格布局 */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 7rem;
  padding: 0 2rem;
}
body .img {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
body .login-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /* 文字居中 */
  text-align: center;
}
body .login-content p {
  font-size: 1em;
  color: var(--xf_color_6);
  margin: 1.2rem auto;
}
body #loadcode {
  color: var(--xf_color_1);
  background-color: var(--xf_color_17);
  padding: 0.5em 0;
  transition: background-color 0.35s;
}
body #loadcode:hover {
  background-color: var(--xf_color_23);
}
body .img img {
  width: 500px;
}
body form {
  width: 360px;
}
body .login-content img {
  height: 100px;
}
body .login-content h2 {
  margin: 15px 0;
  color: var(--xf_color_22);
  text-transform: uppercase;
  font-size: 2.9rem;
}
body .login-content .input-div {
  /* 相对定位 */
  position: relative;
  display: grid;
  grid-template-columns: 7% 93%;
  margin: 25px 0;
  padding: 5px 0;
  border-bottom: 2px solid var(--xf_color_7);
}
body .login-content .input-div.one {
  margin-top: 0;
}
body .i {
  color: var(--xf_color_6);
  /* 弹性布局 水平 垂直居中 */
  display: flex;
  justify-content: center;
  align-items: center;
}
body .i i {
  transition: 0.3s;
}
body .input-div > div {
  /* 相对定位 */
  position: relative;
  height: 45px;
}
body .input-div > div > h5 {
  /* 绝对定位 */
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--xf_color_6);
  font-size: 18px;
  transition: 0.3s;
}
body .input-div::before,
body .input-div::after {
  content: "";
  /* 绝对定位 */
  position: absolute;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: var(--xf_color_7);
  transition: 0.4s;
}
body .input-div::before {
  right: 50%;
}
body .input-div::after {
  left: 50%;
}
body .input-div.focus::before,
body .input-div.focus::after {
  width: 50%;
}
body .input-div.focus > div > h5 {
  top: -5px;
  font-size: 15px;
}
body .input-div.focus > .i > i {
  color: var(--xf_color_4);
}
body .input-div > div > input {
  /* 绝对定位 */
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  /* 点击输入框的边框也消失 */
  outline: none;
  padding: 0.5rem 0.7rem;
  background: none;
  font-size: 1.2rem;
  color: var(--xf_color_6);
  font-family: 'position', sans-serif;
}
body .input-div.pass {
  margin-bottom: 4px;
}
body a {
  display: block;
  text-align: right;
  /* 下划线消失 */
  text-decoration: none;
  font-size: 0.9rem;
}
body .btn-account {
  display: flex;
  justify-content: space-between;
  margin: 1.5em 0;
}
body .btn {
  display: block;
  width: 100%;
  height: 50px;
  line-height: 50px;
  border-radius: 25px;
  outline: none;
  border: none;
  background-image: var(--menu_linear_gradient_4);
  background-size: 200%;
  font-size: 1.2rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  margin: 1rem 0;
  /* 鼠标放上变小手 */
  cursor: pointer;
  transition: 0.5s;
}
body .btn:hover {
  background-position: right;
}
@media screen and (max-width: 1050px) {
  body .container {
    grid-gap: 5rem;
  }
}
@media screen and (max-width: 1000px) {
  body form {
    width: 290px;
  }
  body .login-content h2 {
    font-size: 2.4rem;
    margin: 8px 0;
  }
  body .img img {
    width: 400px;
  }
}
@media screen and (max-width: 900px) {
  body .container {
    grid-template-columns: 1fr;
  }
  body .img {
    display: none;
  }
  body .wave {
    display: none;
  }
  body .login-content {
    justify-content: center;
  }
}
body .form-group img {
  width: 1.5em;
  height: 1.5em;
}
