body.auth-surface {
  min-width: 320px;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #303133;
  background: #f4f7fd;
}

body.auth-surface #app {
  height: 100%;
  overflow: hidden;
}

body.auth-surface .contact-sidebar {
  display: none !important;
}

.login-page,
.login-legal-page {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: auto;
  color: #303133;
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(75, 160, 255, 0.13), transparent 28%),
    radial-gradient(circle at 76% 88%, rgba(55, 126, 235, 0.11), transparent 34%),
    linear-gradient(180deg, #f4f7fd 0%, #ffffff 54%, #eef5ff 100%);
}

.login-page::before,
.login-legal-page::before {
  position: fixed;
  right: -16%;
  bottom: -42%;
  left: -12%;
  height: 58%;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(-4deg);
  content: "";
  pointer-events: none;
}

.login-brand-header {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 22px 40px 0;
}

.login-brand-header img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.login-brand-copy {
  min-width: 0;
  margin-left: 12px;
}

.login-brand-title {
  overflow: hidden;
  color: #303133;
  font-size: 16px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-brand-title strong {
  font-weight: 700;
}

.login-brand-subtitle {
  margin-top: 2px;
  color: #909399;
  font-size: 12px;
  line-height: 16px;
}

.login-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px 64px;
  box-sizing: border-box;
}

.login-card {
  width: min(1160px, 100%);
  height: min(680px, calc(100vh - 150px));
  min-height: 590px;
  display: flex;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(38, 78, 124, 0.12);
  box-sizing: border-box;
}

.login-visual {
  position: relative;
  width: 52%;
  height: 100%;
  flex: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #eaf4ff;
}

.login-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.login-visual p {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 74px 32px 26px;
  background: linear-gradient(
    180deg,
    rgba(235, 247, 255, 0) 0%,
    rgba(235, 247, 255, 0.94) 38%,
    rgba(235, 247, 255, 0.98) 100%
  );
  color: #28649f;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-align: justify;
}

.login-panel {
  width: 48%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 42px 56px 28px;
  background: #ffffff;
  box-sizing: border-box;
}

.login-page .login-title {
  margin: 0;
  color: #303133;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
}

.login-page .login-subtitle {
  min-height: 20px;
  margin: 6px 0 0;
  color: #909399;
  font-size: 14px;
  line-height: 20px;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  border-bottom: 1px solid #ebeef5;
}

.login-tabs button {
  position: relative;
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  color: #606266;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
}

.login-tabs button::after {
  position: absolute;
  right: 24%;
  bottom: -1px;
  left: 24%;
  height: 2px;
  background: transparent;
  content: "";
}

.login-tabs button:hover,
.login-tabs button:focus-visible,
.login-tabs button.active {
  color: #0076f6;
  background: transparent;
}

.login-tabs button.active {
  font-weight: 700;
}

.login-tabs button.active::after {
  background: #0076f6;
}

.login-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-register-form {
  margin-top: 18px;
  gap: 12px;
}

