/* Auth — Matrix header + planet video cosmic background */

.auth-screen {
  --matrix-teal: #2dd4bf;
  --matrix-text: #d1d5db;
  --matrix-muted: #9ca3af;
  --auth-text: #f8fafc;
  --auth-muted: #cbd5e1;
  --auth-footer-space: 72px;
  position: fixed;
  inset: 0;
  z-index: 15;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #000;
  padding-bottom: var(--auth-footer-space);
}

.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-planet-video {
  position: absolute;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(45, 212, 191, 0.15);
  pointer-events: none;
}

.auth-planet-video-hero {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  opacity: 0.55;
  animation: auth-hero-drift 30s ease-in-out infinite alternate;
}

@keyframes auth-hero-drift {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

.auth-planet-video-1 {
  width: min(340px, 40vw);
  height: min(340px, 40vw);
  left: -5%;
  bottom: 6%;
  border: 2px solid rgba(45, 212, 191, 0.25);
  animation: auth-planet-float 14s ease-in-out infinite;
  opacity: 0.9;
}

.auth-planet-video-2 {
  width: min(280px, 34vw);
  height: min(280px, 34vw);
  right: -3%;
  top: 12%;
  border: 2px solid rgba(59, 130, 246, 0.3);
  animation: auth-planet-float 11s ease-in-out infinite reverse;
  animation-delay: -3s;
  opacity: 0.88;
}

@keyframes auth-planet-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

.auth-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 65%, rgba(0, 0, 0, 0.8) 100%);
}

.auth-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.auth-stars {
  position: absolute;
  inset: 0;
  animation: auth-stars-twinkle 4s ease-in-out infinite alternate;
}

.auth-stars-dense {
  background-image:
    radial-gradient(1px 1px at 12px 18px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 45px 62px, rgba(255,255,255,0.65), transparent),
    radial-gradient(1.5px 1.5px at 78px 34px, rgba(255,255,255,0.95), transparent),
    radial-gradient(1px 1px at 102px 88px, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 28px 95px, rgba(200,220,255,0.75), transparent),
    radial-gradient(1px 1px at 65px 12px, rgba(255,255,255,0.8), transparent);
  background-size: 120px 120px;
  background-repeat: repeat;
  opacity: 0.9;
}

.auth-stars-1 {
  background-image:
    radial-gradient(2px 2px at 15% 20%, rgba(255,255,255,0.95), transparent),
    radial-gradient(1px 1px at 35% 55%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 60% 15%, rgba(45,212,191,0.8), transparent),
    radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.65), transparent),
    radial-gradient(2px 2px at 92% 30%, rgba(255,255,255,0.9), transparent);
  background-size: 100% 100%;
}

.auth-stars-2 {
  background-image:
    radial-gradient(1px 1px at 8% 40%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 42% 25%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 72% 60%, rgba(255,255,255,0.7), transparent);
  animation-delay: -2s;
  opacity: 0.85;
}

.auth-stars-3 {
  background-image:
    radial-gradient(2.5px 2.5px at 25% 75%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 88% 18%, rgba(168,85,247,0.75), transparent);
  animation-delay: -1s;
  opacity: 0.7;
}

@keyframes auth-stars-twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.auth-meteor {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #fff, rgba(45, 212, 191, 0.7) 40%, transparent);
  border-radius: 2px;
  opacity: 0;
  box-shadow: 0 0 12px rgba(255,255,255,0.8);
}

.auth-meteor::after {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.auth-meteor-1 { width: 150px; top: 8%; left: 8%; animation: auth-meteor-a 4.5s linear infinite; }
.auth-meteor-2 { width: 110px; top: 22%; left: 45%; animation: auth-meteor-b 6s linear infinite 1.2s; }
.auth-meteor-3 { width: 130px; top: 12%; left: 72%; animation: auth-meteor-a 5s linear infinite 2.8s; }
.auth-meteor-4 { width: 90px; top: 38%; left: 15%; animation: auth-meteor-b 7s linear infinite 0.5s; }
.auth-meteor-5 { width: 120px; top: 50%; left: 58%; animation: auth-meteor-a 5.5s linear infinite 3.8s; }
.auth-meteor-6 { width: 100px; top: 65%; left: 30%; animation: auth-meteor-b 8s linear infinite 5s; }

@keyframes auth-meteor-a {
  0% { opacity: 0; transform: translate(0, 0) rotate(-38deg); }
  4% { opacity: 1; }
  20% { opacity: 1; transform: translate(340px, 240px) rotate(-38deg); }
  24% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes auth-meteor-b {
  0% { opacity: 0; transform: translate(0, 0) rotate(-42deg); }
  4% { opacity: 1; }
  18% { opacity: 1; transform: translate(300px, 210px) rotate(-42deg); }
  22% { opacity: 0; }
  100% { opacity: 0; }
}

/* Matrix-style header */
.auth-matrix-header {
  position: relative;
  z-index: 5;
  padding: 28px 32px 12px;
  text-align: center;
}

.matrix-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-matrix-header .brand-logo-header {
  height: 18px;
}

.matrix-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.28em;
  color: var(--matrix-text);
  text-transform: uppercase;
}

.matrix-tagline {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--matrix-muted);
  text-transform: uppercase;
}

