/* ============ 科幻风登录/找回页 ============ */
:root {
  --gold: #d4b25a;
  --gold-bright: #f0d98a;
  --cyan: #4fd6e8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.auth-body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  background: #05070d;
  color: #e8ecf4;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 背景：深空渐变 + 光晕 */
.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 15%, rgba(79, 214, 232, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 85%, rgba(212, 178, 90, 0.14), transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(20, 30, 55, 0.6), transparent 70%),
    #05070d;
  z-index: 0;
}

/* 背景网格 */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(79, 214, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 214, 232, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 75%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}

/* 浮动光点 */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 1;
  animation: float 14s ease-in-out infinite;
}
.orb-1 { width: 320px; height: 320px; background: rgba(79, 214, 232, 0.35); top: -80px; left: -60px; }
.orb-2 { width: 380px; height: 380px; background: rgba(212, 178, 90, 0.3); bottom: -120px; right: -80px; animation-delay: -5s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

/* 卡片 */
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  padding: 44px 38px 38px;
  border-radius: 20px;
  background: rgba(13, 18, 30, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* 卡片顶部流光边 */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold-bright), transparent);
  opacity: 0.7;
}

/* Logo */
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 178, 90, 0.2), rgba(79, 214, 232, 0.14));
  border: 1px solid rgba(212, 178, 90, 0.4);
  font-size: 20px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(212, 178, 90, 0.25);
}
.auth-logo h1 {
  font-size: 22px; font-weight: 600; letter-spacing: 3px;
  background: linear-gradient(90deg, #fff, var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-logo p {
  margin-top: 8px; font-size: 12px; letter-spacing: 4px;
  color: rgba(232, 236, 244, 0.4); text-transform: uppercase;
}

/* 表单 */
.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block; font-size: 12px; letter-spacing: 1px;
  color: rgba(232, 236, 244, 0.55); margin-bottom: 8px;
}
.auth-input {
  width: 100%; height: 48px; padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff; font-size: 15px;
  transition: all 0.2s;
}
.auth-input::placeholder { color: rgba(232, 236, 244, 0.28); }
.auth-input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(79, 214, 232, 0.06);
  box-shadow: 0 0 0 3px rgba(79, 214, 232, 0.12);
}

/* 验证码行 */
.code-row { display: flex; gap: 10px; }
.code-row .auth-input { flex: 1; }
.btn-ghost {
  flex-shrink: 0;
  height: 48px; padding: 0 16px;
  background: rgba(79, 214, 232, 0.1);
  border: 1px solid rgba(79, 214, 232, 0.3);
  border-radius: 12px;
  color: var(--cyan); font-size: 13px; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-ghost:hover:not(:disabled) { background: rgba(79, 214, 232, 0.18); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

/* 主按钮 */
.btn-primary {
  width: 100%; height: 48px; margin-top: 8px;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #c79f45);
  color: #1a1206; font-size: 15px; font-weight: 600; letter-spacing: 2px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(212, 178, 90, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(212, 178, 90, 0.45); }
.btn-primary:active { transform: translateY(0); }
/* 扫光动画 */
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: sweep 3.5s ease-in-out infinite;
}
@keyframes sweep {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

/* 提示条 */
.auth-alert {
  padding: 11px 14px; border-radius: 10px;
  font-size: 13px; margin-bottom: 18px;
  border: 1px solid transparent;
}
.auth-alert.error { background: rgba(255, 86, 86, 0.1); border-color: rgba(255, 86, 86, 0.3); color: #ff9d9d; }
.auth-alert.success { background: rgba(79, 232, 154, 0.1); border-color: rgba(79, 232, 154, 0.3); color: #7ff0b8; }
.auth-alert.info { background: rgba(79, 214, 232, 0.1); border-color: rgba(79, 214, 232, 0.3); color: #a5e8f2; }

/* 底部链接 */
.auth-links {
  margin-top: 22px; text-align: center;
  font-size: 13px; color: rgba(232, 236, 244, 0.4);
}
.auth-links a { color: var(--cyan); text-decoration: none; transition: color 0.15s; }
.auth-links a:hover { color: var(--gold-bright); }
.auth-links .sep { margin: 0 10px; opacity: 0.3; }

.auth-hint {
  font-size: 12px; color: rgba(232, 236, 244, 0.4);
  margin: -8px 0 18px; line-height: 1.5;
}
.auth-hint b { color: var(--gold-bright); font-weight: 600; }
