/* ========== 登录页面 - 夜店蒹迣风格 ========== */
#login-screen,
.login-screen {
  background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%) !important;
  align-items: center;
  padding: 60px 32px 40px;
  position: relative;
  overflow: hidden;
}

/* 动态霉虹灵光背景 */
#login-screen::before,
.login-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(139, 34, 82, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(99, 49, 222, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(139, 34, 82, 0.15) 0%, transparent 50%);
  pointer-events: none;
  animation: discoGlow 2s ease-in-out infinite;
}

/* 蒹迣脉冲动画 */
@keyframes discoGlow {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.05);
  }
}

/* 闪烁光点粒子 */
#login-screen::after,
.login-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255, 100, 150, 0.8) 50%, transparent 50%),
    radial-gradient(2px 2px at 90% 15%, rgba(100, 200, 255, 0.8) 50%, transparent 50%),
    radial-gradient(2px 2px at 30% 80%, rgba(255, 215, 0, 0.8) 50%, transparent 50%),
    radial-gradient(2px 2px at 70% 70%, rgba(139, 34, 82, 0.9) 50%, transparent 50%),
    radial-gradient(3px 3px at 50% 10%, rgba(255, 150, 200, 0.7) 50%, transparent 50%),
    radial-gradient(2px 2px at 85% 85%, rgba(150, 100, 255, 0.8) 50%, transparent 50%),
    radial-gradient(2px 2px at 15% 60%, rgba(0, 255, 200, 0.6) 50%, transparent 50%),
    radial-gradient(3px 3px at 60% 40%, rgba(255, 100, 100, 0.7) 50%, transparent 50%);
  pointer-events: none;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  25% { opacity: 1; }
  50% { opacity: 0.5; transform: translateY(-5px); }
  75% { opacity: 0.9; }
}

/* 律动光束 */
.login-screen .disco-beam {
  position: absolute;
  width: 4px;
  height: 150%;
  background: linear-gradient(to bottom, 
    transparent 0%,
    rgba(139, 34, 82, 0.3) 20%,
    rgba(255, 100, 150, 0.5) 50%,
    rgba(139, 34, 82, 0.3) 80%,
    transparent 100%);
  transform-origin: top center;
  pointer-events: none;
  filter: blur(2px);
}

.login-screen .disco-beam:nth-child(1) {
  left: 20%;
  animation: beamSwing 3s ease-in-out infinite;
}

.login-screen .disco-beam:nth-child(2) {
  left: 50%;
  animation: beamSwing 2.5s ease-in-out infinite 0.5s;
}

.login-screen .disco-beam:nth-child(3) {
  left: 80%;
  animation: beamSwing 3.5s ease-in-out infinite 1s;
}

@keyframes beamSwing {
  0%, 100% { transform: rotate(-15deg); opacity: 0.3; }
  50% { transform: rotate(15deg); opacity: 0.7; }
}

/* 脉冲波纹效果 */
.login-screen .pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid rgba(139, 34, 82, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseRing 2s ease-out infinite;
}

.login-screen .pulse-ring:nth-child(4) {
  animation-delay: 0s;
}

.login-screen .pulse-ring:nth-child(5) {
  animation-delay: 0.5s;
}

.login-screen .pulse-ring:nth-child(6) {
  animation-delay: 1s;
}

@keyframes pulseRing {
  0% {
    width: 100px;
    height: 100px;
    opacity: 0.8;
    border-color: rgba(255, 100, 150, 0.6);
  }
  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
    border-color: rgba(139, 34, 82, 0.1);
  }
}

/* 底部音频条 */
.login-screen .audio-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding: 0 20%;
  pointer-events: none;
  opacity: 0.4;
}

.login-screen .audio-bar {
  width: 4px;
  background: linear-gradient(to top, rgba(139, 34, 82, 0.8), rgba(255, 100, 150, 0.6));
  border-radius: 2px;
  animation: audioJump 0.8s ease-in-out infinite;
}

.login-screen .audio-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.login-screen .audio-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.login-screen .audio-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.login-screen .audio-bar:nth-child(4) { height: 45px; animation-delay: 0.15s; }
.login-screen .audio-bar:nth-child(5) { height: 30px; animation-delay: 0.25s; }
.login-screen .audio-bar:nth-child(6) { height: 50px; animation-delay: 0.05s; }
.login-screen .audio-bar:nth-child(7) { height: 35px; animation-delay: 0.3s; }
.login-screen .audio-bar:nth-child(8) { height: 25px; animation-delay: 0.2s; }
.login-screen .audio-bar:nth-child(9) { height: 40px; animation-delay: 0.1s; }
.login-screen .audio-bar:nth-child(10) { height: 20px; animation-delay: 0.35s; }

@keyframes audioJump {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.5); }
}

.login-logo {
  width: 100px;
  height: 80px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 15px rgba(139, 34, 82, 0.5));
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { 
    filter: drop-shadow(0 0 15px rgba(139, 34, 82, 0.5));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 25px rgba(255, 100, 150, 0.7));
    transform: scale(1.02);
  }
}

