/* AgentSite H5 登录/注册页样式，参考 mldh5.qdcgy.com/login */
.auth-v2-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-sizing: border-box;
  background: #fff;
}

.auth-v2-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.auth-v2-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-v2-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 12px;
}

.auth-v2-brand-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.auth-v2-brand-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #666;
}

.auth-v2-step-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

/* 验证码步骤：返回 + 标题同一行，标题居中 */
.auth-v2-step--verify {
  padding-top: 4px;
}

.auth-v2-step-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 12px;
}

.auth-v2-step-header .auth-v2-step-title {
  margin: 0;
  padding: 0 76px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
}

.auth-v2-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  padding: 8px 10px 8px 4px;
  font-size: 14px;
  color: #646566;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth-v2-back:hover {
  background: #f5f6f8;
  color: #323233;
}

.auth-v2-back:active {
  background: #eef0f3;
}

.auth-v2-back-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.auth-v2-back-text {
  line-height: 1;
  white-space: nowrap;
}

.auth-v2-step--verify .auth-v2-phone-hint {
  margin: 0 0 16px;
}

.auth-v2-primary-btn.auth-v2-next {
  margin-top: 24px;
}

.auth-v2-field {
  display: flex;
  align-items: center;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 0 12px;
  height: 48px;
  box-sizing: border-box;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.auth-v2-field:focus-within {
  border-color: #0057ff;
}

.auth-v2-field--code {
  gap: 8px;
  padding-right: 4px;
}

.auth-v2-prefix {
  flex-shrink: 0;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid #eee;
  font-size: 15px;
  color: #323233;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 58px;
}

.auth-v2-prefix .auth-v2-arrow {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.auth-v2-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #1a1a1a;
  background: transparent;
  min-width: 0;
}

.auth-v2-input::placeholder {
  color: #c8c9cc;
}

.auth-v2-code-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 14px;
  color: #0057ff;
  cursor: pointer;
  white-space: nowrap;
}

.auth-v2-code-btn:disabled {
  color: #c8c9cc;
  cursor: not-allowed;
}

.auth-v2-code-btn::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #eee;
  margin-right: 8px;
  vertical-align: middle;
}

.auth-v2-eye {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 8px;
  color: #969799;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.auth-v2-agreement {
  margin: 18px 0 22px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}

.auth-v2-agreement input {
  margin-top: 3px;
  flex-shrink: 0;
}

.auth-v2-link {
  color: #0057ff;
  cursor: pointer;
  text-decoration: none;
}

.auth-v2-link:active {
  opacity: 0.75;
}

.auth-v2-primary-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #0057ff;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.auth-v2-primary-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.auth-v2-primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 请求进行中：统一置灰、禁止点击 */
.auth-v2-busy,
button.auth-v2-busy,
.auth-v2-link.auth-v2-busy,
.auth-v2-resend-link.auth-v2-busy,
.auth-v2-code-btn.auth-v2-busy {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  color: #999 !important;
}

.auth-v2-footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: #646566;
}

.auth-v2-footer a {
  color: #0057ff;
  text-decoration: none;
}

.auth-v2-error {
  display: none;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fff2f0;
  border-radius: 8px;
  font-size: 13px;
  color: #f15533;
  line-height: 1.5;
}

.auth-v2-error.is-visible {
  display: block;
}

.auth-v2-field-error {
  margin: -8px 0 12px;
  font-size: 13px;
  color: #f15533;
}

.auth-v2-field-error:empty {
  display: none;
}

/* 验证码 6 位分格输入 */
.auth-v2-code-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 8px;
}

.auth-v2-code-box {
  width: 44px;
  height: 52px;
  line-height: 50px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dcdfe6;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.auth-v2-code-box.active {
  border-color: #0057ff;
}

.auth-v2-code-hidden {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.auth-v2-code-wrapper {
  position: relative;
  cursor: text;
}

.auth-v2-phone-hint {
  margin: 0 0 20px;
  font-size: 14px;
  color: #969799;
  text-align: center;
}

.auth-v2-resend {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #999;
}

.auth-v2-resend-link {
  color: #0057ff;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 0;
}

.auth-v2-resend-link:disabled {
  color: #c8c9cc;
  cursor: not-allowed;
}

.auth-v2-step {
  display: none;
}

.auth-v2-step.active {
  display: block;
}

/* 登录方式 Tab */
.auth-v2-tabs {
  display: flex;
  margin: 0 0 20px;
  border-bottom: 1px solid #eee;
}

.auth-v2-tab {
  flex: 1;
  padding: 10px 0 12px;
  border: none;
  background: none;
  font-size: 15px;
  color: #969799;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.auth-v2-tab.is-active {
  color: #1a1a1a;
  font-weight: 600;
}

.auth-v2-tab.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: #0057ff;
  border-radius: 1px;
}

.auth-v2-login-panel {
  display: none;
}

.auth-v2-login-panel.is-active {
  display: block;
}

.auth-v2-login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 18px;
  font-size: 13px;
}

