/* ===== 用户端登录/注册（对标酷空云分栏风格） ===== */
:root {
  --auth-primary: #1677ff;
  --auth-primary-hover: #4096ff;
  --auth-primary-dark: #0958d9;
  --auth-text: #1f1f1f;
  --auth-muted: #8c8c8c;
  --auth-border: #e5e7eb;
  --auth-bg: #f5f8fc;
}

* { box-sizing: border-box; }

body.auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  background: var(--auth-bg);
  color: var(--auth-text);
}

/* ===== 分栏布局 ===== */
.auth-layout {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.auth-page-premium .auth-layout::before {
  display: none;
}

.auth-page:not(.auth-page-premium) .auth-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(245,248,252,.9) 50%, rgba(240,247,255,.85) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(22, 119, 255, 0.03) 79px,
      rgba(22, 119, 255, 0.03) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(22, 119, 255, 0.03) 79px,
      rgba(22, 119, 255, 0.03) 80px
    );
  pointer-events: none;
}

/* ===== 酷空云分栏 + IDC 企业蓝气质 ===== */
.auth-page-premium {
  --auth-primary: #1565c0;
  --auth-primary-hover: #1976d2;
  --auth-primary-dark: #0d47a1;
  --auth-accent: #1565c0;
  --auth-text: #1f1f1f;
  --auth-muted: #8c8c8c;
  --auth-bg: #020a18;
  background: var(--auth-bg);
}

/* 全屏 IDC 背景 */
.auth-page-premium .auth-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #020a18 url('/static/auth-hero-idc-bg.svg') center / cover no-repeat;
}

.auth-page-premium .auth-page-bg-glow {
  position: absolute;
  bottom: 22%;
  left: 28%;
  width: min(520px, 42vw);
  height: min(520px, 42vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.26) 0%, rgba(0, 150, 220, 0.08) 45%, transparent 70%);
  filter: blur(10px);
  animation: authHeroGlow 5s ease-in-out infinite;
}

.auth-page-premium .auth-hero {
  flex: 1;
  background: transparent;
  overflow: hidden;
  padding: 32px 48px 24px;
  position: relative;
  z-index: 1;
}

@keyframes authHeroGlow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.auth-page-premium .auth-hero-brand {
  color: #fff;
  position: relative;
  z-index: 3;
}

.auth-page-premium .auth-hero-logo:not(:has(img)) {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4fc3f7, #1565c0);
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 200, 255, 0.35);
}

.auth-page-premium .auth-hero-name strong {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 2px 12px rgba(0, 180, 255, 0.25);
}

.auth-page-premium .auth-hero-tagline {
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: rgba(180, 220, 255, 0.75);
  letter-spacing: .08em;
  margin-top: 4px;
}

.auth-page-premium .auth-hero-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.auth-page-premium .auth-hero-logo-2,
.auth-page-premium .auth-login-desc {
  display: none !important;
}


.auth-page-premium .auth-login-desc {
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-page-premium .auth-hero-scene {
  align-items: flex-end;
  padding-bottom: 8%;
  position: relative;
  z-index: 2;
}

.auth-cube-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
  width: 320px;
  height: 280px;
}

.auth-platform-base {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 200px;
  height: 200px;
  margin-left: -100px;
  background: rgba(0, 40, 80, 0.35);
  transform: rotateX(68deg) rotateZ(45deg);
  transform-style: preserve-3d;
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.2),
    inset 0 0 20px rgba(0, 180, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 2px;
  z-index: 0;
}

.auth-glass-cube {
  position: relative;
  width: 200px;
  height: 200px;
  z-index: 2;
  transform: translateY(-36px);
  animation: none;
}

.auth-glass-cube::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(255,255,255,.08) 0%, rgba(0,180,255,.12) 100%);
  border: 2px solid rgba(255,255,255,.75);
  box-shadow:
    inset 0 0 0 1px rgba(0,212,255,.25),
    0 0 40px rgba(0, 212, 255, 0.35),
    0 20px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.auth-glass-cube::after {
  display: none;
}

