/* =========================================================
   login/index.html 专用样式
   - 不改动 login.css,避免影响 reg.html / password.html
   - 视觉源自 186临科 登录页设计稿(渐变蓝背景 + 白色圆角卡片)
   - 保留 layui-form 提交链路与 login.js 依赖的类名:
     .icon-nocheck / .icon-check(保持登录复选框)
     .bind-password / .icon-4 / .icon-5(密码显隐切换)
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

/* ---------- 页面整体容器 ---------- */
.login-page {
  width: 100%;
  min-height: 100vh;
  background: url(../images/login-new/Bg.png) center no-repeat;
  background-size: cover;
  padding: 7% 0 50px;
  position: relative;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* ---------- 顶部 Logo 区 ---------- */
.login-page .logo {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-page .logo img {
  width: 236px;
  height: auto;
  margin-bottom: 25px;
}

.login-page .logo h1 {
  font-size: 40px;
  font-weight: bold;
  line-height: 35px;
  letter-spacing: 3px;
  color: #0047e9;
  text-shadow: 2px 2px 2px #ffffff;
  padding-left: 10px;
  font-family: cursive;
}

/* ---------- 登录卡片 ---------- */
.login-page .Content {
  width: 484px;
  height: auto;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 4px 1px 16px 0 rgba(0, 65, 255, 0.26);
  border-radius: 20px;
  margin: 28px auto 0;
  padding: 30px 41px 33px;
}

.login-page .Content h2 {
  font-size: 18px;
  line-height: 18px;
  font-weight: normal;
  color: #12337d;
  text-align: center;
  margin-bottom: 21px;
}

/* ---------- 输入区 ---------- */
.login-page .Inputs {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.login-page .Inputs .input {
  width: 64%;
  height: 53px;
  background-color: #ebf4ff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  margin-bottom: 18px;
  position: relative;
}

.login-page .Inputs .input img {
  width: 27px;
  margin-right: 13px;
}

.login-page .Inputs .input span.divider {
  width: 2px;
  height: 29px;
  background-color: #dcecff;
}

.login-page .Inputs .input input {
  flex: 1;
  height: 100%;
  min-width: 0;
  padding-left: 15px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  line-height: 24px;
  color: #333;
}

.login-page .Inputs .input input::placeholder {
  color: #7690cc;
}

/* ---------- 角色 select(lay-ignore 让 layui 跳过接管,使用原生 select) ---------- */
.login-page .Inputs .select {
  position: relative;
  width: 34%;
  height: 53px;
  background-color: #ebf4ff;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}

.login-page .Inputs .select select {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  line-height: 16px;
  color: #083d8f;
  /* 移除浏览器原生外观,避免与父容器圆角/背景冲突 */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* 给 select 容器加一个自定义下拉箭头 */
.login-page .Inputs .select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #083d8f;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-page .Inputs .input:last-child {
  width: 100%;
}

/* ---------- 密码显隐按钮(login.js 依赖: .bind-password / .icon-4 / .icon-5) ---------- */
.login-page .Inputs .input .bind-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 16px;
  cursor: pointer;
  background: url(../images/icon-login.png) no-repeat 0 -43px;
}

.login-page .Inputs .input .bind-password.icon-5 {
  background: url(../images/icon-login.png) no-repeat -55px -43px;
}

/* ---------- 保持登录复选框(login.js 依赖: .icon-nocheck / .icon-check) ---------- */
.login-page .keep-login {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.login-page .keep-login .icon-nocheck {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #9abcda;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
  top: 0;
}

.login-page .keep-login .icon-nocheck.icon-check {
  border: none;
  width: 16px;
  height: 16px;
  background: url(../images/icon-login.png) no-repeat -111px -48px;
}

.login-page .keep-login .login-tip {
  font-size: 14px;
  color: #7690cc;
  cursor: pointer;
}

/* ---------- 管理员登录入口(保持登录同行右侧,点击切换登录身份) ---------- */
.login-page .keep-login .admin-login-btn {
  margin-left: auto;
  font-size: 14px;
  color: #7690cc;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.login-page .keep-login .admin-login-btn:hover,
.login-page .keep-login .admin-login-btn.active {
  color: #006bff;
}

/* ---------- 验证码(若开启) ---------- */
.login-page .Inputs .captcha-item {
  width: 100%;
  height: 53px;
  background-color: #ebf4ff;
  border-radius: 6px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.login-page .Inputs .captcha-item input {
  flex: 1;
  height: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  padding: 0 10px;
}

.login-page .Inputs .captcha-item input::placeholder {
  color: #7690cc;
}

.login-page .Inputs .captcha-item .validateImg {
  height: 36px;
  cursor: pointer;
  border: 1px solid #dcecff;
  border-radius: 4px;
}

/* ---------- 登录按钮 ---------- */
.login-page .Content .login-btn {
  width: 100%;
  height: 53px;
  background-image: linear-gradient(0deg, #006bff 0%, #75b4ff 100%);
  border-radius: 6px;
  margin-top: 12px;
  border: none;
  outline: none;
  font-size: 17px;
  letter-spacing: 1px;
  color: #ffffff;
  text-align: center;
  line-height: 53px;
  cursor: pointer;
  display: block;
}

/* ---------- demo 提示 ---------- */
.login-page .demo {
  width: 100%;
  padding: 0 0 14px;
  text-align: center;
  color: #cd1210 !important;
  font-size: 13px;
}

/* ---------- 底部版权 ---------- */
.login-page .Bottom {
  position: absolute;
  left: 50%;
  bottom: 19px;
  transform: translate(-50%, 0);
}

.login-page .Bottom p {
  font-size: 14px;
  line-height: 20px;
  color: #142131;
  text-align: center;
}

.Content .verification {
  width: 100%;
  height: 53px;
  background-color: #ebf4ff;
  border-radius: 6px;
  margin-bottom: 14px;
}
.Content .verification a {
  width: 100%;
  height: 100%;
  display: block;
  font-size: 14px;
  line-height: 53px;
  color: #7690cc;
  text-align: center;
}
.Content .verification:hover {
  background: #7ba9ee;
}
.Content .verification:hover a {
  color: #ffffff;
}

/* ---------- 移动端适配 ---------- */
@media screen and (max-width: 768px) {
  .login-page {
    padding: 7vh 0 13.33333333vw;
  }

  .login-page .logo img {
    width: 75%;
    height: auto;
    margin-bottom: 3.2vw;
  }

  .login-page .logo h1 {
    font-size: 6.4vw;
    line-height: 6.4vw;
    letter-spacing: 0.53333333vw;
    text-shadow: 0.53333333vw 0.53333333vw 0.53333333vw #ffffff;
    padding-left: 2.66666667vw;
  }

  .login-page .Content {
    width: 95%;
    margin: 3.5vh auto 0;
    padding: 8vw 3.2vw 8.8vw;
    border-radius: 3.2vw;
  }

  .login-page .Content h2 {
    font-size: 4.8vw;
    line-height: 4.8vw;
  }

  .login-page .Inputs {
    margin-top: 5.6vw;
  }

  .login-page .Inputs .input,
  .login-page .Inputs .select,
  .login-page .Inputs .captcha-item {
    width: 100%;
    height: 13.33333333vw;
    border-radius: 1.6vw;
    margin-bottom: 3.2vw;
    padding-left: 5.33333333vw;
  }

  .login-page .Inputs .input img {
    width: 7.2vw;
    margin-right: 3.46666667vw;
  }

  .login-page .Inputs .input span.divider {
    width: 0.53333333vw;
    height: 7.73333333vw;
  }

  .login-page .Inputs .input input {
    padding-left: 4vw;
    font-size: 3.73333333vw;
    line-height: 6.4vw;
  }

  .login-page .Inputs .select select {
    padding-left: 3.73333333vw;
    font-size: 4.26666667vw;
    line-height: 4.26666667vw;
  }

  .login-page .keep-login .login-tip {
    font-size: 3.73333333vw;
  }

  .login-page .Content .login-btn {
    height: 13.33333333vw;
    border-radius: 1.6vw;
    margin-top: 3.2vw;
    font-size: 4.53333333vw;
    line-height: 13.33333333vw;
  }

  .login-page .Bottom {
    bottom: 5.06666667vw;
  }

  .login-page .Bottom p {
    font-size: 3.73333333vw;
    line-height: 5.33333333vw;
  }

  .box .Content .verification {
    width: 100%;
    height: 13.33333333vw;
    background-color: #ebf4ff;
    border-radius: 1.6vw;
    margin-bottom: 3.73333333vw;
  }
  .box .Content .verification a {
    width: 100%;
    height: 100%;
    display: block;
    font-size: 3.73333333vw;
    line-height: 14.13333333vw;
    color: #7690cc;
    text-align: center;
  }
  .box .Content .verification:hover {
    background: #7ba9ee;
  }
  .box .Content .verification:hover a {
    color: #ffffff;
  }
}