.auth-v2-login-links .auth-v2-link {
  border: none;
  background: none;
  padding: 0;
  color: #0057ff;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.auth-v2-success {
  text-align: center;
  padding: 12px 0 4px;
}

.auth-v2-success-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
}

.auth-v2-success-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.auth-v2-success-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 区号下拉（复用现有 area-code 结构） */
.auth-v2-page .areaphone_wrap {
  position: relative;
  margin-bottom: 12px;
}

.auth-v2-page .areaphone_wrap > div:first-child {
  display: flex;
  align-items: center;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 0 12px;
  height: 48px;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.auth-v2-page .areaphone_wrap:focus-within > div:first-child {
  border-color: #0057ff;
}

.auth-v2-page .areaphone_wrap .input-group-prefix {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.auth-v2-page .areaphone_wrap .current-area-code {
  font-size: 15px;
  color: #323233;
  font-weight: 500;
  cursor: pointer;
}

.auth-v2-page .areaphone_wrap .arrow-icon {
  width: 12px;
  margin-left: 4px;
  cursor: pointer;
}

.auth-v2-page .areaphone_wrap .separator {
  margin: 0 8px;
  color: #dcdcdc;
}

.auth-v2-page .areaphone_wrap .form-control {
  border: none;
  box-shadow: none;
  padding: 0;
  height: auto;
  font-size: 16px;
}

.auth-v2-page .area-code-list-container {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
}

.auth-v2-page .area-code-list-container.open {
  display: block;
}

.auth-v2-page .area-code-list-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  max-height: 240px;
  overflow: hidden;
}

.auth-v2-page .area-code-list {
  max-height: 200px;
  overflow-y: auto;
}

.auth-v2-page .area-code-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.auth-v2-page .area-code-item--active,
.auth-v2-page .area-code-item:hover {
  background: #f5f6f8;
}

@media (min-width: 768px) {
  .auth-v2-card {
    max-width: 440px;
    padding: 36px 32px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }

  .auth-v2-brand-title {
    font-size: 28px;
  }
}

/* ========== AuthV2 左右分栏：左侧品牌介绍（PathBrands） ========== */
:root {
  --auth-v2-blue: #255cf4;
  --auth-v2-ink: #15203b;
  --auth-v2-muted: #68738c;
  --auth-v2-navy: #10245b;
}

.auth-v2-page--split {
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) minmax(420px, 0.92fr);
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  padding: 18px;
  background: #f5f6f8;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-v2-brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 36px);
  padding: 27px clamp(42px, 5vw, 76px);
  color: var(--auth-v2-ink);
  background: linear-gradient(180deg, #f3f6ff 0%, #f8f9fc 42%, #fff 100%);
  border-radius: 20px;
}

.auth-v2-brand-panel-header,
.auth-v2-brand-panel-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.auth-v2-brand-panel-header {
  gap: 16px;
}

.auth-v2-brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-v2-brand-mark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 29px;
  height: 29px;
  padding: 6px 5px;
  border-radius: 9px;
  background: var(--auth-v2-blue);
  box-sizing: border-box;
}

.auth-v2-brand-mark i {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: #fff;
}

.auth-v2-brand-mark i:nth-child(1) {
  height: 8px;
}

.auth-v2-brand-mark i:nth-child(2) {
  height: 16px;
}

.auth-v2-brand-mark i:nth-child(3) {
  height: 12px;
}

.auth-v2-brand-name {
  line-height: 1;
}

.auth-v2-brand-tag {
  padding-left: 16px;
  border-left: 1px solid #d8dce3;
  color: #8a93a3;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.auth-v2-brand-panel-body {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: auto 0;
}

.auth-v2-brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.auth-v2-brand-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-v2-blue);
  box-shadow: 0 0 0 5px rgba(37, 92, 244, 0.1);
}

