body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container-fluid {
  padding: 0;
  height: 100vh;
}

.row {
  margin: 0;
  height: 100%;
}

.slider-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 100%;
  position: relative;
}

.flexslider {
  width: 100%;
  max-width: 900px;
  border: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin: 0 auto;
}

.flexslider .slides img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: cover;
}

.custom-pagination {
  width: 100%;
  text-align: center;
  margin: 20px 0 0 0;
  padding: 0;
}

.custom-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.custom-pagination li {
  display: inline-block;
  margin: 0 8px;
}

.custom-pagination li a {
  display: block;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  text-indent: -9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.custom-pagination li a:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.custom-pagination li a.active {
  background: #fff;
  transform: scale(1.3);
  border-color: #fff;
}

.login-section {
  background-color: white;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 100%;
  position: relative;
}

.mobile-login-center {
  width: 100%;
  max-width: 400px;
  padding: 40px 30px;
  text-align: center;
}

.login-logo {
  margin-bottom: 20px;
}

.login-logo img {
  max-width: 180px;
  height: auto;
}

.login-title {
  text-align: center;
  margin-bottom: 30px;
}

.login-title h2 {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.login-content {
  width: 100%;
  max-width: 400px;
}

#wechat_login_form {
  margin-bottom: 20px;
}

#mobile_login_form {
  margin-bottom: 40px;
}

#mobile_login_form .form-control,
#mobile_login_form .btn {
  height: calc(2.25rem + 2px);
  box-sizing: border-box;
}

#send_captcha_btn {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  line-height: 1.5;
  border: 1px solid #ced4da;
  font-size: 1rem;
  border-radius: 0.25rem;
}

.login-buttons {
  margin: 30px 0;
}

.btn-wechat,
.btn-mobile {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-wechat {
  background-color: #07C160;
  /* 微信绿 */
  color: white;
}

.btn-wechat:hover {
  background-color: #06ad56;
}

.btn-mobile {
  background-color: #7E57C2;
  /* 紫色 */
  color: white;
}

.btn-mobile:hover {
  background-color: #6d47b1;
}

.login-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 12px;
}

.login-footer a {
  color: #667eea;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-footer .version {
  margin-top: 5px;
  font-size: 11px;
  color: #aaa;
}

.input-group {
  margin-bottom: 20px;
}

.input-group-text {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  border-right: none;
}

.form-control {
  border-color: #e9ecef;
  padding: 12px 15px;
  height: auto;
  border-left: none;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-img {
  height: 45px;
  cursor: pointer;
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  flex: 1;
}

.captcha-input {
  flex: 1;
  border: 1px solid #e9ecef;
}

.qr-container {
    position: relative;
    display: inline-block;
}

.qr-container image {
    min-width: 200px;
    min-height: 200px;
}

.qrcode-expired-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    display: none;
    border-radius: 8px;
}

.qrcode-expired-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
}

#get_qrcode_btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -50px;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 加载状态 */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 错误状态 */
.is-invalid {
  border-color: #dc3545;
}

.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .slider-section {
    height: 40vh;
    min-height: 300px;
    padding: 15px;
  }

  .login-section {
    height: 60vh;
  }

  .custom-pagination {
    margin: 15px 0 0 0;
  }

  .custom-pagination li {
    margin: 0 5px;
  }

  .custom-pagination li a {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .slider-section {
    display: none;
  }
}