.auth-page-premium .auth-globe-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  animation: authGlobeFloat 5s ease-in-out infinite;
}

.auth-page-premium .auth-globe {
  background:
    radial-gradient(circle at 32% 28%, #80deea 0%, #00bcd4 30%, #1565c0 55%, #0d47a1 78%, #012a4a 100%);
  box-shadow:
    inset -16px -16px 32px rgba(0, 0, 0, .2),
    inset 10px 10px 24px rgba(255, 255, 255, .2),
    0 0 40px rgba(0, 212, 255, 0.45);
}

.auth-page-premium .auth-globe-ring {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

.auth-page-premium .auth-grid-floor {
  width: 640px;
  height: 480px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(78deg);
  background:
    linear-gradient(rgba(0, 212, 255, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, .2) 1px, transparent 1px);
  background-size: 36px 36px;
  border-radius: 0;
  opacity: .85;
  box-shadow: 0 0 60px rgba(0, 200, 255, 0.15);
}

.auth-page-premium .auth-glass {
  background: linear-gradient(135deg, rgba(79,195,247,.35), rgba(21,101,192,.15));
  border: 1px solid rgba(0, 212, 255, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 180, 255, 0.2), 0 0 12px rgba(0, 212, 255, 0.15);
  border-radius: 4px;
}

.auth-page-premium .auth-glass-1 {
  width: 64px; height: 64px;
  top: 22%; left: 12%;
  transform: rotate(-8deg);
}

.auth-page-premium .auth-glass-2 {
  width: 48px; height: 72px;
  top: 38%; right: 14%;
  transform: rotate(12deg);
}

.auth-page-premium .auth-glass-3 {
  width: 40px; height: 40px;
  bottom: 28%; left: 20%;
  transform: rotate(18deg);
}

.auth-page-premium .auth-glass-4 {
  width: 56px; height: 36px;
  top: 30%; right: 22%;
  transform: rotate(-15deg);
}

.auth-page-premium .auth-hero-platform {
  display: none;
}

.auth-main-bg {
  position: absolute;
  inset: 0;
  background: #121a28;
  overflow: hidden;
  z-index: 0;
}

.auth-page:not(.auth-page-premium) .auth-main-bg::before {
  content: '';
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -5%;
  height: 90%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.04) 0,
    rgba(255,255,255,.04) 52px,
    rgba(26,74,140,.18) 52px,
    rgba(26,74,140,.18) 104px,
    rgba(15,26,46,.85) 104px,
    rgba(15,26,46,.85) 156px
  );
  transform: perspective(480px) rotateX(16deg);
  transform-origin: center bottom;
}

.auth-page:not(.auth-page-premium) .auth-main-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(201, 169, 98, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(18,26,40,.92) 0%, rgba(15,22,36,.75) 42%, rgba(10,18,32,.55) 100%);
}

/* 右侧登录区：透明，透出全屏背景 */
.auth-page-premium .auth-main-bg {
  display: none;
}

.auth-page-premium .auth-main-bg::before,
.auth-page-premium .auth-main-bg::after {
  display: none;
}

.auth-page-premium .auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 64px;
  min-width: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.auth-page-premium .auth-main::before {
  display: none;
}

.auth-page-premium .auth-card-v2 {
  width: 100%;
  max-width: 480px;
  margin: 0;
  padding: 40px 44px 36px;
  border-radius: 12px;
  background: #fff;
  border: none;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
}

.auth-page-premium .auth-card-v2::before {
  display: none;
}

.auth-page-premium .auth-tabs-row {
  margin-bottom: 24px;
}

.auth-page-premium .auth-tabs {
  gap: 32px;
}

.auth-page-premium .auth-tabs button {
  font-size: 16px;
  padding-bottom: 10px;
  color: #999;
}

.auth-page-premium .auth-tabs button.active {
  color: var(--auth-primary);
  font-weight: 600;
}

.auth-page-premium .auth-tabs button.active::after {
  height: 2px;
  background: var(--auth-primary);
}

