/* 全局重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f5f5f5;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  width: 1000px;
  height: 600px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

/* 左侧样式 */
.login-left {
  width: 50%;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  padding: 50px;
  overflow: hidden;
}

#background-video {
  position: absolute;
  top: 0;
  left: -2px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.login-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.login-info {
  position: relative;
  z-index: 2;
}

.login-info h1 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 5px;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-info p {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 右侧样式 */
.login-right {
  position: relative;
  width: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.login-form-container {
  width: 100%;
  max-width: 360px;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo img {
  width: 80px;
  height: 80px;
}

.login-form-container h2 {
  text-align: center;
  font-size: 18px;
  font-weight: normal;
  color: #333;
  margin-bottom: 30px;
}

.login-form {
  width: 100%;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.form-group input {
  width: 100%;
  height: 46px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 0 15px 0 40px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.1);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
}

.captcha-group {
  display: flex;
}

.captcha-group input {
  flex: 1;
}

.captcha-image {
  margin-left: 10px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 4px;
  padding: 0 6px;
  width: 148px;
}

.captcha-image img {
  height: 36px;
  width: auto;
}


#refreshCaptcha {
  margin-left: 5px;
  color: #999;
  cursor: pointer;
}

.login-btn {
  width: 100%;
  height: 46px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover {
  background-color: #2980b9;
}

.login-btn:disabled {
  background-color: #a4cce8;
  cursor: not-allowed;
}

/* 消息提示 */
.message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #e74c3c;
  color: white;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.message.show {
  opacity: 1;
}

/* 响应式样式 */
@media (max-width: 1024px) {
  .container {
      width: 90%;
      max-width: 800px;
  }
}

@media (max-width: 768px) {
  .container {
      flex-direction: column;
      height: auto;
  }
  
  .login-left, 
  .login-right {
      width: 100%;
  }
  
  .login-left {
      padding: 40px;
      min-height: 200px;
  }
  
  .login-info h1 {
      font-size: 36px;
  }
}

@media (max-width: 480px) {
  .login-left {
      padding: 30px;
  }
  
  .login-right {
      padding: 30px 20px;
  }
  
  .login-form-container {
      max-width: 100%;
  }
}

/* 加载动画 */
.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

.login-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 15px;
}

.login-switch i {
  font-size: 30px;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-switch i.active {
  color: #1890ff;
}

.login-switch i:hover {
  color: #1890ff;
  transform: scale(1.1);
}

.qrcode-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.qrcode-container {
  text-align: center;
  margin-bottom: 20px;
}

.qrcode-container img {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
}

.qrcode-tip {
  text-align: center;
}

.qrcode-tip p {
  margin: 5px 0;
  color: #666;
}

.qrcode-status {
  color: #1890ff;
  font-weight: bold;
} 

.hidden {
  display: none !important;
}

.loading_vertify + #refreshCaptcha {
    display: none !important;
}
