/* 宇宙星空深邃科技感登录界面样?*/
:root {
  --space-bg: #0a0a1a;
  --space-accent: #0066ff;
  --space-glow: rgba(15, 247, 255, 0.6);
  --space-text: #ffffff;
  --space-dark: #0a1a3b;
  --space-card: rgba(20, 20, 40, 0.8);
  --space-border: rgba(0, 243, 255, 0.3);
  --space-input-bg: rgba(8, 15, 40, 0.4);
  --space-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
  --space-button-gradient: linear-gradient(45deg, rgba(106, 17, 203, 0.8), rgba(37, 117, 252, 0.8));
}

/* 登录面板容器 */
#authPanel {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: var(--space-bg);
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important; /* 改为顶部对齐 */
  padding-top: 15vh !important; /* 从顶部添?5%视窗高度的内边距 */
  z-index: 1000;
  overflow: hidden;
}

/* 星空背景 */
#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 登录表单 */
.login-form {
  background: var(--space-card);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(20px);
  border: 1px solid var(--space-border);
  box-shadow: var(--space-shadow);
  position: relative;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  margin: 0 auto !important; /* 确保水平居中 */
  left: 0 !important;
  right: 0 !important;
}

/* 悬浮动画 - 只改变光影效果，不改变位?*/
@keyframes float {
  0% {
    transform: scale(1.0);
    box-shadow: var(--space-shadow);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 25px 40px rgba(15, 247, 255, 0.3);
  }
  100% {
    transform: scale(1.0);
    box-shadow: var(--space-shadow);
  }
}

/* 光晕效果 */
.login-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #6a11cb, #2575fc, #6a11cb);
  z-index: -1;
  border-radius: 22px;
  filter: blur(10px);
  opacity: 0.5;
  animation: glowing 3s linear infinite;
}

@keyframes glowing {
  0% { opacity: 0.5; }
  50% { opacity: 0.2; }
  100% { opacity: 0.5; }
}

/* 标题样式 */
.login-form h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--space-text);
  font-size: 24px;
  font-weight: 600;
  text-shadow: 0 0 10px var(--space-glow);
  letter-spacing: 1px;
}

.login-form h2:first-of-type {
  font-size: 28px;
  background: linear-gradient(to right, #ffffff, #0ff7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

/* 表单组样?*/
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--space-text);
  font-size: 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(15, 247, 255, 0.5);
  transition: all 0.3s ease;
}

/* 输入框样?*/
.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--space-border);
  border-radius: 8px;
  background: var(--space-input-bg);
  color: var(--space-text);
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(15, 247, 255, 0.1);
}

.form-group input:focus {
  outline: none;
  border-color: var(--space-accent);
  box-shadow: 0 0 15px rgba(15, 247, 255, 0.3), inset 0 0 10px rgba(15, 247, 255, 0.1);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* 登录按钮样式 */
#loginBtn {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(15, 247, 255, 0.3);
  border-radius: 8px;
  background: var(--space-button-gradient);
  color: var(--space-text);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

#loginBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: all 0.6s ease;
}

#loginBtn:hover::before {
  left: 100%;
}

#loginBtn:hover {
  box-shadow: 0 0 20px rgba(15, 247, 255, 0.3);
  transform: translateY(-2px);
  background: linear-gradient(45deg, rgba(11, 101, 198, 0.9), rgba(15, 247, 255, 0.9));
}

#loginBtn:active {
  transform: translateY(1px);
  box-shadow: 0 0 10px rgba(15, 247, 255, 0.2);
  background: linear-gradient(45deg, rgba(11, 101, 198, 0.7), rgba(15, 247, 255, 0.7));
}

/* 响应式调?*/
@media (max-width: 480px) {
  .login-form {
    padding: 30px 20px;
    max-width: 320px;
  }
  
  .login-form h2:first-of-type {
    font-size: 24px;
  }
  
  .login-form h2 {
    font-size: 20px;
  }
}

/* 粒子效果容器 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* LOGOʽ */
.logo-container {
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loginLogo {
  max-width: 180px;
  max-height: 90px;
  object-fit: contain;
  transition: all 0.3s ease;
}

#loginLogo:hover {
  transform: scale(1.05);
}
