/**
 * 前台认证页（登录 / 注册 / 找回密码 / 微信绑定）
 * 主色跟随站点外观设计（--auth-primary 等变量）
 */

:root {
  --auth-ink: #101828;
  --auth-muted: #667085;
  --auth-line: #e4e7ec;
  --auth-surface: #f8fafc;
  --auth-panel: #ffffff;
  --auth-shadow: 0 28px 64px rgba(16, 40, 72, 0.1), 0 6px 18px rgba(16, 40, 72, 0.05);
  --auth-wechat: #07c160;
  --auth-success: #198754;
  --auth-font: var(--site-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif);
  --auth-display: var(--site-font-heading, var(--site-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif));
}

body.auth-layout main {
  max-width: none;
  overflow-x: clip;
  padding: 0;
  min-height: calc(100vh - var(--site-nav-height, 90px) - 72px);
  display: flex;
  flex-direction: column;
}

body.auth-layout main > .auth-shell {
  flex: 1 1 auto;
  width: 100%;
}

body.auth-layout footer {
  margin-top: 0;
}

.auth-shell {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--site-nav-height, 90px) - 72px);
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
  font-family: var(--auth-font);
  background:
    radial-gradient(ellipse 68% 50% at 8% 12%, var(--auth-glow-strong, color-mix(in srgb, var(--auth-primary) 12%, transparent)), transparent 58%),
    radial-gradient(ellipse 50% 42% at 92% 88%, var(--auth-glow-accent, color-mix(in srgb, var(--auth-primary-deep) 8%, transparent)), transparent 52%),
    linear-gradient(168deg, #eef3f9 0%, #f7f9fc 42%, #ffffff 100%);
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--auth-glow-subtle, color-mix(in srgb, var(--auth-primary) 3.5%, transparent)) 1px, transparent 1px),
    linear-gradient(90deg, var(--auth-glow-subtle, color-mix(in srgb, var(--auth-primary) 3.5%, transparent)) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 40%, #000 18%, transparent 78%);
}

.auth-stage {
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  background: var(--auth-panel);
  border: 1px solid rgba(228, 231, 236, 0.95);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  min-height: 560px;
  animation: auth-panel-in 0.45s ease both;
}

.auth-panel--narrow {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  max-width: 880px;
  margin-inline: auto;
  min-height: 480px;
}

.auth-panel--wide {
  max-width: 960px;
  margin-inline: auto;
}

@keyframes auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— 左侧品牌区 —— */
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.6rem 2.35rem;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    linear-gradient(165deg, var(--auth-primary) 0%, var(--auth-primary-deep) 46%, var(--auth-primary-deep) 100%);
  overflow: hidden;
}

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 28% 72% 45% 55% / 40% 35% 65% 60%;
  pointer-events: none;
}

.auth-aside::before {
  width: 280px;
  height: 280px;
  top: -90px;
  right: -70px;
  background: rgba(255, 255, 255, 0.1);
  animation: auth-blob 14s ease-in-out infinite alternate;
}

.auth-aside::after {
  width: 200px;
  height: 200px;
  bottom: -70px;
  left: -50px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  animation: auth-blob 18s ease-in-out infinite alternate-reverse;
}

@keyframes auth-blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-12px, 10px) scale(1.06); }
}