.login-input-group {
  position: relative;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-input-group:hover {
  border-color: #c0c4cc;
}

.login-input-group:focus-within {
  border-color: #0076f6;
  box-shadow: 0 0 0 2px rgba(0, 118, 246, 0.08);
}

.login-field-icon {
  position: absolute;
  left: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #a8adb5;
}

.login-field-icon svg,
.login-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-area-code {
  position: absolute;
  left: 44px;
  z-index: 1;
  height: 24px;
  display: flex;
  align-items: center;
  padding-right: 10px;
  border-right: 1px solid #e4e7ed;
  color: #606266;
  font-size: 14px;
}

.login-input-group input {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 46px 0 48px;
  border: 0;
  outline: 0;
  color: #303133;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
}

.login-input-group.is-phone input {
  padding-left: 94px;
}

.login-input-group.is-code input {
  padding-right: 136px;
}

.login-input-group input::placeholder {
  color: #c0c4cc;
}

.login-password-toggle {
  position: absolute;
  right: 8px;
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #909399;
  background: transparent;
  box-shadow: none;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible,
.login-password-toggle.is-visible {
  color: #0076f6;
  background: transparent;
}

.login-code-button {
  position: absolute;
  right: 8px;
  min-width: 112px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid #e4e7ed;
  border-radius: 0;
  color: #0076f6;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.login-code-button:hover,
.login-code-button:focus-visible {
  color: #005fd0;
  background: #f5f9ff;
}

.login-code-button:disabled {
  color: #c0c4cc;
  background: transparent;
  cursor: not-allowed;
}

.login-forgot-password {
  align-self: flex-end;
  min-width: 0;
  min-height: 17px;
  height: 17px;
  margin: -8px 0 -4px;
  padding: 0;
  border: 0;
  color: #606266;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  line-height: 17px;
}

.login-forgot-password:hover,
.login-forgot-password:focus-visible {
  color: #0076f6;
  background: transparent;
}

.login-page .login-form-hint {
  margin: -6px 0 -4px;
  color: #909399;
  font-size: 12px;
  line-height: 18px;
}

.login-legal-agreement {
  width: calc(100% + 24px);
  min-height: 28px;
  margin-right: -12px;
  margin-left: -12px;
  padding: 7px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #777777;
  font-size: 12px;
  line-height: 18px;
}

.login-legal-agreement input {
  width: 14px;
  height: 14px;
  margin: 2px 6px 0 0;
  appearance: auto;
  border: 1px solid #909399;
  background: #ffffff;
  box-shadow: none;
  accent-color: #0076f6;
  cursor: pointer;
}

.login-legal-agreement label {
  cursor: pointer;
}

.login-legal-agreement a {
  color: #0076f6;
  text-decoration: none;
}

.login-legal-agreement a:hover,
.login-legal-agreement a:focus-visible {
  color: #005fd0;
  text-decoration: underline;
}

.login-legal-agreement.is-attention {
  border-color: rgba(245, 108, 108, 0.45);
  background: rgba(254, 240, 240, 0.62);
  animation: login-legal-shake 0.36s ease;
}

@keyframes login-legal-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.login-error {
  margin: -4px 0 0;
  padding: 7px 10px;
  border: 1px solid #fde2e2;
  border-radius: 4px;
  color: #f56c6c;
  background: #fef0f0;
  font-size: 12px;
  line-height: 18px;
}

.login-primary-button {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: #0076f6;
  box-shadow: none;
  font-size: 17px;
  font-weight: 500;
}

.login-primary-button:hover,
.login-primary-button:focus-visible {
  background: #2389f8;
}

.login-primary-button:disabled {
  background: #8cc4ff;
  cursor: not-allowed;
}

.login-secondary-entry {
  min-height: 37px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f2f5;
}

.login-secondary-entry button {
  min-width: 56px;
  min-height: 20px;
  padding: 0;
  border: 0;
  color: #606266;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.login-secondary-entry button:hover,
.login-secondary-entry button:focus-visible {
  color: #0076f6;
  background: transparent;
}

.login-secondary-entry > span {
  width: 1px;
  height: 14px;
  margin: 0 16px;
  background: #dcdfe6;
}

.login-secondary-entry.is-single > span {
  display: none;
}

.login-register-form .login-primary-button {
  margin-top: 0;
}

.login-wechat-bind-form {
  margin-top: 24px;
}

.login-wechat-panel {
  margin-top: 24px;
}

.login-wechat-frame-shell {
  position: relative;
  width: 100%;
  height: 360px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}

.login-wechat-frame-shell.is-ready {
  background: #ffffff;
}

.login-wechat-frame {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 114.285714%;
  display: block;
  overflow: hidden;
  border: 0;
  background: #ffffff;
  transform: translateX(-50%) scale(0.875);
  transform-origin: center top;
}

.login-wechat-state {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-wechat-state > svg {
  width: 42px;
  height: 42px;
  overflow: visible;
  fill: none;
  color: #69adff;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-wechat-state strong {
  margin-top: 14px;
  color: #303133;
  font-size: 16px;
  font-weight: 700;
}

.login-wechat-state small {
  margin-top: 8px;
  color: #606266;
  font-size: 14px;
  line-height: 20px;
}

.login-wechat-state button {
  min-width: 0;
  min-height: 0;
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: #0076f6;
  background: transparent;
  box-shadow: none;
}

.login-wechat-spinner {
  width: 36px;
  height: 36px;
  display: inline-block;
  border: 3px solid #d9ecff;
  border-top-color: #0076f6;
  border-radius: 50%;
  animation: login-wechat-spin 0.8s linear infinite;
}

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

.login-wechat-bind-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #b7ebc6;
  border-radius: 6px;
  color: #15a737;
  background: #f0fff4;
}

.login-wechat-bind-success > span svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.login-wechat-bind-success > div {
  display: grid;
  gap: 3px;
}

.login-wechat-bind-success strong {
  font-size: 15px;
  font-weight: 700;
}

.login-wechat-bind-success small {
  color: #5f7b67;
  font-size: 12px;
}

.login-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 6px 16px 8px;
  color: #7f8da3;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.login-footer a {
  color: #0076f6;
  text-decoration: none;
}

.login-callback-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: #303133;
  background: #ffffff;
  font-family: "Microsoft YaHei", sans-serif;
}

.login-callback-page strong {
  font-size: 18px;
}

.login-callback-page small {
  color: #909399;
}

.login-legal-main {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 40px));
  flex: 1 0 auto;
  margin: 18px auto 28px;
}

