/*
 * 会员中心登录/注册样式
 * 布局保持 IPbro 左右分栏；视觉对齐后台 Material（md-tokens）
 */
:root {
  --ipd-primary: #1976D2;
  --ipd-primary-hover: #1565C0;
  --ipd-primary-soft: #E3F2FD;
  --ipd-primary-rgb: 25, 118, 210;
  --ipd-on-primary: #ffffff;
  --ipd-text: #1A1C1E;
  --ipd-muted: #5F6368;
  --ipd-line: rgba(0, 0, 0, 0.12);
  --ipd-outline: rgba(0, 0, 0, 0.23);
  --ipd-input-bg: transparent;
  --ipd-placeholder: #9AA0A6;
  --ipd-bg: #F4F5F7;
  --ipd-surface: #FFFFFF;
  --ipd-radius: 8px;
  --ipd-radius-lg: 12px;
  --ipd-font: "HarmonyOS Sans SC", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ipd-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.07), 0 18px 36px -8px rgba(16, 24, 40, 0.14);
  --ipd-shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.12), 0 1px 3px 1px rgba(0, 0, 0, 0.08);

  /* 兼容旧变量名，统一映射到 Material 主色 */
  --ipd-green: var(--ipd-primary);
  --ipd-green-deep: var(--ipd-primary-hover);
  --ipd-green-soft: var(--ipd-primary-soft);
  --ipd-green-circle: var(--ipd-primary);
}

* { box-sizing: border-box; }

body.ipd-auth {
  margin: 0;
  min-height: 100vh;
  background: var(--ipd-surface);
  color: var(--ipd-text);
  font-family: var(--ipd-font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.ipd-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  background: var(--ipd-surface);
}

.ipd-header {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  border-bottom: 0;
}

.ipd-header img {
  height: 2.75rem;
  width: auto;
  max-width: 220px;
  max-height: 3rem;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.ipd-body {
  display: flex;
  flex: 1;
  width: 100%;
  justify-content: center;
  padding: 7.25rem 7.625rem 2.5rem 0;
}

.ipd-left {
  margin-right: 5.75rem;
  width: 50rem;
  flex-shrink: 0;
}

.ipd-left-title {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.5rem;
  color: var(--ipd-text);
  letter-spacing: -0.01em;
}

.ipd-map {
  position: relative;
  margin-top: 1.25rem;
  display: flex;
  height: 35rem;
  width: 50rem;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  background-size: 100% 100%;
  background-image: url("./img/map.webp");
  background-repeat: no-repeat;
}

.ipd-map-center {
  position: relative;
  z-index: 1;
  width: 4.625rem;
  height: 4.625rem;
  margin-top: 0;
  object-fit: contain;
}

.ipd-bubble {
  position: absolute;
  display: flex;
  height: 3rem;
  width: 12.25rem;
  align-items: center;
  border-radius: var(--ipd-radius-lg);
  background: var(--ipd-surface);
  padding-left: 0.75rem;
  border: 1px solid var(--ipd-line);
  box-shadow: var(--ipd-shadow);
}

.ipd-bubble img {
  margin-right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.ipd-bubble span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375rem;
  color: var(--ipd-primary-hover);
  white-space: nowrap;
}

.ipd-bubble.b1 { top: 6.875rem; left: 4.9375rem; }
.ipd-bubble.b2 { top: 6.1875rem; right: 5.9375rem; }
.ipd-bubble.b3 { top: 16.8125rem; left: 10.4375rem; }
.ipd-bubble.b4 { top: 12.8125rem; right: 11.0625rem; }

.ipd-feats {
  margin-top: 22.75rem;
  display: flex;
  width: 45rem;
  justify-content: space-between;
}

.ipd-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14rem;
}

.ipd-feat-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ipd-primary);
}

.ipd-feat-icon img {
  width: 1.75rem;
  height: 1.75rem;
}

.ipd-feat-title {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 2rem;
  color: var(--ipd-primary);
}

.ipd-feat-des {
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ipd-muted);
}

.ipd-right {
  width: 30.25rem;
  flex-shrink: 0;
}

.ipd-welcome {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.5rem;
  color: var(--ipd-text);
  letter-spacing: -0.01em;
}

.ipd-form {
  width: 100%;
}

.ipd-field {
  margin-bottom: 1.25rem;
}

.ipd-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: var(--ipd-muted);
}

.ipd-field input[type="text"],
.ipd-field input[type="password"],
.ipd-field input[type="email"] {
  width: 100%;
  height: 3.375rem;
  border: 1px solid var(--ipd-outline);
  border-radius: var(--ipd-radius);
  background: var(--ipd-input-bg) !important;
  padding: 0 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ipd-text) !important;
  outline: none;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ipd-field input::placeholder {
  color: var(--ipd-placeholder) !important;
}

.ipd-field input:hover {
  border-color: rgba(0, 0, 0, 0.42);
}

.ipd-field input:focus {
  border-color: var(--ipd-primary);
  box-shadow: 0 0 0 1px var(--ipd-primary);
}

