/* 业务前台登录/注册页（分栏卡片 + 动态背景） */
.auth-page {
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(145deg, #9fc0f5 0%, #6a9ef0 42%, #4a82e8 100%);
}

.auth-page-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.auth-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  width: 100%;
}

.auth-site-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 20px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.auth-site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 28px;
}

.auth-site-footer-inner--qr-only {
  justify-content: flex-end;
}

/* 左侧文字 + 右侧二维码：二维码与「第二行」同网格行，下移一行与备案齐平 */
.auth-site-footer-inner--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 2px;
  align-items: start;
  overflow: visible;
}

.auth-site-footer-inner--grid .auth-site-footer-line1 {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
}

.auth-site-footer-inner--grid .auth-site-footer-line2 {
  grid-column: 1;
  grid-row: 2;
  text-align: center;
}

.auth-site-footer-inner--grid .auth-site-footer-qr {
  grid-column: 2;
  align-self: start;
  margin-left: 12px;
  margin-right: -12px;
}

.auth-site-footer-inner--grid.auth-site-footer-inner--qr-align-line2 .auth-site-footer-qr {
  grid-row: 2;
  /* 说明文字与左侧第二行底部齐平（备案/徽章所在行） */
  align-self: end;
  margin-top: 0;
}

.auth-site-footer-inner--grid:not(.auth-site-footer-inner--qr-align-line2) .auth-site-footer-qr {
  grid-row: 1;
  margin-top: 0;
}

.auth-site-footer-inner--grid.auth-site-footer-inner--only-line2 .auth-site-footer-line2 {
  grid-row: 1;
}

.auth-site-footer-inner--grid.auth-site-footer-inner--only-line2 .auth-site-footer-qr {
  grid-row: 1;
  align-self: end;
  margin-top: 0;
}

.auth-site-footer-qr {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.auth-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-miniimg .auth-qr-item > p:first-child {
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 0;
}

.footer-miniimg .auth-qr-item > p:first-child:hover {
  filter: contrast(1.1);
}

.footer-miniimg .auth-qr-item > p:first-child img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

/* 内置四角流光（与 zibll/子比 .footer-miniimg 教程兼容；后台自定义 CSS 可覆盖） */
body:not(.auth-footer-css-custom) .footer-miniimg .auth-qr-item > p:first-child::before,
body:not(.auth-footer-css-custom) .footer-miniimg .auth-qr-item > p:first-child::after {
  content: "";
  border: 2px solid;
  border-image: linear-gradient(45deg, #00eaff, #c084fc, #f472b6) 1;
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  pointer-events: none;
  z-index: 2;
  animation: auth-qr-clippath 3s infinite linear;
}

body:not(.auth-footer-css-custom) .footer-miniimg .auth-qr-item > p:first-child::before {
  animation-delay: -1.5s;
}

@keyframes auth-qr-clippath {
  0%,
  100% {
    clip-path: inset(0 0 96% 0);
    filter: hue-rotate(0deg);
  }
  25% {
    clip-path: inset(0 96% 0 0);
  }
  50% {
    clip-path: inset(96% 0 0 0);
    filter: hue-rotate(360deg);
  }
  75% {
    clip-path: inset(0 0 0 96%);
  }
}

.auth-qr-caption {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  white-space: nowrap;
}

.auth-site-footer a {
  color: inherit;
  text-decoration: none;
}

.auth-site-footer a:hover {
  text-decoration: underline;
}

.auth-site-footer-line1 + .auth-site-footer-line2 {
  margin-top: 2px;
}

/* 压缩备案/版权与友链之间的空白（后台 HTML 常含 p、br） */
.auth-site-footer-line1,
.auth-site-footer-line2 {
  line-height: 1.5;
}

.auth-site-footer-line1 :is(p, div),
.auth-site-footer-line2 :is(p, div) {
  margin: 0 0 3px;
}

.auth-site-footer-line1 :is(p, div):last-child,
.auth-site-footer-line2 :is(p, div):last-child {
  margin-bottom: 0;
}

.auth-site-footer-line2 br {
  display: block;
  margin: -5px 0;
  line-height: 6px;
  content: "";
}

.auth-site-footer img {
  vertical-align: middle;
  margin-right: 4px;
}

.auth-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
}

.auth-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(30, 80, 160, 0.22);
  overflow: hidden;
  min-height: 480px;
}

.auth-visual {
  flex: 1.05;
  min-width: 0;
  position: relative;
  background: linear-gradient(145deg, rgba(30, 111, 255, 0.12) 0%, rgba(255, 255, 255, 0.5) 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 32px;
}

.auth-visual-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 340px;
  min-height: 100%;
  margin: 0 auto;
  padding: 16px 0 20px;
  text-align: center;
  box-sizing: border-box;
}

.auth-visual img.hero-truck,
.auth-visual img.hero-visual {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 8px 20px rgba(30, 111, 255, 0.12));
}