.auth-page-premium .auth-switch-link {
  font-size: 13px;
  color: #999;
}

.auth-page-premium .auth-switch-link b {
  color: var(--auth-primary);
  font-weight: 500;
}

.auth-page-premium .auth-field {
  margin-bottom: 20px;
}

.auth-page-premium .auth-field label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.auth-page-premium .auth-field input,
.auth-page-premium .auth-phone-row select {
  height: 44px;
  border-radius: 6px;
  border: 1px solid #dcdfe6;
  background: #fff;
}

.auth-page-premium .auth-phone-row .auth-dial {
  border-radius: 6px 0 0 6px;
  background: #fafafa;
  border-right: none;
}

.auth-page-premium .auth-phone-row input {
  border-radius: 0 6px 6px 0;
}

.auth-page-premium .auth-field input:focus,
.auth-page-premium .auth-phone-row select:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.1);
  outline: none;
}

.auth-page-premium .auth-extra {
  margin: -4px 0 20px;
}

.auth-page-premium .auth-extra a {
  color: var(--auth-primary);
}

.auth-page-premium .click-captcha {
  margin: 4px 0 20px;
}

.auth-page-premium .click-captcha .cc-head {
  font-size: 13px;
  color: #666;
}

.auth-page-premium .click-captcha .cc-board {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.auth-page-premium .btn-auth-submit {
  margin-top: 4px;
  position: relative;
  z-index: 1;
  height: 46px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  background: var(--auth-primary);
  border: none;
  box-shadow: none;
  color: #fff;
}

.auth-page-premium .btn-auth-submit:hover {
  background: var(--auth-primary-hover);
}

.auth-page-premium .auth-footer-bar {
  background: transparent;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  padding: 14px 48px;
  justify-content: center;
  color: rgba(180, 210, 235, 0.75);
  z-index: 2;
}

.auth-page-premium .auth-footer-center a {
  color: #4fc3f7;
}

.auth-page-premium .auth-footer-copy {
  color: rgba(160, 190, 220, 0.65);
}

.auth-page-premium .auth-float-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--auth-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.auth-page-premium .auth-float-btn:hover {
  background: #f5f8fc;
  color: var(--auth-primary-hover);
}

/* 左侧视觉区 */
.auth-hero {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  min-width: 0;
  z-index: 1;
}

.auth-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--auth-text);
  z-index: 2;
}

.auth-hero-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--auth-primary), #36cfc9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.auth-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-hero-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.auth-hero-name strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--auth-primary-dark);
}

.auth-hero-name small {
  font-size: 12px;
  color: var(--auth-muted);
  font-weight: 400;
  margin-top: 2px;
}

.auth-login-desc {
  position: relative;
  z-index: 2;
  margin: 20px 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
}

.auth-hero-logo-2 {
  position: relative;
  z-index: 2;
  margin-top: 16px;
}

.auth-hero-logo-2 img {
  max-height: 40px;
  opacity: .9;
}

.auth-hero-scene {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  perspective: 900px;
}

.auth-grid-floor {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%) rotateX(72deg);
  background:
    linear-gradient(rgba(22,119,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,119,255,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 50%;
  opacity: .6;
}

.auth-globe-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  z-index: 2;
  animation: authGlobeFloat 5s ease-in-out infinite;
}

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

.auth-globe {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #69b1ff 0%, #1677ff 35%, #0958d9 70%, #003a8c 100%);
  box-shadow:
    inset -20px -20px 40px rgba(0, 0, 0, 0.15),
    inset 12px 12px 30px rgba(255, 255, 255, 0.25),
    0 24px 48px rgba(22, 119, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.auth-globe::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,.12) 18px,
      rgba(255,255,255,.12) 19px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,.08) 18px,
      rgba(255,255,255,.08) 19px
    );
}

.auth-globe-ring {
  position: absolute;
  inset: -18px;
  border: 2px solid rgba(22, 119, 255, 0.2);
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: authRingSpin 12s linear infinite;
}

