/* ============================================
   auth-v2.css — 通用认证页样式
   命名空间 .auth-page 完全隔离旧 CSS 干扰
   适用于：登录、注册、机构注册、审核结果
   配色：slate 灰系，通用百搭，任何公司不违和
   ============================================ */

/* ----- CSS 变量 ----- */
.auth-page {
  --ap-bg: #f0f2f5;
  --ap-white: #ffffff;
  --ap-dark: #1e293b;
  --ap-gray: #64748b;
  --ap-light: #94a3b8;
  --ap-border: #e2e8f0;
  /* slate 灰系主色 — 通用不挑品牌 */
  --ap-primary: #475569;
  --ap-primary-dark: #334155;
  --ap-primary-bg: #f1f5f9;
  --ap-primary-light: #e2e8f0;
  --ap-primary-border: #cbd5e1;
  --ap-focus-ring: rgba(148, 163, 184, 0.22);
  --ap-radius: 12px;
  --ap-radius-sm: 8px;
  --ap-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --ap-shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
  --ap-transition: all 0.2s ease;
}

/* ----- 页面级（flex 粘性底部） ----- */
.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ap-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ap-dark);
  margin: 0;
  padding: 0;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

/* ----- 头部 ----- */
.auth-page .mheader {
  background: var(--ap-white);
  border-bottom: 1px solid var(--ap-border);
  padding: 0 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.auth-page .mhead {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.auth-page .mhead .logo {
  flex-shrink: 0;
}

.auth-page .mhead .logo img {
  height: auto;
  width: auto;
}

.auth-page .mhead .tit {
  font-size: 14px;
  color: var(--ap-gray);
  margin-left: auto;
}

.auth-page .mhead .tit a {
  color: var(--ap-primary);
  text-decoration: none;
}

.auth-page .mhead .tit a:hover {
  color: var(--ap-primary-dark);
}

/* 头部 "发信息" 按钮 */
.auth-page .mhead .tit .head-post-btn {
  display: inline-block;
  background: var(--ap-primary-light);
  color: var(--ap-primary-dark);
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--ap-transition);
  margin-left: 6px;
}

.auth-page .mhead .tit .head-post-btn:hover {
  background: var(--ap-primary-border);
  color: var(--ap-primary-dark);
}

/* ----- 主体包装（flex:1 撑开，footer 推到底部） ----- */
.auth-wrapper {
  flex: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 60px;
}

/* ----- 卡片 ----- */
.auth-card {
  background: var(--ap-white);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  overflow: hidden;
}

/* ----- 步骤条 ----- */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ap-white);
  border-bottom: 1px solid var(--ap-border);
}

.auth-steps span {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 13px;
  color: var(--ap-light);
  position: relative;
  background: var(--ap-white);
}

.auth-steps span + span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: var(--ap-border);
}

.auth-steps span.cur {
  color: var(--ap-primary-dark);
  font-weight: 700;
  background: var(--ap-primary-bg);
}

.auth-steps span a {
  font-size: 12px;
  color: var(--ap-primary);
  text-decoration: none;
  margin-left: 4px;
}

/* ----- 卡片主体 ----- */
.auth-card-body {
  padding: 32px;
}

.auth-card-body.p0 {
  padding: 0;
}

/* ----- 注册类型选择卡 ----- */
.auth-selector {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ap-white);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 28px 32px;
  cursor: pointer;
  transition: var(--ap-transition);
  text-decoration: none;
  margin-bottom: 16px;
}

.auth-selector:hover {
  border-color: var(--ap-primary-border);
  box-shadow: var(--ap-shadow-lg);
  transform: translateY(-2px);
}

.auth-selector .auth-sel-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ap-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-selector .auth-sel-icon .icon-person,
.auth-selector .auth-sel-icon .icon-org {
  width: 28px;
  height: 28px;
  background-color: var(--ap-primary);
}

.auth-selector .auth-sel-icon .icon-person {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.auth-selector .auth-sel-icon .icon-org {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E") center/contain no-repeat;
}

.auth-selector .auth-sel-text .auth-sel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ap-dark);
}

.auth-selector .auth-sel-text .auth-sel-desc {
  font-size: 13px;
  color: var(--ap-light);
  margin-top: 4px;
}

.auth-selector:last-child {
  margin-bottom: 0;
}

/* ----- 表单标题 ----- */
.auth-form-title {
  padding: 20px 32px;
  border-bottom: 1px solid var(--ap-border);
}

.auth-form-title a,
.auth-form-title span,
.auth-form-title .current {
  font-size: 16px;
  font-weight: 700;
  color: var(--ap-dark);
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ap-primary);
}

/* ----- 表单 Table ----- */
.auth-form {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: none;
  table-layout: auto;
}

