/* 登录页面专用样式 */

/* 全局重置与基础设置 */
.login-page {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  min-height: 100vh;
  color: #333333;
}

/* 顶部导航栏 */
.login-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.login-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand-name {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
}

.login-brand-tagline {
  font-size: 14px;
  color: #64748B;
}

.login-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-prompt {
  color: #64748B;
  font-size: 14px;
}

.login-link {
  color: #3B82F6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: #1E40AF;
}

/* 主要内容区域 */
.login-main-container {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  display: flex;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

/* 左侧品牌展示区 */
.login-brand-showcase {
  flex: 0 0 50%;
  background: linear-gradient(135deg, #1E40AF 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-brand-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.login-showcase-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 480px;
  padding: 60px 40px;
}

.login-hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.login-highlight {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 48px;
  opacity: 0.9;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.login-features-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

.login-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.login-feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.login-feature-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-feature-text p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

/* 右侧表单区域 */
.login-form-section {
  flex: 0 0 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.login-form-container {
  width: 100%;
  max-width: 480px;
}

/* 步骤进度指示器 */
.login-progress-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  padding: 0 20px;
}

.login-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.login-progress-step.active {
  opacity: 1;
}

.login-progress-step.completed {
  opacity: 1;
}

.login-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.login-progress-step.active .login-step-circle {
  background: linear-gradient(135deg, #1E40AF 0%, #8B5CF6 100%);
  color: white;
}

.login-progress-step.completed .login-step-circle {
  background: #10B981;
  color: white;
}

.login-step-number {
  font-weight: 600;
  font-size: 14px;
}

.login-step-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  text-align: center;
}

.login-progress-step.active .login-step-label {
  color: #1E40AF;
}

.login-progress-line {
  flex: 1;
  height: 2px;
  background: #E5E7EB;
  margin: 0 16px;
  position: relative;
  top: -16px;
}

/* 表单内容区域 */
.login-form-content-area {
  position: relative;
}

.login-step-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.login-step-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.login-step-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-step-title {
  font-size: 28px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 12px;
}

.login-step-description {
  font-size: 16px;
  color: #64748B;
  line-height: 1.5;
}

/* 表单字段样式 */
.login-form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.login-form-input {
  padding: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #FFFFFF;
}

.login-form-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-form-input.error {
  border-color: #EF4444;
}

.login-form-input.success {
  border-color: #10B981;
}

.login-password-wrapper {
  position: relative;
}

.login-password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.login-password-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.login-field-feedback {
  font-size: 14px;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-field-feedback.error {
  color: #EF4444;
}

.login-field-feedback.success {
  color: #10B981;
}

/* 表单选项 */
.login-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.login-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.login-checkbox {
  display: none;
}

.login-checkbox-mark {
  width: 18px;
  height: 18px;
  border: 2px solid #E5E7EB;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.login-checkbox:checked + .login-checkbox-mark {
  background: #3B82F6;
  border-color: #3B82F6;
}

.login-checkbox:checked + .login-checkbox-mark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.login-checkbox-text {
  font-size: 14px;
  color: #64748B;
}

.login-forgot-link {
  font-size: 14px;
  color: #3B82F6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-forgot-link:hover {
  color: #1E40AF;
}

/* 按钮样式 */
.login-btn-primary {
  background: linear-gradient(135deg, #1E40AF 0%, #8B5CF6 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

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

.login-btn-large {
  width: 100%;
  padding: 18px 32px;
  font-size: 18px;
}

.login-btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 表单底部 */
.login-form-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.login-switch-prompt {
  font-size: 14px;
  color: #64748B;
}

.login-switch-link {
  color: #3B82F6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.login-switch-link:hover {
  color: #1E40AF;
}

/* 底部信息区 */
.login-footer {
  background: #F8FAFC;
  border-top: 1px solid #E5E7EB;
  padding: 24px 0;
}

.login-footer-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
  text-align: center;
}

.login-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.login-footer-links a {
  color: #64748B;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.login-footer-links a:hover {
  color: #374151;
}

.login-footer-copyright {
  font-size: 12px;
  color: #9CA3AF;
}

/* 工具类 */
.hidden {
  display: none !important;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
  .login-main-container {
    flex-direction: column;
  }
  
  .login-brand-showcase {
    flex: none;
    min-height: 300px;
  }
  
  .login-showcase-content {
    padding: 40px 20px;
  }
  
  .login-hero-title {
    font-size: 36px;
  }
  
  .login-form-section {
    flex: none;
    padding: 40px 20px;
  }
  
  .login-progress-indicator {
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .login-nav-container {
    padding: 0 4%;
  }
  
  .login-brand-name {
    font-size: 20px;
  }
  
  .login-brand-tagline {
    display: none;
  }
  
  .login-hero-title {
    font-size: 28px;
  }
  
  .login-hero-subtitle {
    font-size: 16px;
  }
  
  .login-form-section {
    padding: 30px 16px;
  }
  
  .login-step-title {
    font-size: 24px;
  }
  
  .login-progress-indicator {
    padding: 0 10px;
  }
  
  .login-progress-line {
    margin: 0 8px;
  }
}