/* ── 全屏沉浸式登录 ──────────────────────────────────────── */
.hd { display: none; }

body {
  background: #0c0b09;
  overflow: hidden;
}

@media (max-width: 768px) {
  body { overflow: auto; }
}

/* ── 全屏双栏布局 ─────────────────────────────────────────── */
.auth-fullpage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  position: relative;
}

/* ── 左侧氛围面板 ─────────────────────────────────────────── */
.auth-atm {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  background: #0c0b09;
  overflow: hidden;
}

/* 主光晕 */
.auth-atm::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -25%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(196, 145, 46, 0.13) 0%, transparent 68%);
  pointer-events: none;
  animation: glow-breathe 5s ease-in-out infinite;
}

/* 底部辅助光晕 */
.auth-atm::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(196, 145, 46, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

/* 背景装饰汉字 */
.auth-bg-glyph {
  position: absolute;
  right: -2%;
  top: 8%;
  font-size: 320px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  font-family: 'Noto Sans SC', sans-serif;
  pointer-events: none;
  line-height: 1;
  user-select: none;
  letter-spacing: -0.05em;
}

/* 细竖分隔线 */
.auth-rule {
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.05) 20%,
    rgba(255,255,255,0.05) 80%,
    transparent 100%);
}

/* Logo */
.auth-logotype {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  animation: atm-rise 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

.auth-logotype-gem {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #c8973e 0%, #9a6e28 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(196, 145, 46, 0.35), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.auth-logotype-gem svg { color: #fff; display: block; }

.auth-logotype-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-logotype-name {
  font-size: 15px;
  font-weight: 650;
  color: #e8e1d4;
  letter-spacing: -0.015em;
  line-height: 1;
}

.auth-logotype-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: #4e4840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
  line-height: 1;
}

/* 主标题区 */
.auth-headline-zone {
  position: relative;
  z-index: 1;
  animation: atm-rise 0.5s cubic-bezier(0.4,0,0.2,1) both;
  animation-delay: 0.08s;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid rgba(196, 145, 46, 0.22);
  border-radius: 100px;
  background: rgba(196, 145, 46, 0.07);
  color: #c4912e;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 22px;
}

.auth-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4912e;
  box-shadow: 0 0 8px rgba(196, 145, 46, 0.8);
  flex-shrink: 0;
  animation: dot-blink 2.5s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.auth-headline {
  font-size: 50px;
  font-weight: 600;
  color: #ede5d4;
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  font-family: 'Noto Sans SC', var(--sans);
}

.auth-headline em {
  font-style: normal;
  color: #c8973e;
  position: relative;
}

.auth-headline em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8973e, rgba(200, 151, 62, 0.3));
  border-radius: 2px;
}

.auth-desc {
  font-size: 13.5px;
  color: #7a6e62;
  line-height: 1.8;
  max-width: 320px;
  letter-spacing: -0.005em;
}

/* 底部数据条 */
.auth-stats {
  display: flex;
  position: relative;
  z-index: 1;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  animation: atm-rise 0.5s cubic-bezier(0.4,0,0.2,1) both;
  animation-delay: 0.16s;
}

.auth-stat {
  flex: 1;
  padding-right: 22px;
}

.auth-stat + .auth-stat {
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,0.07);
}

.auth-stat-num {
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  color: #e8e1d4;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
  line-height: 1.1;
}

.auth-stat-lbl {
  margin-top: 5px;
  font-size: 11.5px;
  color: #6a6258;
  letter-spacing: -0.005em;
}

/* ── 右侧表单面板 ────────────────────────────────────────── */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #0c0b09;
  position: relative;
}

/* 右侧辅助光 */
.auth-form-side::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 145, 46, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* 浮起的白色表单卡片 */
.auth-card-float {
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border-radius: 22px;
  padding: 38px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 12px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
  animation: card-float-in 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  animation-delay: 0.12s;
}

@keyframes card-float-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 卡片顶栏 */
.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.auth-card-stamp {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--surface-2);
}

.auth-card-dots {
  display: flex;
  gap: 5px;
}

.auth-card-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
}

/* 表单标题 */
.auth-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 5px;
  line-height: 1.15;
}

.auth-card-sub {
  font-size: 13.5px;
  color: var(--text-3);
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}

/* 字段 */
.auth-fields { display: flex; flex-direction: column; gap: 16px; }

.auth-ff { display: flex; flex-direction: column; gap: 6px; }

.auth-lbl {
  font-size: 12px;
  font-weight: 550;
  color: var(--text-2);
  letter-spacing: -0.005em;
}

.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  letter-spacing: -0.005em;
}

.auth-input::placeholder { color: var(--text-5); }
.auth-input:hover { border-color: var(--border-3); }

.auth-input:focus {
  border-color: #c8973e;
  box-shadow: 0 0 0 3.5px rgba(196, 145, 46, 0.11);
  background: #fffdf9;
}

/* 提交按钮 */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 20px;
  background: #0f0e0c;
  color: #fff;
  border: 1px solid #0f0e0c;
  border-radius: 11px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.06s;
  letter-spacing: -0.012em;
  margin-top: 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.06) inset;
  position: relative;
  overflow: hidden;
}

.auth-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,145,46,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.auth-btn:hover {
  background: #1c1b18;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.06) inset;
}

.auth-btn:hover::before { opacity: 1; }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.auth-btn-arrow {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-btn:hover .auth-btn-arrow { transform: translateX(3px); }

/* 消息提示 */
.auth-feedback {
  min-height: 16px;
  font-size: 12.5px;
  color: var(--success);
  margin-top: 13px;
  letter-spacing: -0.005em;
  text-align: center;
  line-height: 1.4;
}

.auth-feedback.err { color: var(--danger); }

/* 注册链接 */
.auth-register-row {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
  letter-spacing: -0.005em;
}

.auth-register-row a {
  color: #b8862e;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-register-row a:hover {
  color: #c8973e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── 噪点纹理叠加 ──────────────────────────────────────── */
.auth-grain {
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ── 入场动画 ─────────────────────────────────────────── */
@keyframes atm-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 响应式 ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .auth-fullpage {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }
  .auth-atm {
    padding: 32px 28px 28px;
    min-height: auto;
    gap: 32px;
  }
  .auth-bg-glyph { font-size: 200px; opacity: 0.5; }
  .auth-headline { font-size: 36px; }
  .auth-rule { display: none; }
  .auth-form-side {
    padding: 28px 20px 44px;
    align-items: flex-start;
    padding-top: 0;
  }
  .auth-card-float { max-width: 100%; }
}