.auth-philosophy {
  position: relative;
  z-index: 5;
  max-width: 520px;
  margin: 8px auto 0;
  padding: 0 24px;
  text-align: center;
  border: none;
}

.auth-philosophy-lead {
  font-size: clamp(18px, 3.2vw, 26px);
  line-height: 1.85;
  letter-spacing: 0.12em;
  color: rgba(209, 213, 219, 0.88);
  font-weight: 400;
  margin-bottom: 20px;
}

.auth-philosophy-muted {
  font-size: clamp(14px, 2.2vw, 17px);
  line-height: 2;
  letter-spacing: 0.18em;
  color: rgba(156, 163, 175, 0.75);
  margin-bottom: 4px;
}

.auth-philosophy-highlight {
  margin-top: 16px;
  font-size: clamp(20px, 3.6vw, 30px);
  line-height: 1.7;
  letter-spacing: 0.14em;
  color: #f3f4f6;
  font-weight: 500;
  text-shadow: 0 0 40px rgba(45, 212, 191, 0.25);
}

.auth-philosophy-highlight::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--matrix-teal), transparent);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.5);
}

.auth-main {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px 24px;
  width: 100%;
  min-height: min-content;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 36px;
  border: none;
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
}

.auth-card::before {
  content: '';
  position: absolute;
  width: 220%;
  height: 220%;
  left: -60%;
  top: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(148, 163, 184, 0.15) 24deg,
    rgba(226, 232, 240, 0.55) 42deg,
    rgba(255, 255, 255, 0.98) 52deg,
    rgba(203, 213, 225, 0.85) 62deg,
    rgba(45, 212, 191, 0.35) 72deg,
    rgba(148, 163, 184, 0.12) 88deg,
    transparent 120deg,
    transparent 360deg
  );
  animation: auth-border-flow 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.auth-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 48px rgba(148, 163, 184, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 0;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

@keyframes auth-border-flow {
  0% { transform: rotate(0deg); }
  8% { transform: rotate(128deg); }
  26% { transform: rotate(148deg); }
  34% { transform: rotate(252deg); }
  56% { transform: rotate(272deg); }
  64% { transform: rotate(336deg); }
  88% { transform: rotate(352deg); }
  100% { transform: rotate(360deg); }
}

.auth-card-glow {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  animation: auth-card-glow-pulse 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes auth-card-glow-pulse {
  0%, 100% { opacity: 0.2; }
  8%, 34%, 64% { opacity: 1; }
  26%, 56%, 88% { opacity: 0.3; }
}

.auth-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(226, 232, 240, 0.72);
  border-style: solid;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
  z-index: 2;
  animation: auth-corner-shimmer 6s linear infinite;
}

.auth-corner-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; animation-delay: 0s; }
.auth-corner-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; animation-delay: -1.5s; }
.auth-corner-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; animation-delay: -3s; }
.auth-corner-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; animation-delay: -4.5s; }

@keyframes auth-corner-shimmer {
  0%, 100% {
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.08);
  }
  8%, 34%, 64% {
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
  }
  26%, 56%, 88% {
    border-color: rgba(186, 198, 214, 0.55);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
  }
}

.auth-logo { text-align: center; margin-bottom: 24px; }

.auth-logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--auth-text);
  margin: 0 0 6px;
}

.auth-logo-accent { color: var(--matrix-teal); }

.auth-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--auth-muted);
  text-transform: uppercase;
}

.auth-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--matrix-teal);
  box-shadow: 0 0 8px var(--matrix-teal);
  animation: auth-pulse-blink 2s ease-in-out infinite;
}