.auth-visual img.hero-truck {
  animation: auth-float 6s ease-in-out infinite;
}

.auth-visual img.hero-visual {
  border-radius: 8px;
  animation: none;
}

.auth-visual .visual-title {
  width: 100%;
  margin: 18px 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1a3a6b;
  line-height: 1.35;
}

.auth-visual .visual-desc {
  width: 100%;
  margin: 0;
  font-size: 14px;
  color: #5a7aa8;
  line-height: 1.6;
}

.auth-visual-extra {
  width: 100%;
  margin-top: 14px;
  padding-top: 0;
  font-size: 12px;
  color: #5a7aa8;
  line-height: 1.65;
  text-align: center;
}

.auth-visual-extra a {
  color: #1e6fff;
  text-decoration: none;
}

.auth-visual-extra a:hover {
  text-decoration: underline;
}

.auth-visual-extra img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

@keyframes auth-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.auth-form-panel {
  flex: 0 0 400px;
  max-width: 100%;
  padding: 40px 36px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #5a9ef0;
  background: linear-gradient(135deg, #7eb8ff 0%, #4d8ef7 55%, #3a7ae8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  margin: -18px 0 22px;
  font-size: 13px;
  color: #999;
}

.auth-field {
  position: relative;
  margin-bottom: 16px;
}

.auth-field .field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ab0d0;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.auth-field .layui-input {
  height: 44px;
  line-height: 44px;
  padding-left: 40px;
  border-radius: 6px;
  border: 1px solid #dce6f5;
  background: #f7faff;
}

.auth-field .layui-input:focus {
  border-color: #7eb3ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.12);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 18px;
  font-size: 13px;
  color: #666;
}

.auth-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.auth-btn-login {
  width: 100%;
  height: 44px;
  line-height: 44px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #6b9fff 0%, #4d8ef7 100%);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.auth-btn-login:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth-btn-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-footer {
  margin-top: 20px;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.7;
}

.auth-footer a {
  color: #1e6fff;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.closed-tip {
  text-align: center;
  color: #666;
  padding: 24px 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .auth-page-inner {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    padding: 10px 0 24px;
    box-sizing: border-box;
  }

  .auth-center {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
  }

  .auth-site-footer {
    margin-top: 22px;
    padding: 10px 12px 0;
    font-size: 11px;
    line-height: 1.65;
  }

  .auth-site-footer-inner,
  .auth-site-footer-inner--grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .auth-site-footer-inner--grid .auth-site-footer-line1,
  .auth-site-footer-inner--grid .auth-site-footer-line2,
  .auth-site-footer-inner--grid .auth-site-footer-qr {
    grid-column: auto;
    grid-row: auto;
  }

  .auth-site-footer-qr {
    width: 100%;
    justify-content: center;
    align-self: center !important;
    margin-top: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 16px;
  }

  .footer-miniimg .auth-qr-item > p:first-child img {
    width: 72px;
    height: 72px;
  }

  .auth-qr-caption {
    margin-top: 6px;
    font-size: 11px;
  }

  .auth-qr-item {
    flex: 0 0 auto;
  }

  .auth-card {
    flex-direction: column;
    min-height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(30, 80, 160, 0.18);
  }

  .auth-visual {
    padding: 14px 16px 6px;
    min-height: auto;
  }

  .auth-visual-inner {
    padding: 6px 0 4px;
  }

  .auth-visual img.hero-truck,
  .auth-visual img.hero-visual {
    max-height: 118px;
  }

  .auth-visual .visual-title,
  .auth-visual .visual-desc {
    display: none;
  }

  .auth-form-panel {
    flex: none;
    width: 100%;
    padding: 14px 18px 12px;
  }

  .auth-brand {
    margin-bottom: 10px;
  }

  .auth-brand h1 {
    font-size: 18px;
  }

  .auth-subtitle {
    margin: -6px 0 12px;
    font-size: 12px;
  }

  .auth-field {
    margin-bottom: 10px;
  }

  .auth-field .layui-input {
    height: 40px;
    line-height: 40px;
  }

  .auth-options {
    margin: 0 0 10px;
    font-size: 12px;
  }

  .auth-btn-login {
    height: 40px;
    line-height: 40px;
    font-size: 15px;
  }

  .auth-footer {
    margin-top: 10px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .auth-page-inner {
    padding: 12px 0 16px;
  }

  .auth-center {
    padding: 0 10px;
  }

  .auth-visual img.hero-truck,
  .auth-visual img.hero-visual {
    max-height: 98px;
  }

  .auth-form-panel {
    padding: 12px 14px 10px;
  }

  .auth-brand h1 {
    font-size: 16px;
  }

  .footer-miniimg .auth-qr-item > p:first-child img {
    width: 64px;
    height: 64px;
  }

  .auth-site-footer-qr {
    gap: 12px;
  }
}
