/* ============================================
   登录注册样式
   ============================================ */

.auth-wrap {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 77, 255, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 90%, rgba(64, 156, 255, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #1a1340 0%, #0d0a2e 50%, #06081f 100%);
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
}

.auth-logo {
  margin-top: 80px;
  text-align: center;
}

.auth-logo-icon {
  display: none;
}

.auth-logo-img {
  width: 180px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 6px 24px rgba(64, 156, 255, 0.45))
          drop-shadow(0 0 12px rgba(124, 77, 255, 0.25));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.auth-logo-title {
  display: none;
}

.auth-logo-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
}

.auth-tabs {
  margin-top: 48px;
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  transition: color 0.2s;
}

.auth-tab.active {
  color: #fff;
  font-weight: 500;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #7c4dff, #4f7cff);
  border-radius: 2px;
}

.auth-form {
  margin-top: 28px;
}

.auth-field {
  position: relative;
  margin-bottom: 18px;
}

.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-input:focus {
  border-color: rgba(124, 77, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.auth-toggle-pwd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px;
  cursor: pointer;
}

.auth-error {
  color: #ff6b6b;
  font-size: 12px;
  margin: 6px 4px 0;
  min-height: 16px;
}

.auth-submit {
  margin-top: 16px;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c4dff 0%, #4f7cff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.4);
  transition: transform 0.1s;
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-tip {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.auth-tip a {
  color: #b9a4ff;
}

.auth-agree {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.auth-agree input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  accent-color: #7c4dff;
}

.auth-agree a {
  color: #b9a4ff;
}
