﻿@charset 'utf-8';

html,
body {
  width: 100%;
  height: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #ebebf5 url(./assets/bg.png) no-repeat bottom / contain;
}

body:after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  content: '';
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-filter: blur(3px);
  -moz-filter: blur(3px);
  -o-filter: blur(3px);
  -ms-filter: blur(3px);
  filter: blur(3px);
}

input::placeholder {
  color: #b3b3b3;
}

.layui-container {
  position: relative;
  width: 100%;
  height: 99vh;
  max-width: 888px;
  background: url(./assets/logo.png) center 45px / 423px 81px no-repeat;
}

.admin-login-background {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 720px;
  padding: 20px;
  background-color: #fff6;
  border-radius: 12px;
  box-shadow: 0px 3px 17px 0px rgba(16, 70, 131, 0.09);
  box-sizing: border-box;
}

.logo-title {
  grid-area: title;
  text-align: center;
  margin-bottom: 45px;
}

.logo-title h1 {
  font-size: 24px;
  font-family: MicrosoftYaHei;
  font-weight: bold;
  color: var(--theme-color);
}

.login-form {
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 0 100%);
}

.login-form>.layui-form {
  display: grid;
  grid-template-columns: 400px 1fr;
  grid-template-areas:
    'title title'
    'tradition wechat';
}

.login-form .layui-form-item {
  position: relative;
}

.login-form .layui-form-item label {
  position: absolute;
  left: 1px;
  top: 1px;
  width: 42px;
  line-height: 38px;
  text-align: center;
  color: #666;
  font-size: 20px;
  pointer-events: none;
}

.login-form .layui-form-item label:after {
  content: '';
  position: absolute;
  top: 10px;
  right: 0;
  width: 1px;
  height: 19px;
  background-color: #e5e5e5;
}

.login-form .layui-form-item input {
  height: 40px;
  padding-left: 20px;
  border-color: #e5e5e5;
}

.login-section {
  position: relative;
  padding-top: 10px;
}

.tradition-login {
  grid-area: tradition;
  width: 332px;
  margin: 0 auto;
}

.tradition-login::before,
.wechat-login::before {
  position: relative;
  display: block;
  top: -30px;
  width: 100%;
  text-align: center;
  font-size: 20px;
  color: #333;
}

.tradition-login::before {
  content: '密码登录';
}

.wechat-login {
  position: relative;
  grid-area: wechat;
}

.wechat-login::before {
  content: '微信扫码登录';
}

.qrcode-tip {
  display: none;
}

.layui-form-item>.layui-icon {
  display: none;
}

.line-captcha {
  display: flex;
}

.captcha {
  width: 62%;
}

.captcha-img {
  flex: 1;
  margin-left: 8px;
}

.captcha-img img {
  width: 100%;
  height: 38px;
  border: 1px solid #e5e5e5;
  box-sizing: border-box;
}

.line-remember {
  display: flex;
  line-height: 38px;
  text-indent: 22px;
  margin-bottom: 36px !important;
}

.remember-me {
  flex: 1;
}

.remember-me .layui-form-checkbox {
  margin: 0 !important;
}

.tongxingzheng {
  font-size: 46px;
}

.tongxingzheng a {
  color: var(--theme-color);
  font-size: 46px;
}

.button-submit {
  width: 6.3em;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  border-radius: 8px;
  background-color: var(--theme-color);
  box-shadow: 0 13px 8px -6px #d5e7fc;
  margin-left: -30px;
}

.button-submit[disabled],
.button-submit[disabled]:active,
.button-submit[disabled]:hover {
  border: 1px solid #eee;
  background-color: #f2f2f2 !important;
  color: #bbb !important;
  cursor: not-allowed !important;
  opacity: 1;
  box-shadow: none;
}

.copyright {
  font-size: 12px;
  color: #fff;
  text-align: center;
}

.copyright a {
  color: #009688
}

/* override */
.layui-form-checkbox[lay-skin=primary]:hover i {
  border-color: var(--theme-color);
}

.layui-form-checked[lay-skin=primary] i {
  border-color: var(--theme-color) !important;
  background-color: var(--theme-color);
}

.mode-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 66px;
  height: 66px;
  color: #2080f0;
  font-size: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  display: none;
}

.mode-toggle svg {
  display: inline-block;
  position: relative;
  top: 3px;
}

.mode-toggle:hover {
  color: #7909dc;
}

.mode-toggle::after {
  content: '';
  position: absolute;
  width: 93px;
  height: 93px;
  background-color: #fff;
  transform: translate(-33px, 33px) rotateZ(45deg);
  box-shadow: 0 0 20px 0 #9999;
  pointer-events: none;
}

.mode-icon {
  position: relative;
  left: 3px;
}

.mode-icon {
  display: none;
}

.mode-wechat .mode-icon-tradition,
.mode-wechat .wechat-login {
  display: block;
}

.mode-tradition .mode-icon-wechat,
.mode-tradition .tradition-login {
  display: block;
}

.wechat-iframe {
  border: 0;
  width: 100%;
  height: 360px;
}

.tradition-login .layui-form-item {
  margin-bottom: 9px;
}

.tradition-login .line-submit {
  margin-bottom: 9px;
  text-align: center;
}

.has-wechat-tip {
  color: #080;
  text-align: center;
  display: none;
}

.wechat-has-bind .has-wechat-tip {
  display: block;
}

.line-notice {
  font-size: 16px;
  color: #e20;
  text-indent: 22px;
}

/** 新样式：移动端 */
@media screen and (max-width: 930px) {
  .layui-container {
    left: 0;
    width: 100%;
    max-width: 910px;
  }

  .admin-login-background {
    width: 380px;
    height: 460px;
    padding: 22px 25px 0;
  }

  .mode-toggle {
    display: flex;
  }

  .login-form>.layui-form {
    display: block;
  }

  .logo-title {
    padding: 14px 0 10px;
    margin-bottom: 15px;
  }

  .logo-title h1 {
    font-size: 20px; 
  }

  .login-section {
    display: none;
  }

  .tradition-login {
    width: 100%;
    max-width: 350px;
  }

  .tradition-login::before, .wechat-login::before {
    display: none;
  }

  .layui-form-item>.layui-icon {
    display: block;
  }

  .login-form .layui-form-item input {
    padding-left: 54px;
  }
}

@media screen and (max-width: 430px) {
  .layui-container {
    background-size: 90%;
  }
}

@media screen and (max-width: 375px) {
  .admin-login-background {
    width: 96%;
    top: 136px;
  }

  .logo-title h1 {
    font-size: 18px;
  }
}

/** 新样式：修复高度 */
@media screen and (min-height: 750px) {
  body {
    overflow: auto !important;
  }

  .layui-container {
    min-height: 760px;
  }
}