.auth-form td {
  padding: 0 0 20px 0;
  font-size: 14px;
  vertical-align: middle;
  border: none;
  text-align: left;
}

.auth-form tr:last-child td {
  padding-bottom: 0;
}

/* 标签列 */
.auth-form .auth-label {
  width: 90px;
  text-align: right;
  padding-right: 14px;
  font-size: 14px;
  color: var(--ap-dark);
  font-weight: 500;
  white-space: nowrap;
  line-height: 42px;
  vertical-align: top;
}

.auth-form .auth-label font[color="red"] {
  color: #ef4444;
}

/* ----- 输入框 ----- */
.auth-page input[type="text"],
.auth-page input[type="password"],
.auth-page input.input,
.auth-page textarea.input {
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  font-size: 14px;
  color: var(--ap-dark);
  background: var(--ap-white);
  outline: none;
  font-family: inherit;
  line-height: 42px;
  transition: var(--ap-transition);
}

.auth-page textarea.input {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.auth-page input[type="text"]:focus,
.auth-page input[type="password"]:focus,
.auth-page input.input:focus,
.auth-page textarea.input:focus {
  border-color: var(--ap-primary-border);
  box-shadow: 0 0 0 3px var(--ap-focus-ring);
}

.auth-page input.input-large { width: 280px; }
.auth-page input.input-small { width: 140px; }
.auth-page input.input-5 { width: 200px; }

.auth-page input::placeholder,
.auth-page textarea::placeholder {
  color: var(--ap-light);
}

/* ----- 验证码图片 ----- */
.auth-page .authcode {
  border-radius: var(--ap-radius-sm);
  cursor: pointer;
  border: 1px solid var(--ap-border);
  vertical-align: middle;
  height: 42px;
}

/* ----- 密码强度 ----- */
.auth-page .pw_check {
  display: inline-flex;
  gap: 4px;
  height: auto;
  background: none;
  width: auto;
}

.auth-page .pw_check span {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  border-radius: 4px;
  background: var(--ap-border);
  color: var(--ap-light);
}

.auth-page .pw_check span strong.c_orange {
  color: var(--ap-primary);
  font-weight: 700;
}

.auth-page #pw_check_1,
.auth-page #pw_check_2,
.auth-page #pw_check_3 {
  background: none;
}

/* ----- 提交按钮（浅色底 + 深色字） ----- */
.auth-page .auth-btn,
.auth-page input.go_reg,
.auth-page input.typebtn {
  width: 280px;
  height: 46px;
  border: 1px solid var(--ap-primary-border);
  border-radius: var(--ap-radius-sm);
  background: var(--ap-primary-light);
  color: var(--ap-primary-dark);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ap-transition);
  letter-spacing: 1px;
  padding: 0;
  box-sizing: border-box;
}

.auth-page .auth-btn:hover,
.auth-page input.go_reg:hover,
.auth-page input.typebtn:hover {
  background: var(--ap-primary-border);
  color: var(--ap-dark);
}

.auth-page .auth-btn-block {
  width: 280px;
}

/* ----- 链接行 ----- */
.auth-page .auth-links {
  text-align: center;
  font-size: 13px;
  color: var(--ap-gray);
  margin-top: 12px;
}

.auth-page .auth-links a {
  color: var(--ap-gray);
  text-decoration: none;
}

.auth-page .auth-links a:hover {
  color: var(--ap-primary);
}

/* ----- 复选框区域 ----- */
.auth-page .auth-check-label {
  font-size: 13px;
  color: var(--ap-gray);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auth-page input.checkbox {
  margin: 0 4px 0 0;
  vertical-align: middle;
}

/* ----- 短信验证码按钮 ----- */
.auth-page #sendmsg,
.auth-page .auth-btn-sms {
  height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--ap-primary-border);
  border-radius: var(--ap-radius-sm);
  background: var(--ap-white);
  color: var(--ap-primary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--ap-transition);
  white-space: nowrap;
  margin-left: 8px;
  font-family: inherit;
}

.auth-page #sendmsg:hover {
  background: var(--ap-primary-bg);
}

/* ----- QQ/微信登录 ----- */
.auth-page .auth-social {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--ap-border);
  color: var(--ap-gray);
  font-size: 13px;
}

.auth-page .auth-social a img {
  vertical-align: middle;
  transition: opacity 0.2s;
  margin-top: 12px;
}

.auth-page .auth-social a:hover img {
  opacity: 0.8;
}

/* ----- 底部链接（已有账号 / 去登录） ----- */
.auth-page .auth-bottom-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ap-gray);
}

