/* 全局样式重置（提升样式优先级，避免被layui覆盖） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden; /* 避免滚动条干扰背景显示 */
}

/* 现代化背景（修复：确保全屏显示，添加兜底渐变，解决背景失效） */
body {
  /* 优先级提升：!important 避免被layui覆盖，同时提供双兜底方案 */
  background: linear-gradient(135deg, #2c3e50 0%, #000000 100%) !important;
  /* 背景图：修正为规范静态资源路径，添加no-repeat/cover确保显示效果，图片加载失败不影响渐变兜底 */
  background: url(/static/images/loginbg.png) 0% 0% / cover no-repeat, linear-gradient(135deg, #2c3e50 0%, #000000 100%) !important;
  position: relative;
  font-size: 14px;
  /* 确保登录框居中，解决原布局错位 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 登录主体容器（修复：去除冗余样式，确保居中稳定） */
.main-body {
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 登录卡片（强化样式：阴影更明显，圆角更柔和，解决视觉单薄问题） */
.login-main {
  width: 428px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  /* 优先级提升，避免被其他样式覆盖 */
  z-index: 10;
}

/* 登录顶部标题栏（修复：背景不失效，文字居中更稳定） */
.login-main .login-top {
  height: 120px;
  /* 渐变背景：提升饱和度，确保视觉明显，无图片也有好效果 */
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%) !important;
  border-radius: 16px 16px 0 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #ffffff;
  line-height: 120px;
  text-align: center;
  position: relative;
}

.login-main .login-top .bg1 {
  display: inline-block;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0 80px 0 0;
  position: absolute;
  left: 0;
  bottom: 0;
}

.login-main .login-top .bg2 {
  display: inline-block;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  position: absolute;
  right: -20px;
  top: -20px;
}

/* 登录底部表单区域（修复：内边距合理，避免编辑框被遮挡） */
.login-main .login-bottom {
  width: 100%;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  padding: 40px 30px 50px;
}

.login-main .login-bottom .center {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
}

/* 输入项容器（核心修复：编辑框布局，提升样式优先级，解决无效果问题） */
.login-main .login-bottom .center .item {
  width: 100%;
  height: 55px;
  /* 底部边框：加粗，颜色更明显，解决编辑框无视觉反馈 */
  border-bottom: 2px solid #e6f7ff;
  margin-bottom: 35px;
  /* 弹性布局：确保图标和输入框对齐，解决错位问题 */
  display: flex;
  align-items: center;
  /* 过渡效果：提升交互感，解决无效果感知 */
  transition: all 0.3s ease-in-out;
  /* 优先级提升，避免被layui表单样式覆盖 */
  position: relative;
  z-index: 1;
}

/* 输入项聚焦态（强化：边框变色明显，解决编辑框无激活反馈） */
.login-main .login-bottom .center .item:focus-within {
  border-bottom-color: #1890ff;
  box-shadow: 0 2px 10px rgba(24, 144, 255, 0.1);
}

/* 图标样式（修复：路径规范，尺寸合理，解决图标不显示问题） */
.login-main .login-bottom .center .item .icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  /* 图标路径：修正为规范静态资源目录，添加兜底背景色 */
  background-color: #e6f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图标背景图（修复：路径规范，确保显示，无图也有兜底色块） */
.login-main .login-bottom .center .item .icon-2 {
  background: url(/static/images/icon-login.png) no-repeat -54px 0 / cover, #e6f7ff;
}

.login-main .login-bottom .center .item .icon-3 {
  background: url(/static/images/icon-login.png) no-repeat -106px 0 / cover, #e6f7ff;
}

.login-main .login-bottom .center .item .icon-4 {
  background: url(/static/images/icon-login.png) no-repeat 0 -43px / cover, #e6f7ff;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 50%;
}

/* 编辑框核心样式（重点修复：解决无效果问题，强化视觉和交互） */
.login-main .login-bottom .center .item input {
  width: calc(100% - 46px);
  height: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  font-size: 16px;
  color: #333333;
  /* 优先级提升，避免被layui输入框样式覆盖 */
  background: transparent !important;
  /* 取消默认边框，保持自定义样式 */
  box-shadow: none !important;
  /* 确保文字不超出 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 编辑框占位符样式（修复：颜色明显，字体清晰，解决占位符不显示问题） */
.login-main .login-bottom .center .item input::-webkit-input-placeholder {
  color: #999999;
  font-size: 14px;
}

.login-main .login-bottom .center .item input::-moz-placeholder {
  color: #999999;
  font-size: 14px;
}

.login-main .login-bottom .center .item input:-moz-placeholder {
  color: #999999;
  font-size: 14px;
}

.login-main .login-bottom .center .item input:-ms-input-placeholder {
  color: #999999;
  font-size: 14px;
}

/* 取消Chrome自动填充背景（修复：编辑框填充后样式混乱问题） */
.login-main .login-bottom .center .item input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #ffffff inset !important;
  -webkit-text-fill-color: #333333 !important;
  transition: background-color 1s ease-in-out;
}

/* 提示栏样式（修复：链接位置合理，交互明显） */
.login-main .login-bottom .tip {
  height: 25px;
  line-height: 25px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 30px;
  position: relative;
}

.login-main .login-bottom .tip .forget-password {
  color: #1890ff;
  text-decoration: none;
  position: absolute;
  right: 0;
  font-size: 14px;
  transition: all 0.3s ease;
}

.login-main .login-bottom .tip .forget-password:hover {
  color: #096dd9;
  text-decoration: underline;
}

/* 登录按钮（修复：样式明显，hover效果强烈，解决按钮无质感问题） */
.login-main .login-bottom .login-btn {
  width: 100%;
  max-width: 300px;
  height: 50px;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%) !important;
  border-radius: 25px;
  margin: 0 auto;
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  cursor: pointer;
  border: 0;
  box-shadow: 0 5px 15px rgba(24, 144, 255, 0.3);
  transition: all 0.3s ease-in-out;
}

.login-main .login-bottom .login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 144, 255, 0.4);
  background: linear-gradient(135deg, #096dd9 0%, #1890ff 100%) !important;
}

.login-main .login-bottom .login-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(24, 144, 255, 0.3);
}

/* 底部版权信息（修复：显示清晰，不遮挡主体） */
.footer {
  position: absolute;
  left: 0;
  bottom: 30px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

.footer a, .footer span {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.padding-5 {
  padding: 0 5px !important;
}

/* 响应式适配（修复：手机端编辑框不挤压，显示正常） */
@media screen and (max-width: 428px) {
  .login-main {
    width: 90%;
    max-width: 360px;
  }

  .login-main .login-top {
    height: 100px;
    font-size: 28px;
    line-height: 100px;
  }

  .login-main .login-bottom {
    padding: 30px 20px 40px;
  }
}