.login-legal-document {
  padding: 42px 52px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(38, 78, 124, 0.12);
}

.login-legal-back {
  color: #0076f6;
  font-size: 13px;
  text-decoration: none;
}

.login-legal-document h1 {
  margin: 20px 0 6px;
  color: #303133;
  font-size: 30px;
}

.login-legal-lead {
  margin: 0 0 28px;
  color: #909399;
  font-size: 14px;
}

.login-legal-document section {
  margin-top: 24px;
}

.login-legal-document h2 {
  margin: 0 0 8px;
  color: #303133;
  font-size: 17px;
}

.login-legal-document section p {
  margin: 0;
  color: #606266;
  font-size: 14px;
  line-height: 1.85;
}

.login-legal-updated {
  margin: 34px 0 0;
  color: #909399;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 1100px) {
  .login-main {
    padding: 20px 24px 64px;
  }

  .login-card {
    max-width: 520px;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    width: 100%;
    padding: 40px 56px 28px;
  }
}

@media (max-width: 560px) {
  .login-page,
  .login-legal-page {
    overflow: auto;
  }

  .login-brand-header {
    width: 100%;
    padding: 18px 18px 0;
  }

  .login-brand-title {
    font-size: 14px;
  }

  .login-brand-subtitle {
    font-size: 12px;
  }

  .login-main {
    align-items: flex-start;
    padding: 20px 16px 64px;
  }

  .login-card {
    width: 100%;
    height: auto;
    min-height: 620px;
    border-radius: 12px;
  }

  .login-panel {
    min-height: 620px;
    padding: 34px 24px 26px;
  }

  .login-page .login-title {
    font-size: 22px;
    line-height: 30px;
  }

  .login-code-button {
    min-width: 102px;
    padding: 0 10px;
  }

  .login-legal-agreement {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    justify-content: flex-start;
  }

  .login-register-form {
    gap: 10px;
  }

  .login-register-form .login-input-group {
    min-height: 46px;
  }

  .login-register-form .login-input-group input {
    min-height: 44px;
  }

  .login-wechat-frame-shell {
    height: 320px;
  }

  .login-legal-main {
    width: calc(100vw - 32px);
    margin-top: 14px;
  }

  .login-legal-document {
    padding: 30px 22px;
  }

  .login-legal-document h1 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-wechat-spinner,
  .login-legal-agreement.is-attention {
    animation: none;
  }
}