.auth-page .auth-bottom-link a {
  color: var(--ap-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-page .auth-bottom-link a:hover {
  color: var(--ap-primary-dark);
}

/* ----- 校验提示 ----- */
.auth-page span.no {
  color: #ef4444;
  font-size: 12px;
  line-height: 35px;
  margin-left: 8px;
}

.auth-page span.yes {
  color: #22c55e;
  font-size: 12px;
}

.auth-page #code,
.auth-page #smscode,
.auth-page #wer {
  font-size: 12px;
  color: #ef4444;
  margin-left: 8px;
}

/* ----- 验证回答文字 ----- */
.auth-page .qfont {
  font-size: 13px;
  color: var(--ap-gray);
  margin-top: 4px;
}

/* ----- 页脚（粘性底部） ----- */
.auth-page .footer {
  flex-shrink: 0;
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  color: var(--ap-light);
  background: var(--ap-white);
  border-top: 1px solid var(--ap-border);
}

.auth-page .footer a {
  color: var(--ap-gray);
  text-decoration: none;
  margin: 0 4px;
}

.auth-page .footer a:hover {
  color: var(--ap-primary);
}

.auth-page .footer .my_mps {
  display: block;
  margin-top: 4px;
}

.auth-page .footer .my_mps a,
.auth-page .footer .my_mps em {
  color: var(--ap-light);
  font-size: 11px;
  font-style: normal;
  text-decoration: none;
}

/* select 下拉框 */
.auth-page select.input {
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  font-size: 14px;
  color: var(--ap-dark);
  background: var(--ap-white);
  outline: none;
  transition: var(--ap-transition);
}

/* 文件上传 input[type=file] */
.auth-page input[type="file"] {
  font-size: 13px;
}

/* ----- 注册协议区 ----- */
.auth-page .xiyi {
  padding: 24px 32px;
  border-top: 1px solid var(--ap-border);
  margin-top: 24px;
}

.auth-page #xieyi {
  background: var(--ap-bg);
  border-radius: var(--ap-radius-sm);
  padding: 20px;
}

.auth-page .xieye_nr {
  max-height: 200px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--ap-gray);
  line-height: 2;
}

.auth-page .xieye_nr p {
  margin: 0 0 8px;
}

/* ----- 审核结果页 ----- */
.auth-page .auth-result {
  padding: 48px 32px;
  text-align: center;
}

.auth-page .auth-result h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ap-dark);
  margin: 0 0 20px;
}

.auth-page .auth-result h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ap-dark);
  margin: 0 0 20px;
}

.auth-page .auth-result p {
  font-size: 14px;
  color: var(--ap-gray);
  line-height: 2;
  margin: 8px 0;
}

.auth-page .auth-result p a {
  color: var(--ap-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-page .auth-result p a:hover {
  text-decoration: underline;
}

.auth-page .auth-result p b {
  color: var(--ap-primary);
}

/* ----- 表单内链接 ----- */
.auth-page .auth-form a {
  color: var(--ap-primary);
  text-decoration: none;
  font-size: 13px;
}

.auth-page .auth-form a:hover {
  text-decoration: underline;
}

/* ----- 标签内容居中 ----- */
.auth-page .auth-center {
  text-align: center;
  width: 100%;
}

/* ----- 清除旧装饰 ----- */
.auth-page .headtop-wrap,
.auth-page .headtop,
.auth-page .section-sub-thumb,
.auth-page .banner-section .image-layer,
.auth-page .header-menu ul li a::before,
.auth-page .clearfix,
.auth-page .clear {
  display: none;
}

/* ----- 响应式 ----- */
@media (max-width: 640px) {
  .auth-wrapper {
    padding: 24px 16px 40px;
    max-width: 100%;
  }

  .auth-card-body {
    padding: 24px 20px;
  }

  .auth-page .mhead {
    padding: 0 8px;
  }

  .auth-page .mhead .logo img {
    height: 28px;
  }

  .auth-page .mhead .tit {
    font-size: 12px;
  }

  .auth-page .mhead .tit .head-post-btn {
    padding: 4px 10px;
    font-size: 12px;
  }

  .auth-page .auth-form .auth-label {
    width: 65px;
    padding-right: 8px;
    font-size: 13px;
  }

  .auth-page input.input-large {
    width: 100%;
  }

  .auth-page .auth-btn,
  .auth-page input.go_reg,
  .auth-page input.typebtn {
    width: 100%;
  }

  .auth-selector {
    padding: 20px 24px;
  }

  .auth-selector .auth-sel-icon {
    width: 44px;
    height: 44px;
  }

  .auth-selector .auth-sel-text .auth-sel-title {
    font-size: 15px;
  }

  .auth-page .xiyi {
    padding: 20px;
  }

  .auth-page .auth-result {
    padding: 32px 20px;
  }

  .auth-page .auth-result h1 {
    font-size: 18px;
  }

  .auth-steps span {
    font-size: 12px;
    padding: 12px 4px;
  }

  .auth-form-title {
    padding: 16px 20px;
  }
}
