/* ==========================================================================
   五中心登录页 —— 版式取自「登录页」模板，尺寸/间距/字号与原模板 1:1 一致
   仅把主色抽成 CSS 变量，供各中心按品牌色传入
   ========================================================================== */

html,
body {
  height: 100%;
  margin: 0;
}

.ny-page,
.ny-page *,
.ny-page *::before,
.ny-page *::after {
  box-sizing: border-box;
}

.ny-page {
  --accent: #0669f5;
  --accent-deep: #0247c6;
  --accent-soft: rgba(6, 105, 245, 0.16);
  --accent-tint: rgba(6, 105, 245, 0.1);

  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 768px;
  overflow: hidden;
  background-color: #f5f7fa;
  background-image:
    radial-gradient(760px 560px at 6% 2%, var(--accent-tint), transparent 62%),
    radial-gradient(980px 680px at 96% 102%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #f8fafd 0%, #f2f5fa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 14px;
  line-height: 21px;
  color: rgba(0, 0, 0, 0.65);
}

/* ---------- 左上角 logo（明好通字标，纯图标不带文字） ---------- */
.ny-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  text-decoration: none;
}

/* logo 右侧的中心名，与品牌标识组成一个锁定组合 */
.ny-logo-kicker {
  position: relative;
  padding-left: 17px;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 2px;
  color: var(--accent);
  white-space: nowrap;
}

.ny-logo-kicker::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 24px;
  background: #dde3ee;
  transform: translateY(-50%);
}

.ny-logo-img {
  display: block;
  width: auto;
  height: 44px;
  border-radius: 8px;
}

/* ---------- 主体 ---------- */
.ny-main {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
}

.ny-hero {
  position: relative;
  width: 593px;
  height: 534px;
  margin-right: 87px;
}

.ny-hero-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ny-hero-copy {
  position: absolute;
  left: 34px;
  top: 26px;
  width: 526px;
}

.ny-hero-title {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.5px;
  color: #15203a;
}

.ny-hero-title .hl {
  color: var(--accent);
}

.ny-hero-sub {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #6d7b93;
}

/* ---------- 卡片 ---------- */
.ny-card {
  position: relative;
  width: 480px;
  height: 517px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 40, 74, 0.1);
}

.ny-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 注册面板字段多，切换时改为随内容增高 */
.ny-card.is-tall {
  height: auto;
}

.ny-card.is-tall .ny-content {
  height: auto;
}

.ny-pane {
  padding: 64px 64px 54px;
}

/* ---------- Tab ---------- */
.ny-tabs {
  display: flex;
  height: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ny-tab {
  width: 50%;
  margin: 0;
  padding: 0 0 8px;
  font-size: 24px;
  font-weight: 400;
  line-height: 33px;
  color: #999;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s;
}

.ny-tab.is-active {
  font-weight: 600;
  color: var(--accent);
}

.ny-tab-txt {
  position: relative;
  display: inline-block;
}

.ny-tab.is-active .ny-tab-txt::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 56px;
  height: 4px;
  background: var(--accent);
  transform: translateX(-50%);
}

.ny-tabs--single .ny-tab {
  width: 100%;
  cursor: default;
}

/* ---------- 表单 ---------- */
.ny-form {
  margin: 40px 0 0;
}

.ny-field {
  position: relative;
}

.ny-field--pwd {
  margin-top: 26px;
}

.ny-phone {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
}