.login-logo svg {
  width: 100%;
  height: 100%;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(139, 34, 82, 0.4);
  animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { 
    text-shadow: 
      0 0 10px rgba(255, 255, 255, 0.3),
      0 0 30px rgba(139, 34, 82, 0.4);
  }
  50% { 
    text-shadow: 
      0 0 15px rgba(255, 255, 255, 0.5),
      0 0 40px rgba(255, 100, 150, 0.6),
      0 0 60px rgba(139, 34, 82, 0.4);
  }
}

.login-subtitle {
  font-size: 13px;
  color: rgba(200, 180, 220, 0.8);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* 登录方式Tab */
.login-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid rgba(139, 34, 82, 0.3);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.login-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: rgba(200, 180, 220, 0.7);
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}

.login-tab.active {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(139, 34, 82, 0.6);
}

.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 34, 82, 0.8), #fff, rgba(139, 34, 82, 0.8), transparent);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(139, 34, 82, 0.6);
}

/* 登录表单 */
.login-form {
  width: 100%;
  display: none;
  position: relative;
  z-index: 1;
}

.login-form.active {
  display: block;
}

.login-input-group {
  margin-bottom: 16px;
}

.login-input-group label {
  display: block;
  font-size: 13px;
  color: rgba(200, 180, 220, 0.8);
  margin-bottom: 8px;
}

.login-input-row {
  display: flex;
  gap: 12px;
}

.login-input-row .input-field {
  flex: 1;
}

/* 输入框夜店风格 */
#login-screen .input-field,
.login-screen .input-field {
  background: rgba(20, 15, 35, 0.8) !important;
  border: 1px solid rgba(139, 34, 82, 0.3) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
}

#login-screen .input-field::placeholder,
.login-screen .input-field::placeholder {
  color: rgba(200, 180, 220, 0.5) !important;
}

#login-screen .input-field:focus,
.login-screen .input-field:focus {
  border-color: rgba(139, 34, 82, 0.6) !important;
  box-shadow: 
    0 0 15px rgba(139, 34, 82, 0.3),
    inset 0 0 10px rgba(139, 34, 82, 0.1);
}

.btn-code {
  width: 110px;
  height: 44px;
  background: rgba(139, 34, 82, 0.3);
  color: rgba(255, 150, 180, 0.9);
  border: 1px solid rgba(139, 34, 82, 0.4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.btn-code:hover {
  background: rgba(139, 34, 82, 0.5);
  box-shadow: 0 0 15px rgba(139, 34, 82, 0.4);
}

.btn-code:disabled {
  background: rgba(30, 25, 45, 0.6);
  color: rgba(200, 180, 220, 0.4);
  border-color: rgba(139, 34, 82, 0.2);
  cursor: not-allowed;
}

.btn-login {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgba(139, 34, 82, 0.9) 0%, rgba(99, 49, 222, 0.8) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 
    0 4px 20px rgba(139, 34, 82, 0.4),
    0 0 30px rgba(139, 34, 82, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
  box-shadow: 
    0 6px 25px rgba(139, 34, 82, 0.5),
    0 0 40px rgba(139, 34, 82, 0.3);
  transform: translateY(-2px);
}

.btn-login:active {
  opacity: 0.9;
  transform: translateY(0);
}

/* 第三方登录 */
.login-third-party {
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-third-party p {
  font-size: 13px;
  color: rgba(200, 180, 220, 0.6);
  margin-bottom: 24px;
}

.third-party-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-wechat {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.85) 0%, rgba(5, 150, 75, 0.9) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
  transition: all 0.3s;
}

.btn-wechat:hover {
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
  transform: translateY(-2px);
}

.btn-qq {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgba(18, 183, 245, 0.85) 0%, rgba(10, 140, 200, 0.9) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(18, 183, 245, 0.3);
  transition: all 0.3s;
}

.btn-qq:hover {
  box-shadow: 0 6px 20px rgba(18, 183, 245, 0.4);
  transform: translateY(-2px);
}

/* 用户协议 */
.login-agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 12px;
  color: rgba(200, 180, 220, 0.6);
  position: relative;
  z-index: 1;
}

.login-agreement input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: rgba(139, 34, 82, 0.8);
}

.login-agreement a {
  color: rgba(255, 150, 180, 0.9);
  text-shadow: 0 0 8px rgba(139, 34, 82, 0.4);
}

/* 微信二维码区域 */
.wechat-qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

.wechat-qrcode {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 34, 82, 0.3);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(139, 34, 82, 0.2);
  position: relative;
}

.wechat-qrcode svg {
  width: 100%;
  height: 100%;
}

.qrcode-status {
  margin-top: 12px;
  text-align: center;
}

.qrcode-tip {
  font-size: 13px;
  color: rgba(200, 180, 220, 0.8);
}

.qrcode-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 20px;
  font-size: 13px;
  color: rgba(255, 150, 180, 0.9);
  cursor: pointer;
  border: 1px solid rgba(139, 34, 82, 0.5);
  border-radius: 20px;
  transition: all 0.3s;
  background: rgba(139, 34, 82, 0.2);
}

.qrcode-refresh:hover {
  background: rgba(139, 34, 82, 0.4);
  box-shadow: 0 0 15px rgba(139, 34, 82, 0.4);
}

.qrcode-refresh:active {
  transform: scale(0.96);
}

.qrcode-refresh svg {
  color: rgba(255, 150, 180, 0.9);
}
