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

body {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 全屏登录布局 ===== */
.login-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* 全屏背景图（loginBg.png 铺满） */
.login-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 左侧文字（白色，叠加在背景图上） */
.login-left {
  position: absolute;
  left: 10%;
  top: 45%;
  transform: translateY(-50%);
  z-index: 1;
}

.login-title {
  color: #fff;
  max-width: 700px;
}

.login-title-greeting {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  font-weight: 400;
}

.login-title-welcome {
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.login-title-sub {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* ===== 登录卡片（右侧白色卡片） ===== */
.login-card {
  position: absolute;
  width: 537px;
  height: 600px;
  top: 50%;
  right: 12%;
  transform: translateY(-50%);
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 4px 24px 1px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.card-inner {
  padding: 50px 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ===== 标题 ===== */
.title-container {
  text-align: center;
  margin-bottom: 40px;
}

.title {
  font-size: 22px;
  font-weight: bold;
  color: #3f88fd;
  margin: 0;
  line-height: 1.4;
}

/* ===== 表单 ===== */
.login-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-item {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  padding: 0 5px;
  transition: border-color 0.2s ease;
}

.form-item:focus-within {
  border-color: #409EFF;
}

.input-icon {
  display: inline-block;
  padding: 6px 5px 6px 15px;
  color: #889aa4;
  vertical-align: middle;
  width: 30px;
  flex-shrink: 0;
  text-align: center;
}

.form-input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #646a73;
  padding: 0 5px;
  caret-color: #646a73;
}

.form-input::placeholder {
  color: #889aa4;
}

/* ===== 验证码行 ===== */
.captcha-row {
  padding: 0 0 0 5px;
}

.captcha-input {
  flex: 1;
  min-width: 0;
}

.captcha-img-wrap {
  flex-shrink: 0;
  margin-left: 10px;
}

.captcha-img {
  width: 140px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  object-fit: cover;
}

/* ===== 登录按钮 ===== */
.login-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 4px;
  background-color: #409EFF;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.login-btn:hover {
  background-color: #66b1ff;
}

.login-btn:active {
  background-color: #3a8ee6;
}

/* ===== 错误提示 ===== */
.alert-danger {
  background-color: #fef0f0;
  border: 1px solid #fbc4c4;
  color: #f56c6c;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  text-align: left;
  width: 100%;
}

.alert-danger .close {
  float: right;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #f56c6c;
  opacity: 0.6;
  cursor: pointer;
}

.alert-danger .close:hover {
  opacity: 1;
}

/* ===== 重复登录弹窗 ===== */
.modal-dialog {
  width: 460px;
}

.modal-content {
  border-radius: 10px;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.modal-body .icon {
  height: 72px;
  width: 72px;
  margin: 24px auto 16px;
  border-radius: 50%;
  color: #f56c6c;
  border: 3px solid #f56c6c;
  text-align: center;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body .icon .glyphicon {
  font-weight: bold;
}

.modal-body .modal-p {
  text-align: center;
  padding: 0 20px 24px;
}

.modal-body .modal-p p {
  text-align: center;
  color: #606266;
  font-size: 16px;
  padding: 8px 0 20px;
}

.modal-p .btn {
  width: 100px;
  height: 40px;
  border-radius: 4px;
  margin: 0 8px;
}

.modal-p .btn-primary {
  background-color: #409EFF;
  border-color: #409EFF;
}

.modal-p .btn-primary:hover {
  background-color: #66b1ff;
  border-color: #66b1ff;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .login-card {
    right: 8%;
  }
}

@media (max-width: 1080px) {
  .login-left {
    display: none;
  }
  .login-card {
    right: 50%;
    transform: translate(50%, -50%);
  }
}

@media (max-width: 600px) {
  .login-card {
    width: 92%;
    right: 50%;
    transform: translate(50%, -50%);
    height: auto;
    min-height: 480px;
  }
  .card-inner {
    padding: 40px 30px;
  }
}