@keyframes authRingSpin {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to { transform: rotateX(70deg) rotateZ(360deg); }
}

.auth-hero-platform {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(230,240,255,.6));
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(22, 119, 255, 0.15);
  z-index: 1;
}

.auth-glass {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.15));
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.08);
}

.auth-glass-1 {
  width: 56px;
  height: 56px;
  top: 28%;
  left: 18%;
  transform: rotate(-12deg);
  animation: authGlassFloat 6s ease-in-out infinite;
}

.auth-glass-2 {
  width: 44px;
  height: 44px;
  top: 42%;
  right: 16%;
  transform: rotate(8deg);
  animation: authGlassFloat 7s ease-in-out infinite 0.5s;
}

.auth-glass-3 {
  width: 36px;
  height: 36px;
  bottom: 32%;
  left: 22%;
  transform: rotate(20deg);
  animation: authGlassFloat 5.5s ease-in-out infinite 1s;
}

@keyframes authGlassFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}

.auth-glass-1 { --r: -12deg; }
.auth-glass-2 { --r: 8deg; }
.auth-glass-3 { --r: 20deg; }

/* 右侧登录区 */
.auth-main {
  flex: 0 0 min(480px, 46vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 64px 40px 20px;
  position: relative;
  z-index: 2;
}

.auth-card-v2 {
  width: 100%;
  max-width: 400px;
  margin-right: 36px;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 36px 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-tabs {
  display: flex;
  gap: 28px;
}

.auth-tabs button {
  background: none;
  border: none;
  padding: 0 0 10px;
  font-size: 16px;
  color: var(--auth-muted);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: color .2s;
}

.auth-tabs button:hover { color: var(--auth-text); }
.auth-tabs button.active {
  color: var(--auth-primary);
  font-weight: 600;
}

.auth-tabs button.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--auth-primary);
  border-radius: 1px;
}

.auth-switch-link {
  font-size: 13px;
  color: var(--auth-muted);
  text-decoration: none;
  white-space: nowrap;
}

.auth-switch-link b {
  color: var(--auth-primary);
  font-weight: 500;
}

.auth-switch-link:hover b { text-decoration: underline; }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-field { margin-bottom: 22px; }

.auth-field label {
  display: block;
  font-size: 14px;
  color: var(--auth-text);
  margin-bottom: 8px;
  font-weight: 500;
}

.auth-field input,
.auth-phone-row select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--auth-text);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  background: #fff;
}

.auth-field input::placeholder { color: #bfbfbf; }

.auth-field input:focus,
.auth-phone-row select:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.auth-phone-row {
  display: flex;
  gap: 0;
}

.auth-phone-row .auth-dial {
  flex: 0 0 118px;
  width: 118px;
  border-radius: 6px 0 0 6px;
  border-right: none;
  color: var(--auth-text);
  cursor: pointer;
  font-size: 13px;
  padding: 0 10px;
  appearance: none;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238c8c8c' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;
}

.auth-phone-row input {
  flex: 1;
  min-width: 0;
  border-radius: 0 6px 6px 0;
}

.auth-row-2 {
  display: flex;
  gap: 10px;
}

.auth-row-2 input { flex: 1; }

.auth-row-2 .btn-code {
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--auth-primary);
  background: #fff;
  color: var(--auth-primary);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all .2s;
}

.auth-row-2 .btn-code:hover { background: #e6f4ff; }
.auth-row-2 .btn-code:disabled { opacity: .5; cursor: not-allowed; }

.auth-extra {
  display: flex;
  justify-content: space-between;
  margin: -6px 0 22px;
  font-size: 13px;
}

.auth-extra a {
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-extra a:hover { color: var(--auth-primary); }

.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--auth-muted);
  line-height: 1.5;
}

.auth-agree input { margin-top: 3px; accent-color: var(--auth-primary); }
.auth-agree a { color: var(--auth-primary); text-decoration: none; }

