/* 登录/注册/找回密码 页面专属样式 - 大屏+小屏+小小屏 三合一终极版 */
/* 以你原版【大屏+手机】为基础，融合【高度<690】小小屏逻辑 */

/* 页面切换 */
.page {
  display: none !important;
}
.page.page-active {
  display: block !important;
}

/* 全局 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 所有页面父容器：全屏 + 百分比高度结构 */
.page.login.page-active,
.page.register.page-active,
.page.change-password.page-active {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  position: relative;
}

/* ====================== Banner 18% ====================== */
.login-banner {
  width: 100%;
  height: 18%;
  background-color: #5e5eb7;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.login-banner img {
  width: 100%;
  height: 100%;
  max-width: 1920px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ====================== 内容区域 82% ====================== */
.login-wrapper,
.register-wrapper,
.change-wrapper {
  width: 100%;
  height: 82%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* ====================== 所有盒子：绝对居中（传统定位） ====================== */
.login-container,
.register-box,
.change-box {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* 登录盒子 */
.login-container {
  display: flex;
  width: 100%;
  max-width: 840px;
  height: 430px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 16px;
  overflow: hidden;
}

/* 注册 / 找回密码 盒子 */
.register-box,
.change-box {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* ====================== 表单样式 ====================== */
.login-input {
  border: 1px solid #ccc;
  height: 45px;
  line-height: 45px;
  font-size: 16px;
  padding-left: 5px;
  margin-bottom: 20px;
  width: 100%;
}
.login-reg-account {
  width: 100%;
}

.login-input-code {
  max-width: 180px;
}
.code-img {
  width: 116px;
  height: 45px;
  margin-bottom: 20px;
  object-fit: cover;
}
.form-checkcode {
  vertical-align: top;
  margin-bottom: 20px;
  width: 45%;
}

.login-msg,
.reg-msg,
.password-msg {
  padding-bottom: 10px;
  color: red;
}

.login-btn {
  border-radius: 5px;
  width: 100%;
  height: 48px;
  background: #5e5eb7;
  text-align: center;
  line-height: 48px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  border: none;
}

/* ====================== 登录页左右布局 ====================== */
.left-box {
  flex: 1;
  background: #5e5eb7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
  color: #fff;
}
.left-divider {
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}
.left-title,
.left-content {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
}
.login-box {
  flex: 1;
  background: #fff;
  padding: 35px;
}

.login-title {
  position: relative;
  margin-bottom: 26px;
  text-align: center;
  font-weight: bolder;
  font-size: 24px;
}
.login-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  margin-left: -60px;
  width: 120px;
  height: 4px;
  background: #5e5eb7;
}

.login-info{
    padding-top:8px;
}

.login-info-center {
  text-align: center;
}

/* ====================== 第一阶：常规手机小屏（≤768px） ====================== */
@media (max-width: 768px) {
  .login-banner {
    height: 18%;
    min-height: unset;
  }
  .login-banner img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    position: absolute;
    left: 0;
  }
  .login-container,
  .register-box,
  .change-box {
    flex-direction: column;
    max-width: 90%;
    height: auto;
    margin: 20px auto;
  }
  
  .register-box, .change-box {
    padding: 15px;
  }
  
  .left-box {
    padding: 15px;
  }
  
  .left-title, .left-content {
    font-size: 18px;
  }
  .login-box {
    padding: 15px;
  }
  .login-title {
    font-size: 20px;
  }
  .form-checkcode{
    min-width:97px;
   max-width: 150px;
  }
  .login-input-code {
    max-width: 170px;
  }
}

/* ====================== 第二阶：超小小屏（高度 < 690px）专属优化 ====================== */
/* 自动开启滚动 + 取消绝对定位 + 防止内容被截断遮挡 */
@media (max-width: 391px) {
  /* 小小屏核心：内容区域开启垂直滚动 */
  .login-wrapper,
  .register-wrapper,
  .change-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* 小小屏核心：盒子改为相对定位，不遮挡、可滚动 */
  .login-container,
  .register-box,
  .change-box {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin: 20px auto;
  }

  /* 登录盒子强制自适应高度 */
  .login-container {
    height: auto;
  }
      .login-box {
        padding: 10px;
    }
    .login-input-code {
        max-width: 170px;
    }

  .form-checkcode {
    vertical-align: top;
    margin-bottom: 20px;
    width: 150px;
    margin-left:0px;
}
.left-title{
	font-size:18px;
}
}