.auth-aside--activate {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
    linear-gradient(160deg, #157347 0%, #146c43 50%, #0f5132 100%);
}

.auth-aside--wechat {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
    linear-gradient(160deg, #07c160 0%, #06ad56 55%, #05964a 100%);
}

.auth-aside-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.auth-aside-copy {
  position: relative;
  z-index: 1;
  margin-top: 2.4rem;
}

.auth-aside-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--auth-display);
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.auth-aside-copy p {
  margin: 0;
  max-width: 28ch;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.auth-aside-points {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.auth-aside-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-aside-points i {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
}

.auth-aside-foot {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

/* —— 右侧表单区 —— */
.auth-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2.35rem 1.9rem;
  background: var(--auth-panel);
}

.auth-main--wechat-switch {
  padding-top: 2.5rem;
}

/* 右上角扫码 / 账号切换（淘宝式角标） */
.auth-corner-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: visible;
}

.auth-corner-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(225deg, rgba(7, 193, 96, 0.18) 0 50%, transparent 50.5%);
  transition: background 0.2s ease;
}

.auth-corner-switch:hover::before,
.auth-corner-switch[aria-pressed="true"]::before {
  background:
    linear-gradient(225deg, rgba(7, 193, 96, 0.28) 0 50%, transparent 50.5%);
}

.auth-corner-switch-face {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-wechat);
  font-size: 1.2rem;
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-corner-switch-face--account {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.auth-corner-switch[aria-pressed="true"] .auth-corner-switch-face--qr {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.auth-corner-switch[aria-pressed="true"] .auth-corner-switch-face--account {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.auth-corner-switch-tip {
  position: absolute;
  top: 14px;
  right: 58px;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-corner-switch-tip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  margin-top: -4px;
  border: 4px solid transparent;
  border-left-color: #101828;
}

.auth-corner-switch:hover .auth-corner-switch-tip,
.auth-corner-switch:focus-visible .auth-corner-switch-tip {
  opacity: 1;
  transform: none;
}

.auth-login-qr {
  animation: auth-pane-in 0.28s ease both;
}

.auth-login-account {
  animation: auth-pane-in 0.28s ease both;
}

@keyframes auth-pane-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-main-head {
  margin-bottom: 1.15rem;
}

.auth-main-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--auth-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--auth-ink);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.auth-main-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--auth-muted);
  line-height: 1.55;
}

/* 主切换：登录 / 注册 */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.22rem;
  margin-bottom: 1.35rem;
  background: var(--auth-surface);
  border-radius: 999px;
  border: 1px solid var(--auth-line);
  list-style: none;
}

.auth-tabs .nav-item {
  min-width: 0;
}

.auth-tabs .nav-link {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--auth-muted);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-tabs .nav-link:hover {
  color: var(--auth-ink);
}

.auth-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-deep) 100%);
  box-shadow: var(--auth-shadow-tab, 0 6px 16px color-mix(in srgb, var(--auth-primary) 26%, transparent));
}

/* 登录 ↔ 注册跨页引导 */
.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--auth-muted);
}

.auth-switch .auth-link {
  font-weight: 600;
}

.auth-field-error {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
}

.auth-form .form-control.is-invalid,
.auth-form .form-check-input.is-invalid {
  border-color: var(--bs-danger);
}

.auth-form-alert {
  margin-bottom: 1rem;
}

/* 次级轻量切换（密码 ↔ 短信） */
.auth-mode-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

.auth-mode-switch button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--auth-primary);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
}

.auth-mode-switch button:hover {
  color: var(--auth-primary-deep);
  text-decoration: underline;
}

/* 验证渠道：嵌在验证码标题行 */
.auth-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.auth-field-head .form-label {
  margin-bottom: 0;
}

.auth-segment {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 999px;
  background: #e8eef5;
  border: 1px solid #cfd9e6;
  gap: 0.15rem;
}

.auth-segment button {
  border: 0;
  background: transparent;
  border-radius: 99px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  color: #667085;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.auth-segment button:hover:not(.active) {
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.55);
}

.auth-segment button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-deep) 100%);
  box-shadow: var(--auth-shadow-segment, 0 3px 10px color-mix(in srgb, var(--auth-primary) 28%, transparent));
}

.auth-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.auth-form .form-label {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-ink);
}

.auth-form .form-label .req {
  color: #dc3545;
  font-weight: 500;
}