@keyframes auth-pulse-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--auth-muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.auth-tab.active {
  background: rgba(45, 212, 191, 0.15);
  color: var(--matrix-teal);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.register-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.login-method-tabs {
  margin-bottom: 4px;
}

#login-password-panel,
#login-phone-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-method-tab {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--auth-muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.register-method-tab.active {
  border-color: rgba(45, 212, 191, 0.45);
  color: var(--matrix-teal);
  background: rgba(45, 212, 191, 0.1);
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-forgot-link {
  border: none;
  background: transparent;
  color: var(--auth-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.auth-forgot-link:hover {
  color: var(--matrix-teal);
}

.auth-register-alt {
  margin-top: 14px;
  text-align: center;
}

.auth-email-register-link {
  border: none;
  background: transparent;
  color: var(--auth-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.auth-email-register-link:hover {
  color: var(--matrix-teal);
}

.auth-not-recommended {
  color: rgba(251, 191, 36, 0.85);
  font-size: 12px;
}

.auth-email-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-email-modal.hidden {
  display: none !important;
}

.auth-email-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.auth-email-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 28px 26px 24px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(45, 212, 191, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(45, 212, 191, 0.08);
}

.auth-email-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--auth-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-email-modal-close:hover {
  background: rgba(45, 212, 191, 0.12);
  color: var(--matrix-teal);
}

.auth-email-modal-title {
  margin: 0 0 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--auth-text);
  text-align: center;
}

.auth-email-modal-hint {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(251, 191, 36, 0.9);
  text-align: center;
}

.auth-screen .auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-screen .auth-form input {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.auth-screen .auth-form input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.auth-screen .auth-form input:focus {
  border-color: var(--matrix-teal);
  background: rgba(45, 212, 191, 0.08);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2), 0 0 24px rgba(45, 212, 191, 0.12);
}

.auth-screen .auth-form input:-webkit-autofill,
.auth-screen .auth-form input:-webkit-autofill:hover,
.auth-screen .auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(30, 41, 59, 0.9) inset;
  box-shadow: 0 0 0 1000px rgba(30, 41, 59, 0.9) inset;
  border: 1px solid rgba(45, 212, 191, 0.4);
  transition: background-color 9999s ease-out 0s;
}

.auth-code-row {
  display: flex;
  gap: 8px;
}

.auth-code-row input { flex: 1; min-width: 0; }

.auth-screen .auth-code-row .btn-secondary {
  flex-shrink: 0;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 12px;
}

.auth-screen .auth-error {
  margin-top: 12px;
  color: #fca5a5;
  font-size: 13px;
  text-align: center;
}

.auth-screen .btn-primary {
  padding: 14px 20px;
  background: var(--matrix-teal);
  color: #0f172a;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.35);
}

.auth-screen .btn-primary:hover {
  transform: translateY(-2px);
  background: #5eead4;
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.5);
}

.auth-screen .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-screen .btn-secondary {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-muted);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-screen .btn-secondary:hover {
  border-color: var(--matrix-teal);
  color: var(--matrix-teal);
  background: rgba(45, 212, 191, 0.08);
}

body:has(#auth-screen:not(.hidden)) {
  overflow: hidden;
}

body:has(#auth-screen:not(.hidden)) .site-footer {
  background: rgba(0, 0, 0, 0.8);
  border-top-color: rgba(45, 212, 191, 0.15);
  color: rgba(156, 163, 175, 0.9);
  z-index: 16;
}

body:has(#auth-screen:not(.hidden)) .site-footer a {
  color: rgba(156, 163, 175, 0.9);
}

body:has(#auth-screen:not(.hidden)) .site-footer a:hover {
  color: var(--matrix-teal);
}

@media (max-width: 640px) {
  .auth-philosophy {
    padding: 0 16px;
    margin-bottom: 4px;
  }

  .auth-philosophy-lead {
    letter-spacing: 0.08em;
    margin-bottom: 14px;
  }

  .auth-philosophy-highlight {
    letter-spacing: 0.1em;
  }

  .auth-planet-video-1,
  .auth-planet-video-2 {
    opacity: 0.5;
    transform: scale(0.75);
  }

  .auth-matrix-header {
    padding: 20px 16px 8px;
  }

  .matrix-brand {
    font-size: 18px;
    letter-spacing: 0.2em;
  }
}

/* 笔记本矮屏（≤950px 视口高度）：缩小登录框，顶部文案保留；台式机不受影响 */
@media (max-height: 950px) {
  .auth-matrix-header {
    padding: 14px 20px 4px;
  }

  .matrix-tagline {
    margin-top: 4px;
    font-size: 11px;
  }

  .auth-philosophy {
    margin-top: 2px;
    padding: 0 20px;
  }

  .auth-philosophy-lead {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.6;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
  }

  .auth-philosophy-muted {
    font-size: 12px;
    line-height: 1.55;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
  }

  .auth-philosophy-highlight {
    margin-top: 6px;
    font-size: clamp(16px, 2.4vw, 20px);
    line-height: 1.5;
    letter-spacing: 0.08em;
  }

  .auth-philosophy-highlight::after {
    margin-top: 8px;
    width: 40px;
  }

  .auth-main {
    padding: 6px 16px 16px;
  }

  /* —— 登录框整体缩小 —— */
  .auth-card {
    max-width: 360px;
    padding: 20px 24px 18px;
    border-radius: 14px;
  }

  .auth-card::after {
    border-radius: 13px;
  }

  .auth-corner {
    width: 14px;
    height: 14px;
  }

  .auth-corner-tl { top: 10px; left: 10px; }
  .auth-corner-tr { top: 10px; right: 10px; }
  .auth-corner-bl { bottom: 10px; left: 10px; }
  .auth-corner-br { bottom: 10px; right: 10px; }

  .auth-logo {
    margin-bottom: 10px;
  }

  .auth-logo h1 {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .auth-tagline {
    font-size: 9px;
    gap: 6px;
    letter-spacing: 0.12em;
  }

  .auth-pulse {
    width: 5px;
    height: 5px;
  }

  .auth-tabs {
    margin-bottom: 10px;
    padding: 3px;
    border-radius: 8px;
  }

  .auth-tab {
    padding: 7px 8px;
    font-size: 12px;
    border-radius: 6px;
  }

  .register-method-tabs {
    margin-bottom: 8px;
    gap: 6px;
  }

  .register-method-tab {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 6px;
  }

  .auth-screen .auth-form {
    gap: 8px;
  }

  .auth-screen .auth-form input {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  .auth-screen .btn-primary {
    padding: 10px 16px;
    font-size: 13px;
  }

  .auth-screen .btn-secondary {
    padding: 8px 12px;
    font-size: 11px;
  }

  .auth-screen .auth-code-row .btn-secondary {
    padding: 0 10px;
    font-size: 11px;
  }

  .auth-screen .auth-error {
    margin-top: 8px;
    font-size: 12px;
  }

  .auth-wechat-wrap {
    margin-top: 10px;
  }

  .auth-divider {
    margin-bottom: 8px;
    gap: 8px;
    font-size: 11px;
  }

  .auth-wechat-label {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .wechat-login-container {
    min-height: 140px;
  }

  .wechat-login-container iframe {
    max-width: 190px;
    height: 140px !important;
  }
}

@media (max-height: 780px) {
  .auth-matrix-header {
    padding: 10px 16px 2px;
  }

  .auth-philosophy-lead {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .auth-philosophy-muted {
    font-size: 11px;
  }

  .auth-philosophy-highlight {
    font-size: 14px;
    margin-top: 4px;
  }

  .auth-card {
    max-width: 340px;
    padding: 16px 20px 14px;
  }

  .auth-logo h1 {
    font-size: 18px;
  }

  .auth-tabs {
    margin-bottom: 8px;
  }

  .auth-screen .auth-form input {
    padding: 8px 11px;
    font-size: 12px;
  }

  .auth-screen .btn-primary {
    padding: 9px 14px;
    font-size: 12px;
  }

  .wechat-login-container {
    min-height: 128px;
  }

  .wechat-login-container iframe {
    max-width: 170px;
    height: 128px !important;
  }
}

.auth-wechat-wrap {
  margin-top: 18px;
}

.auth-wechat-label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
}

.wechat-login-container {
  display: flex;
  justify-content: center;
  min-height: 196px;
}

.wechat-login-container iframe {
  width: 100% !important;
  max-width: 220px;
  height: 196px !important;
  border: none !important;
  background: transparent;
}

.wechat-bind-panel {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.wechat-bind-panel iframe {
  width: 100% !important;
  max-width: 280px;
  height: 220px !important;
  border: none !important;
}