.auth-v2-brand-headline {
  margin: 0;
  color: #171a22;
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.065em;
}

.auth-v2-brand-headline em {
  color: #171a22;
  font-style: normal;
}

.auth-v2-brand-headline em::after {
  content: "";
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.11em;
  border-radius: 50%;
  background: var(--auth-v2-blue);
  vertical-align: middle;
}

.auth-v2-brand-lead {
  max-width: 500px;
  margin: 25px 0 45px;
  color: #6f7787;
  font-size: 14px;
  line-height: 1.8;
}

.auth-v2-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 610px;
  padding: 0;
  border-top: 1px solid #dfe2e7;
  border-bottom: 1px solid #dfe2e7;
}

.auth-v2-feature-grid article {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 18px 16px 18px 0;
  min-width: 0;
}

.auth-v2-feature-grid article + article {
  padding-left: 18px;
  border-left: 1px solid #dfe2e7;
}

.auth-v2-feature-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e3e8;
  border-radius: 7px;
  color: #596273;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  box-sizing: border-box;
}

.auth-v2-feature-grid strong {
  display: block;
  margin: 1px 0 5px;
  color: #303642;
  font-size: 12px;
}

.auth-v2-feature-grid p {
  margin: 0;
  color: #9097a3;
  font-size: 10px;
  line-height: 1.6;
}

.auth-v2-brand-panel-footer {
  justify-content: space-between;
  color: #a0a8b7;
  font-size: 10px;
}

.auth-v2-brand-trusted {
  display: flex;
  align-items: center;
  gap: 7px;
}

.auth-v2-brand-trusted i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39bd8b;
  box-shadow: 0 0 0 4px rgba(57, 189, 139, 0.09);
}

.auth-v2-brand-orb {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  top: -220px;
  right: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, #dbe6ff, transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.auth-v2-form-panel {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 36px);
  padding: 48px clamp(38px, 5vw, 84px);
  background: #fff;
  border: 1px solid #e7e9ed;
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(23, 27, 38, 0.06);
  box-sizing: border-box;
}

.auth-v2-page--split .auth-v2-card {
  width: min(390px, 100%);
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.auth-v2-card-heading {
  margin-bottom: 28px;
}

.auth-v2-welcome-badge {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--auth-v2-blue);
  font-size: 12px;
  font-weight: 650;
}

.auth-v2-card-heading h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #1a1a1a;
}

.auth-v2-card-heading p {
  margin: 0;
  color: var(--auth-v2-muted);
  font-size: 14px;
}

.auth-v2-mobile-brand,
.auth-v2-mobile-intro {
  display: none;
}

@media (max-width: 860px) {
  .auth-v2-page--split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: linear-gradient(180deg, #f3f6ff 0, #fff 42%);
  }

  .auth-v2-brand-panel {
    display: none;
  }

  .auth-v2-form-panel {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: calc(24px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom));
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .auth-v2-mobile-brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--auth-v2-navy);
    font-size: 11px;
  }

  .auth-v2-mobile-brand .auth-v2-brand-identity {
    font-size: 21px;
  }

  .auth-v2-mobile-brand .auth-v2-brand-mark {
    width: 27px;
    height: 27px;
  }

  .auth-v2-mobile-intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 40px 0 24px;
  }

  .auth-v2-mobile-intro span {
    color: var(--auth-v2-blue);
    font-size: 12px;
    font-weight: 650;
  }

  .auth-v2-mobile-intro strong {
    max-width: 280px;
    color: var(--auth-v2-navy);
    font-size: 27px;
    line-height: 1.35;
    letter-spacing: -0.04em;
    font-weight: 700;
  }

  .auth-v2-page--split .auth-v2-card {
    width: 100%;
    margin: 0 auto;
    padding: 28px 22px 24px;
    border: 1px solid #e9edf5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(27, 52, 115, 0.07);
  }

  .auth-v2-welcome-badge {
    display: none;
  }

  .auth-v2-card-heading h2 {
    font-size: 25px;
  }

  .auth-v2-card-heading {
    margin-bottom: 20px;
  }
}

@media (max-width: 380px) {
  .auth-v2-form-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-v2-mobile-intro {
    margin-top: 32px;
  }

  .auth-v2-page--split .auth-v2-card {
    padding: 24px 17px;
  }

  .auth-v2-card-heading h2 {
    font-size: 23px;
  }
}