.auth-form .form-control,
.auth-form .form-select {
  border: 1px solid var(--auth-line);
  background: var(--auth-surface);
  border-radius: var(--auth-radius-sm);
  color: var(--auth-ink);
  padding: 0.72rem 0.95rem;
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-form .form-control-lg {
  min-height: 3rem;
  padding: 0.8rem 1rem;
}

.auth-form .form-control::placeholder {
  color: #98a2b3;
}

.auth-form .form-control:hover {
  border-color: #cfd6e0;
}

.auth-form .form-control:focus {
  background: #fff;
  border-color: var(--auth-primary);
  box-shadow: var(--auth-focus);
}

.auth-form .form-check-input {
  margin-right: .25em;
}

.auth-form .form-check-input:checked {
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
}

.auth-form .form-check-label {
  color: var(--auth-muted);
  font-size: 0.875rem;
}

.auth-form .form-text {
  color: var(--auth-muted);
  font-size: 0.78rem;
}

.auth-form .mb-3 {
  margin-bottom: 0.95rem !important;
}

.auth-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-meta-row .form-check {
  display: flex;
}

.auth-link {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  color: var(--auth-primary-deep);
  text-decoration: underline;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--site-btn-radius, var(--auth-radius-sm));
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.auth-btn:disabled,
.auth-btn.is-loading {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.auth-btn.is-loading {
  opacity: 0.88;
  cursor: wait;
}

.auth-btn.is-loading::after {
  content: "";
  width: 1em;
  height: 1em;
  margin-left: 0.15rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.auth-btn-wechat.is-loading::after {
  border-color: rgba(7, 193, 96, 0.25);
  border-top-color: var(--auth-wechat);
}

.auth-btn-outline.is-loading::after {
  border-color: var(--auth-border-light, color-mix(in srgb, var(--auth-primary) 25%, transparent));
  border-top-color: var(--auth-primary);
}

@keyframes auth-btn-spin {
  to { transform: rotate(360deg); }
}

.auth-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-deep) 100%);
  box-shadow: var(--site-btn-shadow, var(--auth-shadow-md, 0 4px 12px color-mix(in srgb, var(--auth-primary) 22%, transparent)));
}

.auth-btn-primary:hover:not(:disabled):not(.is-loading) {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: var(--site-btn-shadow-hover, var(--auth-shadow-lg, 0 6px 16px color-mix(in srgb, var(--auth-primary) 28%, transparent)));
}

.auth-btn-primary:active:not(:disabled):not(.is-loading) {
  color: #fff;
  filter: brightness(0.92);
  transform: translateY(1px) scale(0.985);
  box-shadow: var(--site-btn-shadow-active, var(--auth-shadow-sm, 0 2px 6px color-mix(in srgb, var(--auth-primary) 16%, transparent)));
}

.auth-btn-success {
  color: #fff;
  background: linear-gradient(135deg, #20c997 0%, var(--auth-success) 100%);
  box-shadow: 0 10px 22px rgba(25, 135, 84, 0.28);
}

.auth-btn-success:hover:not(:disabled):not(.is-loading) {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(25, 135, 84, 0.32);
}

.auth-btn-success:active:not(:disabled):not(.is-loading) {
  color: #fff;
  filter: brightness(0.92);
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.22);
}

.auth-btn-wechat {
  color: var(--auth-wechat);
  background: #fff;
  border: 1.5px solid rgba(7, 193, 96, 0.4);
  box-shadow: none;
}

.auth-btn-wechat:hover:not(:disabled):not(.is-loading) {
  color: #06ad56;
  background: rgba(7, 193, 96, 0.06);
  border-color: var(--auth-wechat);
  transform: translateY(-1px);
}

.auth-btn-wechat:active:not(:disabled):not(.is-loading) {
  color: #05964a;
  background: rgba(7, 193, 96, 0.12);
  transform: translateY(1px) scale(0.985);
}

.auth-btn-outline {
  color: var(--auth-primary);
  background: #fff;
  border: 1.5px solid var(--auth-border-soft, color-mix(in srgb, var(--auth-primary) 32%, transparent));
  font-size: 0.86rem;
  min-height: 2.85rem;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
}

.auth-btn-outline:hover:not(:disabled):not(.is-loading) {
  color: var(--auth-primary-deep);
  background: var(--auth-primary-soft);
  border-color: var(--auth-primary);
  transform: translateY(-1px);
}

.auth-btn-outline:active:not(:disabled):not(.is-loading) {
  color: var(--auth-primary-deep);
  background: var(--auth-bg-hover, color-mix(in srgb, var(--auth-primary) 16%, transparent));
  transform: translateY(1px) scale(0.985);
}

.auth-actions {
  display: grid;
  gap: 0.7rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.2rem 0;
  color: #98a2b3;
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line);
}

.auth-wechat-embed {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1.35rem 0.75rem 1.1rem;
  border: 1px solid rgba(7, 193, 96, 0.2);
  border-radius: var(--auth-radius-sm);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(7, 193, 96, 0.08), transparent 62%),
    #fff;
  min-height: 320px;
}

