/* 登录页面样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-container {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
}

.login-wrapper {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(0px);
  width: 30%;
  margin-right: 10%;
  min-height: 600px;
  overflow: hidden;
}
.register-box,
.login-box {
  flex: 1;
  padding: 60px 50px;
  background: transparent;
}

.register-box {
  padding: 20px 50px;
}

.login-header {
  text-align: center;
}

.login-header .logo img {
  width: 140px;
  height: 80px;
  object-fit: contain;
}

.login-header h2 {
  display: none;
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.login-header p {
  color: #666;
  font-size: 16px;
}

.login-form {
  margin-bottom: 30px;
}

/* 登录表单 */
.login-form {
  background: transparent;
  width: 100%;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.login-form.active {
  opacity: 1;
  transform: translateY(0);
}

.form-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

/* Tab导航栏 */
.login-tabs {
  display: flex;
  margin-bottom: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.tab-btn.active {
  background: linear-gradient(
    135deg,
    rgba(236, 29, 35, 1) 0%,
    rgba(236, 29, 35, 0.6) 100%
  );
  color: white;
}

.tab-btn:focus {
  outline: none;
}

/* Tab内容区域 */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-wrapper input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toggle-password {
  position: absolute;
  right: 56px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #667eea;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.remember-me input[type="checkbox"],
.agree-terms input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark,
.agree-terms input[type="checkbox"]:checked + .checkmark {
  background: #667eea;
  border-color: #667eea;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after,
.agree-terms input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #764ba2;
}

.login-btn {
  width: 100%;
  padding: 15px;
  /* 红色 */
  background: linear-gradient(
    135deg,
    rgba(236, 29, 35, 1) 0%,
    rgba(236, 29, 35, 0.6) 100%
  );
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.register-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.register-link:hover {
  color: #764ba2;
}
.success-message,
.error-message {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: #fee;
  color: #c33;
  padding: 12px 15px;
  border-radius: 8px;
  border-left: 4px solid #c33;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
  animation: slideIn 0.5s;
}

.error-message i,
.success-message i {
  margin-right: 8px;
  font-size: 16px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    top: 0;
  }
  to {
    opacity: 1;
    top: 10px;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* 全屏背景视频样式 */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 底部版权信息样式 */
.copyright-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  z-index: 10;
  text-align: center;
}

.copyright-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.copyright-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

.copyright-content p:first-child {
  font-weight: 500;
}

/* 图标样式 */
.icon-user::before {
  content: "👤";
}

.icon-password::before {
  content: "🔒";
}

.icon-eye::before {
  content: "👁️";
}

.icon-loading::before {
  content: "⚡";
  animation: spin 1s linear infinite;
}

.icon-error::before {
  content: "⚠️";
}

.icon-email::before {
  content: "📧";
}

.icon-code::before {
  content: "🔢";
}

.icon-success::before {
  content: "✅";
}

/* 成功消息样式 */
.success-message {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 12px 15px;
  border-radius: 8px;
  border-left: 4px solid #2e7d32;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
  animation: slideIn 0.3s ease;
}

.success-message i {
  margin-right: 8px;
  font-size: 16px;
}

/* 验证码输入框样式 */
.send-code-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.send-code-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-code-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

/* 验证码输入框特殊样式 */
.captcha-input {
  position: relative;
}

.captcha-input img {
  position: absolute;
  right: 12px;
  top: 50%;
  height: 80%;
  transform: translateY(-50%) !important;
}
#verifyCode {
  padding-right: 100px;
}

/* 同意条款样式 */
.agree-terms {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

.agree-terms a {
  color: #667eea;
  text-decoration: none;
  margin-left: 5px;
}

.agree-terms a:hover {
  color: #764ba2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 获取验证码按钮 */
.get-code-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    rgba(236, 29, 35, 1) 0%,
    rgba(236, 29, 35, 0.6) 100%
  );
}

.get-code-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(236, 29, 35, 1) 0%,
    rgba(236, 29, 35, 0.6) 100%
  );
}

.get-code-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.get-code-btn.counting {
  background: #999;
}

/* 注册表单验证码样式 */
.register-form .captcha-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.register-form .captcha-group input {
  flex: 1;
}

.register-form .captcha-image {
  width: 100px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  background: #f8f9fa;
}

.register-form .captcha-image:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.register-form .captcha-image:active {
  transform: scale(0.98);
}

/* 短信验证码输入组 */
.register-form .sms-code-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.register-form .sms-code-group input {
  flex: 1;
}

.register-form .get-sms-code-btn {
  padding: 12px 16px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 100px;
}

.register-form .get-sms-code-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.register-form .get-sms-code-btn:active {
  transform: translateY(0);
}

.register-form .get-sms-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #ccc;
}

.register-form .get-sms-code-btn.counting {
  background: #6c757d;
  cursor: not-allowed;
}

.refresh-captcha {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-captcha:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.refresh-captcha i {
  font-size: 14px;
  color: #666;
}

/* 图标样式 */
.icon-phone::before {
  content: "📱";
}
.icon-sms::before {
  content: "💬";
}
.icon-captcha::before {
  content: "🔍";
}
.icon-refresh::before {
  content: "🔄";
}

/* 移动端登录页样式 */
@media screen and (max-width: 768px) {
  body {
    display: block;
  }

  .login-container {
    height: calc(100vh - 40px);
    padding: 0;
  }

  .login-wrapper {
    width: 100%;
    height: 100% !important;
    margin: 0;
    border-radius: 0;
    background: transparent;
  }

  .login-header h2,
  .login-header p,
  .remember-me,
  .agree-terms {
    color: #fff;
  }

  .login-box,
  .register-box {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 30px 30px 0;
    transform: translate(-50%, 0);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .login-box {
    padding: 80px 30px 0;
  }

  .login-tabs {
    margin-bottom: 15px;
  }

  .login-form {
    flex: 1;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
  }

  .tab-btn {
    padding: 10px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group.form-options {
    margin-bottom: 25px;
  }

  .register-box .form-group.form-options {
    margin-bottom: 15px;
  }

  .copyright-content p {
    font-size: 12px;
  }

  .login-btn {
    margin-top: auto;
    margin-bottom: 40px;
  }

  .login-footer {
    text-align: center;
    font-size: 14px;
    color: #fff;
    z-index: 2000;
    padding: 15px 0;
  }

  .login-wrapper a {
    color: #fff;
  }

  .input-wrapper input {
    padding: 12px 15px 12px 45px;
  }
}
