/* 登录页样式 - 深邃星空蓝 + 流光金主题 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #e2e8f0 100%);
}

/* 动态星空背景 - 多层效果 */
.login-page::before {
  display: none;
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(3px 3px at 20px 30px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 350px 50px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 420px 200px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 500px 100px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 600px 180px, rgba(255,255,255,0.3), transparent),
    radial-gradient(3px 3px at 100px 200px, rgba(212, 175, 55, 0.6), transparent),
    radial-gradient(2px 2px at 450px 80px, rgba(212, 175, 55, 0.4), transparent),
    radial-gradient(1px 1px at 200px 180px, rgba(212, 175, 55, 0.5), transparent),
    radial-gradient(2px 2px at 550px 220px, rgba(212, 175, 55, 0.3), transparent);
  background-repeat: repeat;
  background-size: 700px 300px;
  animation: twinkle 6s ease-in-out infinite, floatStars 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -2;
}

/* 第二层稀疏星星 */
.login-page::after {
  display: none;
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(4px 4px at 150px 100px, rgba(255,255,255,0.3), transparent),
    radial-gradient(3px 3px at 320px 160px, rgba(255,255,255,0.2), transparent),
    radial-gradient(4px 4px at 480px 60px, rgba(255,255,255,0.25), transparent),
    radial-gradient(3px 3px at 120px 240px, rgba(255,255,255,0.15), transparent),
    radial-gradient(4px 4px at 580px 140px, rgba(255,255,255,0.2), transparent),
    radial-gradient(3px 3px at 280px 220px, rgba(255,255,255,0.18), transparent),
    radial-gradient(4px 4px at 380px 40px, rgba(212, 175, 55, 0.35), transparent),
    radial-gradient(3px 3px at 650px 180px, rgba(212, 175, 55, 0.25), transparent),
    radial-gradient(4px 4px at 80px 160px, rgba(212, 175, 55, 0.3), transparent);
  background-repeat: repeat;
  background-size: 800px 350px;
  animation: twinkle 8s ease-in-out infinite reverse, floatStars 25s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: -2;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes floatStars {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -10px); }
  50% { transform: translate(10px, 20px); }
  75% { transform: translate(-15px, 10px); }
}

/* 背景装饰 */
.login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
}
.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -150px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(212, 175, 55, 0.5);
  bottom: -100px;
  right: -50px;
  animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(212, 175, 55, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
  overflow: hidden;
  width: 900px;
  max-width: 95%;
  min-height: 500px;
  border: 1px solid #e2e8f0;
}

/* 左侧品牌区 */
.login-left {
  flex: 1;
  background: linear-gradient(160deg, rgba(13, 27, 42, 0.95) 0%, rgba(30, 58, 95, 0.9) 100%);
  color: #fff;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(212, 175, 55, 0.2);
}
.brand-icon {
  font-size: 56px;
  margin-bottom: 16px;
  text-shadow: none;
}
.brand h1 {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #fbbf24;
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 2px;
}
.brand p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
}
.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.8);
}
.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: none;
}

/* 右侧表单区 */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 320px;
}
.login-card h2 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 4px;
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 2px;
}
.login-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.login-form .form-group {
  margin-bottom: 18px;
}
.login-form label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.login-form input {
  padding: 12px 14px;
  font-size: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}
.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 120, 20, 0.15);
}
.login-form input::placeholder {
  color: var(--text-muted);
}
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg-gradient-start);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

/* 登录按钮流光效果 */
.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-login:hover::before {
  left: 100%;
}

/* 登录按钮光晕扩散 */
.btn-login::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-login:hover::after {
  width: 350px;
  height: 350px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 120, 20, 0.3);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.login-divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
  color: var(--text-muted);
  font-size: 12px;
}
.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.login-divider span {
  background: #f1f5f9;
  padding: 0 12px;
  position: relative;
}
.btn-portal {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 14px;
  transition: all var(--transition-normal);
  background: #f8fafc;
}
.btn-portal:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 2px 10px rgba(180, 120, 20, 0.15);
}

/* 响应式 */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    width: 90%;
    min-height: auto;
  }
  .login-left {
    padding: 30px;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
  .brand-icon { font-size: 44px; margin-bottom: 12px; }
  .brand h1 { font-size: 22px; }
  .brand p { font-size: 13px; margin-bottom: 20px; }
  .features { display: none; }
  .login-right { padding: 30px; }
  .login-card h2 { font-size: 20px; }
}

@media (max-width: 480px) {
  .login-container { width: 94%; }
  .login-left { padding: 24px 20px; }
  .brand-icon { font-size: 36px; }
  .brand h1 { font-size: 19px; }
  .brand p { font-size: 12px; }
  .login-right { padding: 24px 20px; }
  .login-card { max-width: 100%; }
  .login-card h2 { font-size: 18px; }
  .login-subtitle { font-size: 12px; margin-bottom: 22px; }
  .login-form input { padding: 10px 12px; font-size: 13px; }
  .btn-login { padding: 12px; font-size: 14px; }
}