.auth-wechat-embed--redirect {
  place-content: center;
  gap: 0.75rem;
}

.auth-wechat-embed-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--auth-wechat);
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-wechat-embed-head .bi {
  font-size: 1.2rem;
  line-height: 1;
}

.auth-wechat-qr {
  width: 210px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 覆盖 wxLogin.js 默认 iframe 宽高（300×400） */
.auth-wechat-qr iframe {
  width: 210px !important;
  height: 220px !important;
  max-width: 100%;
  border: 0;
}

.auth-wechat-embed-hint {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.auth-wechat-fallback {
  margin-top: 0.15rem;
}

.auth-wechat-fallback.is-emphasized {
  color: var(--auth-wechat);
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .auth-main--wechat-switch {
    padding-top: 2.2rem;
  }

  .auth-corner-switch-face {
    top: 6px;
    right: 6px;
    font-size: 1.1rem;
  }

  .auth-corner-switch-tip {
    right: 50px;
    font-size: 0.68rem;
  }

  .auth-wechat-embed {
    padding: 1.1rem 0.5rem 0.95rem;
    min-height: 300px;
  }

  .auth-wechat-qr,
  .auth-wechat-qr iframe {
    width: 188px !important;
    height: 200px !important;
  }
}

.auth-foot {
  margin-top: auto;
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

.auth-foot .sep {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.65rem;
  background: #c5d0dc;
  vertical-align: middle;
}

.auth-alert {
  border: 0;
  border-radius: var(--auth-radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 0.875rem;
  margin-bottom: 1.1rem;
}

.auth-alert.alert-danger {
  background: #fff1f2;
  color: #9f1239;
}

.auth-alert.alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.auth-alert.alert-warning {
  background: #fffbeb;
  color: #92400e;
}

.auth-captcha {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.auth-captcha .form-control {
  flex: 1;
  min-width: 0;
}

.auth-captcha .auth-btn-outline {
  width: auto;
  min-width: 7.5rem;
  flex-shrink: 0;
}

.auth-captcha-img {
  width: 118px;
  height: auto;
  min-height: 3rem;
  object-fit: contain;
  border-radius: var(--auth-radius-sm);
  border: 1px solid var(--auth-line);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-captcha-img:hover {
  border-color: var(--auth-primary);
  box-shadow: var(--auth-focus);
}

.auth-hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-icon-chip {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: var(--auth-primary-soft);
  color: var(--auth-primary);
  font-size: 1.35rem;
}

.auth-icon-chip--success {
  background: rgba(25, 135, 84, 0.12);
  color: var(--auth-success);
}

.auth-icon-chip--wechat {
  background: rgba(7, 193, 96, 0.12);
  color: var(--auth-wechat);
}

.auth-pane-enter {
  animation: auth-pane-in 0.28s ease both;
}

@keyframes auth-pane-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .auth-shell {
    padding: 1.5rem 0 2.5rem;
    align-items: flex-start;
  }

  .auth-panel,
  .auth-panel--narrow {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 520px;
    margin-inline: auto;
  }

  .auth-aside {
    padding: 1.5rem 1.35rem 1.35rem;
    min-height: 0;
  }

  .auth-aside-copy {
    margin-top: 1.1rem;
  }

  .auth-aside-copy h2 {
    font-size: 1.35rem;
  }

  .auth-aside-copy p {
    max-width: none;
    font-size: 0.88rem;
  }

  .auth-aside-points,
  .auth-aside-foot {
    display: none;
  }

  .auth-main {
    padding: 1.5rem 1.25rem 1.35rem;
  }

  .auth-main-head h1 {
    font-size: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .auth-shell {
    padding: 1rem 0 2rem;
  }

  .auth-panel {
    border-radius: 16px;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .auth-field-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel,
  .auth-pane-enter,
  .auth-aside::before,
  .auth-aside::after {
    animation: none;
  }

  .auth-btn,
  .auth-tabs .nav-link,
  .auth-form .form-control {
    transition: none;
  }

  .auth-btn:hover:not(:disabled):not(.is-loading),
  .auth-btn:active:not(:disabled):not(.is-loading) {
    transform: none;
  }

  .auth-btn.is-loading::after {
    animation: none;
    border-top-color: currentColor;
  }
}