.ny-input {
  flex: 1 1 auto;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 4px 30px 4px 12px;
  border: 1px solid #e3e2e5;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: #191919;
  outline: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ny-input--pwd {
  border-radius: 4px;
}

.ny-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.ny-input::placeholder {
  color: #bfbfbf;
}

.ny-clear {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 9;
  display: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  transform: translateY(-50%);
  cursor: pointer;
}

.ny-clear svg {
  display: block;
  width: 18px;
  height: 18px;
  color: #c2c8d4;
}

.ny-clear:hover svg {
  color: #98a1b3;
}

.ny-clear.is-show {
  display: block;
}

.ny-eye {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  transform: translateY(-50%);
  cursor: pointer;
}

.ny-eye svg {
  display: block;
  width: 24px;
  height: 24px;
  color: #aab2c0;
}

.ny-eye .ico-eye-off {
  display: none;
}

.ny-eye.is-on .ico-eye {
  display: none;
}

.ny-eye.is-on .ico-eye-off {
  display: block;
}

.ny-eye.is-on svg {
  color: var(--accent);
}

.ny-field--pwd .ny-input {
  padding-right: 44px;
}

/* 验证码：图片嵌在输入框右侧，点击刷新 */
.ny-field--cap {
  margin-top: 24px;
}

.ny-input--cap {
  padding-right: 118px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ny-cap {
  position: absolute;
  top: 1px;
  right: 1px;
  display: block;
  width: 104px;
  height: 42px;
  border-left: 1px solid #eef1f6;
  border-radius: 0 3px 3px 0;
  background: #f7f9fd;
  cursor: pointer;
  user-select: none;
}

.ny-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  margin-top: 26px;
}

.ny-check-label {
  display: inline-flex;
  align-items: center;
  height: 20px;
  font-size: 14px;
  line-height: 20px;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.ny-check {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.ny-check:checked {
  border-color: var(--accent);
  background-color: var(--accent);
}

.ny-check:checked::after {
  content: "";
  position: absolute;
  top: 1.5px;
  left: 4.5px;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.ny-forgot {
  position: relative;
  top: -1px;
  font-size: 14px;
  line-height: 20px;
  color: #191919;
  text-decoration: none;
}

.ny-forgot--muted {
  color: #98a1b1;
  cursor: default;
}

.ny-submit-row {
  margin-top: 36px;
}

.ny-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ny-submit:hover {
  background: var(--accent-deep);
}

.ny-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.ny-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  font-size: 14px;
  line-height: 20px;
  color: #333;
}

.ny-agree .ny-check-label {
  color: #333;
}

.ny-agree .ny-check {
  margin-right: 0;
}

.ny-agree-text {
  padding: 0 8px;
}

.ny-agree-link {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- 注册面板 ---------- */
.ny-reg {
  margin-top: 30px;
}

/* 注册面板的字段间距与登录面板保持一致（24px） */
.ny-reg > * + .ny-field {
  margin-top: 24px;
}

.ny-reg .ny-submit-row {
  margin-top: 26px;
}

.ny-reg .ny-agree {
  margin-top: 18px;
}

.ny-reg .ny-input {
  padding-right: 12px;
}

.ny-reg .ny-input--eye {
  padding-right: 40px;
}

/* ---------- 错误 / 成功提示（浮层，不挤压版式） ---------- */
.ny-pane > .alert {
  position: absolute;
  left: 50%;
  top: -46px;
  z-index: 30;
  width: max-content;
  max-width: 480px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(20, 35, 60, 0.14);
  transform: translateX(-50%);
}

.ny-pane > .alert.is-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fdd9d5;
}

.ny-pane > .alert.is-ok {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #c9f0d9;
}

/* ---------- 底部备案 ---------- */
.ny-site-note {
  position: absolute;
  left: 50%;
  bottom: 24px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #191919;
  white-space: nowrap;
  opacity: 0.3;
  transform: translateX(-50%);
}

[hidden] {
  display: none !important;
}

/* 窄屏保持同样的构图，整体等比缩小 */
@media (max-width: 1199px) {
  .ny-main {
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@media (max-width: 959px) {
  .ny-main {
    transform: translate(-50%, -50%) scale(0.6);
  }
}

/* 手机：隐藏左侧插画，卡片铺满 */
@media (max-width: 700px) {
  .ny-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    padding-bottom: 4px;
  }

  .ny-logo {
    top: 22px;
    left: 20px;
  }

  .ny-main {
    position: relative;
    left: auto;
    top: auto;
    display: block;
    padding: 88px 16px 8px;
    transform: none;
  }

  .ny-hero {
    display: none;
  }

  .ny-card {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
  }

  .ny-content {
    height: auto;
  }

  .ny-pane {
    padding: 32px 24px 28px;
  }

  .ny-tab {
    font-size: 21px;
    line-height: 30px;
  }

  .ny-tabs {
    height: 36px;
  }

  .ny-form {
    margin-top: 28px;
  }

    .ny-pane > .alert {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
    max-width: none;
    transform: none;
  }

    .ny-site-note {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 24px 0 18px;
    padding: 0 20px;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
    white-space: normal;
    transform: none;
  }
}

/* ---------- 找回密码（单卡片版式） ---------- */
.ny-main--solo {
  display: block;
}

.ny-card--reset {
  width: 460px;
  height: auto;
}

.ny-card--reset .ny-pane {
  padding: 44px 56px 38px;
}

.ny-solo-head {
  margin-bottom: 20px;
}

.ny-solo-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  color: #15203a;
}

.ny-solo-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6d7b93;
}

.ny-card--reset .ny-form {
  margin-top: 0;
}

.ny-card--reset .ny-form.is-hidden {
  display: none;
}

.ny-card--reset .ny-field + .ny-field {
  margin-top: 14px;
}

.ny-code-row {
  display: flex;
  gap: 8px;
}

.ny-code-row .ny-input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 12px;
}

.ny-code-btn {
  flex: 0 0 112px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--accent-tint);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ny-code-btn:hover:not(:disabled) {
  background: var(--accent-soft);
}

.ny-code-btn:disabled {
  background: #f3f5f9;
  color: #9aa7b8;
  cursor: not-allowed;
}

.ny-solo-hint {
  margin: 12px 0 0;
  min-height: 18px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  color: #9aa7b8;
  word-break: break-all;
}

.ny-solo-foot {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.ny-solo-foot a {
  color: #5b6b84;
  text-decoration: none;
}

.ny-solo-foot a:hover {
  color: var(--accent);
}

@media (max-width: 760px) {
  .ny-card--reset {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .ny-card--reset .ny-pane {
    padding: 30px 24px 26px;
  }

  .ny-code-btn {
    flex: 0 0 100px;
  }
}

/* 找回密码：图形验证码（风控升级时才显示） */
.ny-cap-img {
  flex: 0 0 104px;
  display: block;
  width: 104px;
  height: 42px;
  border: 1px solid #e3e2e5;
  border-radius: 4px;
  background: #f7f9fd;
  cursor: pointer;
  user-select: none;
}
