/* ============================================
   登录/注册页面专用样式
   ============================================ */

/* 全屏登录背景 */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6366f1 100%);
  position: relative;
  overflow: hidden;
}

/* 背景装饰圆 */
.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #ffffff;
}

.auth-bg-circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  animation: floatCircle 15s ease-in-out infinite;
}

.auth-bg-circle-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation: floatCircle 12s ease-in-out infinite reverse;
}

.auth-bg-circle-3 {
  width: 250px;
  height: 250px;
  top: 40%;
  left: 60%;
  animation: floatCircle 18s ease-in-out infinite;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* 居中卡片 */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

/* 卡片主体 */
.auth-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px 36px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: cardAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 品牌区域 */
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 52px;
  margin-bottom: 12px;
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

/* 错误提示 */
.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  animation: shakeError 0.4s ease-out;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 表单 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 输入组 */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .input-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.2s;
}

.input-group:focus-within .input-icon {
  transform: scale(1.15);
}

.input-group input {
  width: 100%;
  padding: 14px 46px 14px 44px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  background: #f9fafb;
  transition: all 0.25s ease;
  color: var(--text-primary);
  font-family: inherit;
}

.input-group input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-group input::placeholder {
  color: #9ca3af;
}

/* 密码显示/隐藏按钮 */
.toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  opacity: 0.5;
  transition: all 0.2s;
}

.toggle-pwd:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* 密码强度指示条 */
.pwd-strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: -10px;
}

.pwd-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.pwd-strength-text {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  height: 18px;
}

/* 提交按钮 */
.auth-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  margin-top: 8px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.auth-btn:active {
  transform: translateY(0);
}

/* 底部操作区 */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: #6366f1;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-footer a:hover {
  color: #764ba2;
}

/* 响应式适配 */
@media (max-width: 480px) {
  .auth-card {
    padding: 36px 24px 28px;
    border-radius: 20px;
  }

  .auth-logo { font-size: 42px; }
  .auth-title { font-size: 22px; }
}
