/* ========================================
   清爽现代登录页面 - 科技感设计
   ======================================== */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* 主容器 */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 登录卡片 - 左右分栏 */
.login-box {
  display: flex;
  width: 100%;
  max-width: 950px;
  min-height: 600px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* 左侧品牌区域 */
.brand-section {
  width: 420px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 科技感背景装饰 */
.brand-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.brand-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

/* 科技感网格背景 */
.brand-section .brand-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* Logo区域 */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
  letter-spacing: 3px;
}

.brand-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 35px;
}

/* 功能特性列表 */
.brand-features {
  list-style: none;
  margin-bottom: 40px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  opacity: 0.95;
}

.brand-features li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* 统计数据 */
.brand-stats {
  display: flex;
  gap: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  opacity: 0.75;
}

/* 右侧表单区域 */
.form-section {
  flex: 1;
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-title {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
}

/* Tab 切换 */
.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.login-tab {
  padding: 12px 24px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s ease;
}

.login-tab:hover {
  color: #667eea;
}

.login-tab.active {
  color: #667eea;
  font-weight: 500;
  border-bottom-color: #667eea;
}

/* 表单面板 */
.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* 表单项 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  color: #333;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
}

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

.form-input::placeholder {
  color: #adb5bd;
}

/* 验证码输入组 */
.input-group {
  display: flex;
  gap: 12px;
}

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

.code-btn {
  height: 48px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: #667eea;
  background: #f0f3ff;
  border: 1px solid #667eea;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.code-btn:hover:not(:disabled) {
  background: #667eea;
  color: #fff;
}

.code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f9fa;
  color: #adb5bd;
  border-color: #dee2e6;
}

/* 错误提示 */
.error-msg {
  color: #dc3545;
  font-size: 13px;
  margin-bottom: 15px;
  text-align: center;
  min-height: 20px;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

/* 底部链接 */
.form-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.form-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* 二维码面板 */
.qr-panel {
  text-align: center;
  padding: 20px 0;
}

.qr-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.qr-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  background: #f8f9fa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
}

.qr-box img {
  max-width: 180px;
  max-height: 180px;
}

.qr-loading {
  color: #adb5bd;
  font-size: 14px;
}

.qr-tip {
  font-size: 13px;
  color: #999;
  margin-top: 15px;
}

.qr-tip-refresh {
  color: #667eea;
  cursor: pointer;
}

/* 二维码类型切换 */
.qr-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}

.qr-tab {
  font-size: 15px;
  color: #999;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.qr-tab:hover {
  color: #666;
}

.qr-tab.active {
  color: #667eea;
  font-weight: 500;
  border-bottom-color: #667eea;
}

/* Loading */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e9ecef;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 隐藏 */
.hidden {
  display: none !important;
}

/* 注册/找回密码页面容器 */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  padding: 50px 45px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.auth-title {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
  text-align: center;
}

/* 图形验证码样式 */
.captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.captcha-row .form-input {
  flex: 1;
}

.captcha-img {
  height: 48px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #e9ecef;
}

.captcha-icon {
  width: 24px;
  height: 24px;
  margin-left: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
  .login-box {
    flex-direction: column;
    max-width: 440px;
  }

  .brand-section {
    width: 100%;
    padding: 35px 30px;
  }

  .brand-logo {
    font-size: 26px;
  }

  .brand-stats {
    display: none;
  }

  .form-section {
    padding: 40px 30px;
  }

  .login-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .login-tab {
    padding: 12px 16px;
    font-size: 14px;
  }
}