.ipd-field input:-webkit-autofill {
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

.ipd-password {
  position: relative;
}

.ipd-password input {
  padding-right: 3rem;
}

.ipd-eye {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ipd-eye:hover {
  background: rgba(0, 0, 0, 0.04);
}

.ipd-eye img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  opacity: 0.7;
}

.ipd-captcha {
  display: grid;
  grid-template-columns: 1fr 7.5rem;
  gap: 0.75rem;
  align-items: center;
}

.ipd-captcha img {
  height: 3.375rem;
  width: 100%;
  border-radius: var(--ipd-radius);
  cursor: pointer;
  object-fit: cover;
  border: 1px solid var(--ipd-line);
  background: var(--ipd-bg);
}

.ipd-forgot {
  margin-top: 0.25rem;
  display: flex;
  width: 100%;
  justify-content: flex-end;
  font-size: 0.9375rem;
  line-height: 1.3125rem;
}

.ipd-forgot a {
  color: var(--ipd-primary);
  font-weight: 500;
}

.ipd-forgot a:hover {
  color: var(--ipd-primary-hover);
  text-decoration: underline;
}

.ipd-submit {
  margin-top: 4.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30.25rem;
  max-width: 100%;
  height: 3.5rem;
  border: none;
  border-radius: var(--ipd-radius);
  background: var(--ipd-primary);
  color: var(--ipd-on-primary);
  font-size: 1.125rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--ipd-shadow-btn);
  transition: background .15s ease, box-shadow .15s ease;
}

.ipd-submit:hover {
  background: var(--ipd-primary-hover);
  color: var(--ipd-on-primary);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.16), 0 4px 5px 0 rgba(0, 0, 0, 0.1);
}

.ipd-submit:active {
  box-shadow: var(--ipd-shadow);
}

.ipd-submit:disabled {
  color: var(--ipd-on-primary);
  background: rgba(var(--ipd-primary-rgb), 0.38) !important;
  box-shadow: none;
  cursor: not-allowed;
}

.ipd-more-title {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  line-height: 1.375rem;
  color: var(--ipd-muted);
}

.ipd-more-title .line {
  height: 1px;
  width: 11.125rem;
  background: var(--ipd-line);
}

.ipd-more-btns {
  margin-top: 1rem;
  display: flex;
  gap: 1.25rem;
}

.ipd-more-btns button,
.ipd-more-btns a {
  flex: 1;
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--ipd-radius);
  border: 1px solid var(--ipd-primary);
  background: transparent;
  color: var(--ipd-primary) !important;
  font-size: 1.125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.ipd-more-btns button:hover,
.ipd-more-btns a:hover {
  background: rgba(var(--ipd-primary-rgb), 0.08);
}

.ipd-more-btns button.active {
  background: var(--ipd-primary-soft);
  border-color: var(--ipd-primary);
}

.ipd-foot-row {
  margin-top: 1rem;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4375rem;
  color: var(--ipd-muted);
}

.ipd-foot-row a,
.ipd-foot-row .link {
  color: var(--ipd-primary);
  cursor: pointer;
  font-weight: 500;
}

.ipd-foot-row a:hover,
.ipd-foot-row .link:hover {
  color: var(--ipd-primary-hover);
  text-decoration: underline;
}

.ipd-foot-row .link.underline {
  text-decoration: underline;
  font-size: inherit;
  color: var(--ipd-primary);
}

.ipd-panel { display: none; }
.ipd-panel.active { display: block; }

/* contact modal */
.ipd-modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ipd-modal-mask.open { display: flex; }

.ipd-modal {
  width: 35.25rem;
  max-width: 100%;
  border-radius: var(--ipd-radius-lg);
  background: var(--ipd-surface);
  padding: 1.5rem 2rem;
  border: 1px solid var(--ipd-line);
  box-shadow: var(--ipd-shadow);
  position: relative;
}

.ipd-modal h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ipd-text);
}

.ipd-modal p {
  margin: 0;
  color: var(--ipd-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ipd-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ipd-muted);
  cursor: pointer;
}

.ipd-modal-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

.ipd-modal .ipd-submit {
  margin-top: 1.5rem;
  width: 100%;
}

/* register / forget compact */
.ipd-auth-shell.single .ipd-body {
  padding-right: 0;
  padding-top: 3rem;
  justify-content: center;
}

@media (max-width: 1100px) {
  .ipd-left { display: none; }
  .ipd-body {
    padding: 1.5rem 1rem 2rem;
  }
  .ipd-header {
    padding: 0.75rem 1rem;
  }
  .ipd-header img { height: 2.25rem; max-width: 160px; }
  .ipd-right {
    width: 100%;
    max-width: 30.25rem;
  }
  .ipd-welcome {
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    line-height: 2.5rem;
  }
  .ipd-submit {
    margin-top: 1.5rem;
    width: 100%;
    height: 3.25rem;
    font-size: 1.125rem;
  }
  .ipd-forgot {
    margin-top: 0.5rem;
    font-size: 0.875rem;
  }
  .ipd-more-title .line { width: 7.5rem; }
  .ipd-more-btns button,
  .ipd-more-btns a {
    height: 3.25rem;
    font-size: 1rem;
  }
  .ipd-foot-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    text-align: center;
  }
  .ipd-foot-row .link.underline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .ipd-field input[type="text"],
  .ipd-field input[type="password"],
  .ipd-field input[type="email"] {
    height: 3.625rem;
    font-size: 16px;
  }
  .ipd-modal {
    width: 21.25rem;
    padding: 1.25rem;
  }
}
