/* ============================================
   登录页样式
   ============================================ */

body.login-page {
  background:
    radial-gradient(ellipse at top left, rgba(22, 119, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(22, 119, 255, 0.12), transparent 50%),
    var(--bg-layout);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

[data-theme='dark'] body.login-page {
  background:
    radial-gradient(ellipse at top left, rgba(22, 119, 255, 0.25), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(0, 80, 179, 0.2), transparent 50%),
    #000;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  background: var(--bg-container);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 560px;
}

.login-banner {
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-banner::before,
.login-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.login-banner::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -80px;
}

.login-banner::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -40px;
}

.banner-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.banner-logo-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  backdrop-filter: blur(10px);
}

.banner-logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.banner-desc {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.8;
  max-width: 360px;
  margin: 0;
}

.banner-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.banner-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.banner-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.banner-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  opacity: 0.7;
}

.login-form-wrapper {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.login-top-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.login-theme-toggle:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.login-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.login-subtitle {
  color: var(--text-tertiary);
  margin: 0 0 32px 0;
  font-size: 14px;
}

.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color-split);
}

.login-tab {
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.login-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.login-tab:hover {
  color: var(--primary-color);
}

.login-form .input {
  height: 42px;
  font-size: 15px;
}

.login-tips {
  background: var(--primary-bg);
  color: var(--primary-color);
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.login-tips b {
  font-weight: 600;
}

.login-form .btn-primary {
  height: 44px;
  font-size: 15px;
  font-weight: 500;
}

.login-footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 420px;
    min-height: auto;
  }
  .login-banner {
    padding: 32px 28px;
    min-height: 200px;
  }
  .banner-title {
    font-size: 22px;
  }
  .banner-features {
    display: none;
  }
  .login-form-wrapper {
    padding: 32px 28px;
  }
}
