/* 登录页面样式 */
.login-page {
  width: 100%;
  background: rgba(248, 248, 248, 1);
  display: flex;
  flex-direction: column;
}

/* 顶部导航栏 */
.login-header {
  width: 100%;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(239, 239, 239, 1);
  padding: 20px 0;
}

.header-content {
  width: 1560px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 180px;
  height: auto;
  cursor: pointer;
}

.welcome-text {
  font-size: 22px;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
}

.header-right {
  display: flex;
  align-items: center;
}

.back-home-btn {
  padding: 8px 24px;
  background: rgba(255, 255, 255, 1);
  color: rgba(1, 84, 152, 1);
  border: 1px solid rgba(1, 84, 152, 1);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-home-btn:hover {
  background: rgba(1, 84, 152, 1);
  color: rgba(255, 255, 255, 1);
}

/* 轮播图背景区域 */
.banner-section {
  width: 100%;
  height: 660px;
  position: relative;
  overflow: hidden;
  background: rgba(51, 51, 51, 1);
}

.banner-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background: rgba(255, 152, 56, 1);
  width: 24px;
  border-radius: 6px;
}

/* 登录表单区域（嵌入在轮播图中，位置在中间偏右） */
.login-section {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  width: 400px;
  background: rgba(255, 255, 255, 1);
  padding: 32px 40px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.login-form-container {
  width: 100%;
}

.login-title {
  font-size: 22px;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
  text-align: left;
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.form-input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(238, 238, 238, 1);
  background: rgba(255, 255, 255, 1);
  font-size: 16px;
  font-weight: 400;
  color: rgba(51, 51, 51, 1);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(170, 170, 170, 1);
}

.form-input:focus {
  outline: none;
  border-color: rgba(1, 84, 152, 1);
}

.form-input.has-error {
  border-color: rgba(255, 152, 56, 1);
}

.form-input.has-error:focus {
  border-color: rgba(255, 152, 56, 1);
}

/* 错误提示信息 */
.error-message {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 152, 56, 1);
}

.icon-warning {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

/* 验证码组 */
.captcha-group {
  flex-direction: column;
}

.captcha-wrapper {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.captcha-input {
  flex: 1;
}

.captcha-image {
  width: 120px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 248, 248, 1);
  border: 1px solid rgba(238, 238, 238, 1);
  font-size: 24px;
  font-weight: 700;
  color: rgba(51, 51, 51, 1);
  letter-spacing: 8px;
  cursor: pointer;
  user-select: none;
  font-family: 'Courier New', monospace;
  text-decoration: line-through;
  text-decoration-color: rgba(119, 119, 119, 1);
}

.captcha-image:hover {
  background: rgba(234, 234, 234, 1);
}

/* 记住登录 */
.remember-group {
  margin-top: -8px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-checkbox {
  width: 18px;
  height: 18px;
  accent-color: rgba(1, 84, 152, 1);
  cursor: pointer;
}

.remember-text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(119, 119, 119, 1);
}

/* 登录按钮 */
.login-button {
  height: 48px;
  background: rgba(1, 84, 152, 1);
  color: rgba(255, 255, 255, 1);
  border: none;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.login-button:hover {
  background: rgba(1, 70, 130, 1);
}

.login-button:active {
  background: rgba(1, 70, 130, 1);
}

/* 其他选项 */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.other-login {
  display: flex;
  align-items: center;
  gap: 12px;
}

.other-login-label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(119, 119, 119, 1);
}

.wechat-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(7, 193, 96, 1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 6px;
}

.wechat-login:hover {
  transform: scale(1.1);
}

.login-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.links1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.link {
  color: rgba(1, 84, 152, 1);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
}

.link:hover {
  color: rgba(7, 91, 160, 1);
  text-decoration: underline;
}

.separator {
  color: rgba(170, 170, 170, 1);
}

/* Footer 样式调整（登录页面无需上边距） */
.login-page + #footer-placeholder .footer {
  margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 1600px) {
  .header-content {
    width: 90%;
    padding: 0 20px;
  }
}

@media (max-width: 1200px) {
  .login-section {
    right: 10%;
    width: 360px;
  }
}

@media (max-width: 768px) {
  .header-content {
    width: 100%;
    padding: 0 16px;
  }

  .welcome-text {
    font-size: 18px;
  }

  .logo {
    width: 140px;
  }

  .back-home-btn {
    padding: 6px 16px;
    font-size: 14px;
  }

  .banner-section {
    height: auto;
    min-height: 600px;
  }

  .login-section {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 90%;
    max-width: 400px;
    margin: 40px auto;
  }
}

