/* 登录页 / 首屏静态壳共用布局（index.html 与 LoginPageShell 须保持 DOM 一致） */
.login-pixso {
  --text-primary: #1a2332;
  --text-secondary: #606266;
  --text-muted: #909399;
  --text-white: #ffffff;
  --bg-white: #ffffff;
  --border-medium: #cdd4df;
  --border-light: #ebeef5;
  --brand-blue: #001da2;
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-white);
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

.login-frame {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.login-brand {
  flex: 1 1 50%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20viewBox%3D'0%200%20720%20900'%20preserveAspectRatio%3D'none'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%0A%20%20%20%20%20%20%3Cdefs%3E%0A%20%20%20%20%20%20%20%20%3ClinearGradient%20id%3D'grad'%20gradientUnits%3D'objectBoundingBox'%20x1%3D'0'%20y1%3D'0.5'%20x2%3D'1'%20y2%3D'0.5'%20gradientTransform%3D'matrix(-0.5000%2C%200.8660%2C%20-0.8660%2C%20-0.5000%2C%201.1830%2C%200.3170)'%3E%0A%20%20%20%20%20%20%20%20%20%20%3Cstop%20stop-color%3D'rgba(10%2C31%2C107%2C1)'%20offset%3D'0'%2F%3E%3Cstop%20stop-color%3D'rgba(22%2C93%2C255%2C1)'%20offset%3D'0.6000000238418579'%2F%3E%3Cstop%20stop-color%3D'rgba(64%2C128%2C255%2C1)'%20offset%3D'1'%2F%3E%0A%20%20%20%20%20%20%20%20%3C%2FlinearGradient%3E%0A%20%20%20%20%20%20%3C%2Fdefs%3E%0A%20%20%20%20%20%20%3Crect%20width%3D'100%25'%20height%3D'100%25'%20fill%3D'url(%23grad)'%2F%3E%0A%20%20%20%20%3C%2Fsvg%3E");
  background-size: cover;
  background-position: center;
}

.brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 60px;
  text-align: center;
}

.brand-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.brand-title {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-white);
  line-height: 1.3;
}

.brand-title-en {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}

.brand-slogan {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.login-panel {
  flex: 1 1 50%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  padding: 80px;
  position: relative;
}

.login-mobile-top {
  display: none;
}

.login-panel-boot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
  text-align: center;
}

.login-panel-boot-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 29, 162, 0.15);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: login-panel-boot-spin 0.8s linear infinite;
}

.login-panel-boot-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--brand-blue);
}

.login-panel:has(.login-card) .login-panel-boot {
  display: none;
}

/* 登录框内 busy 态（与 LoginView 卡片遮罩同位置） */
.login-card-busy-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.login-card-busy-overlay--cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
  background: var(--bg-white);
  padding: 24px;
}

.login-card-busy-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 29, 162, 0.15);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: login-panel-boot-spin 0.8s linear infinite;
}

.login-card-busy-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--brand-blue);
}

.login-card-busy-text--muted {
  font-weight: 400;
  color: #303133;
}

.login-card-enter-placeholder {
  width: 100%;
  max-width: 440px;
  min-height: 320px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(26, 86, 121, 0.059);
  background: var(--bg-white);
  padding: 48px 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes login-panel-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-panel-boot-error {
  margin: 0;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  color: #606266;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

#zl-login-panel-mount {
  flex: 1 1 50%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  padding: 80px;
  box-sizing: border-box;
  position: relative;
}

@media (max-width: 960px) {
  .login-frame {
    flex-direction: column;
  }

  .login-brand {
    min-height: 320px;
  }

  .login-panel,
  #zl-login-panel-mount {
    padding: 32px 24px 48px;
  }
}

@media (max-width: 768px) {
  .login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-white);
  }

  .login-mobile-top {
    display: block;
    flex-shrink: 0;
    background: linear-gradient(90deg, #001da2 0%, #001058 100%);
    color: #fff;
    padding: max(14px, env(safe-area-inset-top)) 16px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  }

  .login-mobile-top__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .login-mobile-top__logo {
    display: block;
    width: auto;
    max-width: min(100%, 196px);
    height: 29px;
    object-fit: contain;
    object-position: left center;
    flex: 1;
    min-width: 0;
  }

  .login-mobile-top__tag {
    flex-shrink: 1;
    min-width: 0;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #fff;
    background: #e60012;
    border-radius: 4px;
    white-space: normal;
    text-align: right;
  }

  .login-brand {
    display: none;
  }

  .login-frame {
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  .login-panel,
  #zl-login-panel-mount {
    flex: 1;
    min-height: 0;
    padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  }
}