.btn-auth-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: var(--auth-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, box-shadow .2s, transform .15s;
  letter-spacing: 0.05em;
}

.btn-auth-submit:hover {
  background: var(--auth-primary-hover);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.35);
}

.btn-auth-submit:active { transform: scale(0.99); }
.btn-auth-submit:disabled { opacity: .6; cursor: not-allowed; }

.auth-social {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--auth-border);
  text-align: center;
}

.auth-social p {
  font-size: 13px;
  color: var(--auth-muted);
  margin-bottom: 16px;
}

.auth-social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.auth-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--auth-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.auth-social-icons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
}

.auth-msg {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.auth-msg.error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.auth-msg.ok { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }

/* 底部 */
.auth-footer-bar {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding: 14px 40px;
  font-size: 12px;
  color: var(--auth-muted);
  flex-shrink: 0;
}

.auth-footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  text-align: center;
}

.auth-footer-center a {
  color: var(--auth-primary);
  text-decoration: none;
  white-space: nowrap;
}

.auth-footer-center a:hover {
  text-decoration: underline;
}

.auth-footer-copy {
  color: var(--auth-muted);
  white-space: nowrap;
}

/* 右下角浮动按钮 */
.auth-float-btn {
  position: fixed;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--auth-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  color: var(--auth-primary);
  z-index: 100;
  transition: transform .2s, box-shadow .2s;
}

.auth-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.15);
}

.auth-float-home { bottom: 88px; }
.auth-float-help { bottom: 32px; }

/* ===== 旧版顶栏布局（注册页等兼容） ===== */
.auth-topbar {
  position: relative;
  z-index: 10;
  height: 56px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  flex-shrink: 0;
}

.auth-topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--auth-text);
  font-size: 18px;
  font-weight: 700;
}

.auth-topbar .brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--auth-primary), #36cfc9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.auth-topbar .back-home {
  color: var(--auth-muted);
  font-size: 14px;
  text-decoration: none;
}

.auth-topbar .back-home:hover { color: var(--auth-primary); }

.auth-scene {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--auth-bg);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-page-premium .auth-hero {
    flex: 0 0 auto;
    padding: 24px 24px 0;
    min-height: 240px;
  }

  .auth-page-premium .auth-glass-cube {
    width: 160px;
    height: 160px;
    transform: translateY(-24px);
  }

  .auth-page-premium .auth-platform-base {
    width: 150px;
    height: 150px;
    margin-left: -75px;
  }

  .auth-page-premium .auth-globe-wrap {
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
  }

  .auth-page-premium .auth-main {
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 32px;
  }

  .auth-main-bg::before {
    transform: perspective(360px) rotateX(12deg);
  }

  .auth-page-premium .auth-card-v2 {
    max-width: 100%;
    padding: 28px 20px 24px;
  }

  .auth-hero {
    flex: 0 0 auto;
    padding: 24px 24px 0;
    min-height: auto;
  }

  .auth-hero-scene {
    min-height: 180px;
    max-height: 220px;
  }

  .auth-page-premium .auth-hero-scene {
    min-height: 220px;
    max-height: 280px;
  }

  .auth-globe-wrap {
    width: 120px;
    height: 120px;
  }

  .auth-glass { display: none; }

  .auth-page-premium .auth-glass { display: block; opacity: .6; }

  .auth-main {
    flex: 1;
    padding: 24px 20px 32px;
  }

  .auth-page-premium .auth-main {
    padding: 24px 16px 32px;
  }

  .auth-page-premium .auth-card-v2 {
    padding: 28px 20px 24px;
    border-radius: 12px;
  }

  .auth-footer-center {
    flex-direction: column;
    gap: 6px 12px;
    padding: 16px 20px;
  }

  .auth-footer-copy,
  .auth-footer-center a {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .auth-card-v2 {
    padding: 28px 20px 24px;
    border-radius: 10px;
  }

  .auth-tabs-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-phone-row .auth-dial {
    flex: 0 0 100px;
    width: 100px;
    font-size: 12px;
  }
}
