/* ==========================================================================
   上海英登 MRO 商城 - 登录与注册样式体系 (100% 深度对齐英登电商设计规范)
   包含：
   1. 登录页：左侧大幅 MRO 品牌海报 + 右侧极简双/三方式登录卡片
   2. 注册页：英登经典顶部步骤条 (用户类型 -> 手机号验证 -> 公司信息 -> 注册完成)
              个人3步 / 企业4步动态分流
   ========================================================================== */

.auth-page-body {
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部通用 Header */
.auth-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}

.auth-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-header .header-logo {
  width: auto;
  justify-content: flex-start;
}

.auth-header .header-logo img {
  height: 76px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.auth-header-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 2px solid #e2e8f0;
  letter-spacing: 1px;
}

.auth-header-extra {
  font-size: 13px;
  color: #64748b;
}

.auth-header-extra a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.auth-header-extra a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   1. 登录页主体 (严格 100% 对齐设计原型 2：纯净无边框扁平结构)
   ========================================================================== */
.login-page-container {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  box-sizing: border-box;
}

/* 左侧 MRO 自营电商大幅海报 (纯净平铺对齐英登) */
.login-promo-banner {
  flex: 1;
  max-width: 540px;
  position: relative;
  background: #ffffff;
}

.promo-top-tag {
  display: inline-block;
  background: #1e293b;
  color: #facc15;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 16px;
  border-radius: 2px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.promo-headline-mro {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.promo-headline-mro .mro-badge {
  color: #eab308;
  font-style: italic;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}

.promo-sub-ribbon {
  display: inline-block;
  background: #fef08a;
  color: #047553;
  font-size: 20px;
  font-weight: 900;
  padding: 4px 18px;
  margin-top: 6px;
  border-radius: 2px;
  letter-spacing: 1.5px;
}

/* 工业品展品小阵列 */
.promo-products-montage {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  padding: 14px;
}

.montage-item {
  flex: 1;
  text-align: center;
}

.montage-item img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 4px;
}

.montage-item .title {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.promo-mini-promises {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
  color: #64748b;
}

/* 右侧无框扁平登录区 (严格对齐设计原型 2) */
.login-flat-box {
  width: 360px;
  flex-shrink: 0;
  background: #ffffff;
}

/* 仅保留两 Tab：账户密码登录 vs 手机验证码登录 (完全还原英登) */
.login-tabs-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}

.login-tab-btn {
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  padding-bottom: 6px;
  position: relative;
  transition: all 0.2s ease;
}

.login-tab-btn:hover {
  color: #047553;
}

.login-tab-btn.active {
  color: #047553;
}

.login-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #047553;
  border-radius: 2px;
}

.login-form-group {
  margin-bottom: 16px;
}

.login-input-field {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 0 14px;
  font-size: 13.5px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  color: #1e293b;
}

.login-input-field::placeholder {
  color: #94a3b8;
}

.login-input-field:focus {
  border-color: #047553;
  box-shadow: 0 0 0 2px rgba(4, 117, 83, 0.12);
  outline: none;
}

.login-code-group {
  display: flex;
  gap: 10px;
}

.btn-send-code {
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-send-code:hover:not(:disabled) {
  border-color: #047553;
  color: #047553;
  background: #f0fdf4;
}

.btn-send-code:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-login-submit {
  width: 100%;
  height: 44px;
  font-size: 17px;
  font-weight: 700;
  background: #047553;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  letter-spacing: 6px;
  margin-top: 14px;
}

.btn-login-submit:hover {
  background: #035c41;
}

.login-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: #64748b;
}

.login-bottom-row a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-bottom-row a:hover {
  color: #047553;
}

.login-bottom-row .link-register {
  color: #64748b;
}

.login-bottom-row .link-register:hover {
  color: #047553;
  text-decoration: underline;
}

/* ==========================================================================
   2. 注册页主体 (100% 对齐设计原型 1 & 3)
   ========================================================================== */
.register-page-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 16px 60px;
  box-sizing: border-box;
}

/* 顶部英登标准步骤导航条 (Step Bar) */
.reg-step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #94a3b8;
  font-weight: 600;
  transition: all 0.2s ease;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step-item.active {
  color: #047553;
}

.step-item.active .step-num {
  background: #047553;
  color: #ffffff;
}

.step-item.completed {
  color: #047553;
}

.step-item.completed .step-num {
  background: #047553;
  color: #ffffff;
}

.step-divider-line {
  width: 60px;
  height: 2px;
  background: #cbd5e1;
  margin: 0 14px;
}

.step-divider-line.active {
  background: #047553;
}

/* 步骤 1：选择注册类型卡片 */
.register-type-selection {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 30px 0 40px;
}

.register-type-card {
  width: 240px;
  height: 210px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.register-type-card:hover {
  border-color: #047553;
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(4, 117, 83, 0.12);
}

.register-type-card.selected {
  border-color: #047553;
  background: #f0fdf4;
}

.card-ribbon-discount {
  position: absolute;
  top: 14px;
  left: -28px;
  width: 96px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.type-card-icon {
  font-size: 52px;
  color: #047553;
  margin-bottom: 12px;
}

.type-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.type-card-sub {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  padding: 0 14px;
  line-height: 1.5;
}

.register-agree-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 30px;
}

.register-agree-box a {
  color: #047553;
  text-decoration: none;
}

.register-agree-box a:hover {
  text-decoration: underline;
}

/* 步骤 2 & 3 表单样式 (严格对齐设计原型 1 & 3) */
.reg-form-horizontal {
  max-width: 560px;
  margin: 0 auto;
}

.reg-form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
}

.reg-form-label {
  width: 120px;
  white-space: nowrap;
  text-align: right;
  padding-right: 18px;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
  line-height: 42px;
  flex-shrink: 0;
}

.reg-form-label .req {
  color: #ef4444;
  margin-right: 3px;
}

.reg-form-content {
  flex: 1;
  position: relative;
}

.reg-input-control {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
  color: #1e293b;
  transition: all 0.2s ease;
}

.reg-input-control:focus {
  border-color: #047553;
  outline: none;
  box-shadow: 0 0 0 2px rgba(4, 117, 83, 0.15);
}

/* 密码框带眼睛切换 */
.pwd-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-toggle-eye {
  position: absolute;
  right: 14px;
  cursor: pointer;
  color: #64748b;
  font-size: 18px;
  transition: color 0.15s ease;
}

.pwd-toggle-eye:hover {
  color: #047553;
}

.pwd-rule-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.5;
}

/* 图形验证码展示区 */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-img-box {
  height: 42px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.captcha-code-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #047553;
  text-decoration: line-through;
  font-style: italic;
  transform: skewX(-10deg);
}

/* 底部操作按钮胶囊 (英登标准：上一步 / 下一步 胶囊居中) */
.reg-buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-left: 120px;
}

.btn-capsule {
  width: 160px;
  height: 44px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  letter-spacing: 1px;
}

.btn-capsule-primary {
  background: #047553;
  color: #ffffff;
}

.btn-capsule-primary:hover {
  background: #035c41;
  box-shadow: 0 4px 12px rgba(4, 117, 83, 0.25);
}

.btn-capsule-primary:disabled {
  background: #cbd5e1;
  color: #ffffff;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-capsule-outline {
  background: #ffffff;
  color: #047553;
  border: 1px solid #047553;
}

.btn-capsule-outline:hover {
  background: #f0fdf4;
}

.link-reset-form {
  font-size: 13px;
  color: #3b82f6;
  text-decoration: none;
  cursor: pointer;
  margin-left: 8px;
}

.link-reset-form:hover {
  text-decoration: underline;
}

/* 步骤 4：注册成功展示卡片 */
.reg-success-card {
  text-align: center;
  padding: 40px 20px;
}

.success-icon-big {
  font-size: 64px;
  color: #047553;
  margin-bottom: 16px;
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.success-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}

.success-info-box {
  max-width: 480px;
  margin: 0 auto 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px 24px;
  text-align: left;
  font-size: 13px;
  color: #334155;
  line-height: 2;
}

/* ==========================================================================
   找回密码页面专用样式体系 (Forgot Password - 西域风格 1:1 像素级复刻)
   ========================================================================== */
.forgot-main-wrapper {
  flex: 1;
  background-color: #f8fafc;
  padding: 36px 0 60px;
}

.forgot-card-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 46px 60px 60px;
}

/* 顶部三步指示条 */
.forgot-step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 54px;
}

.forgot-step-bar .step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #94a3b8;
  font-weight: 600;
}

.forgot-step-bar .step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.forgot-step-bar .step-item.active {
  color: #047553;
}

.forgot-step-bar .step-item.active .step-num {
  background: #047553;
  color: #ffffff;
}

.forgot-step-bar .step-item.completed {
  color: #047553;
}

.forgot-step-bar .step-item.completed .step-num {
  background: #047553;
  color: #ffffff;
}

.forgot-step-bar .step-line {
  width: 140px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 18px;
  transition: background 0.3s ease;
}

.forgot-step-bar .step-line.active {
  background: #047553;
}

/* 表单主体 */
.forgot-form-box {
  max-width: 540px;
  margin: 0 auto;
}

.forgot-form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
}

.forgot-form-label {
  width: 120px;
  text-align: right;
  padding-top: 10px;
  padding-right: 14px;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
  flex-shrink: 0;
}

.forgot-form-label .req {
  color: #dc2626;
  margin-right: 2px;
}

.forgot-form-field {
  flex: 1;
  position: relative;
}

.forgot-input-field {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forgot-input-field:focus {
  border-color: #047553;
  box-shadow: 0 0 0 3px rgba(4, 117, 83, 0.12);
}

.forgot-input-field::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.forgot-switch-wrap {
  text-align: right;
  margin-top: 6px;
}

.forgot-switch-link {
  font-size: 12.5px;
  color: #047553;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.forgot-switch-link:hover {
  text-decoration: underline;
}

.forgot-captcha-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forgot-captcha-canvas {
  width: 110px;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  cursor: pointer;
  display: block;
}

.forgot-captcha-refresh {
  font-size: 12px;
  color: #047553;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.forgot-captcha-refresh:hover {
  text-decoration: underline;
}

.forgot-code-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-forgot-send-code {
  height: 42px;
  padding: 0 18px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-forgot-send-code:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-forgot-send-code:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.btn-forgot-submit {
  width: 100%;
  height: 44px;
  background: #047553;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 10px;
}

.btn-forgot-submit:hover {
  background: #035c41;
}

/* 密码强度计 */
.pwd-strength-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.pwd-strength-bar {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.pwd-strength-bar.weak {
  background: #ef4444;
}

.pwd-strength-bar.medium {
  background: #f59e0b;
}

.pwd-strength-bar.strong {
  background: #10b981;
}

.pwd-strength-text {
  font-size: 12px;
  color: #64748b;
  min-width: 48px;
  text-align: right;
}

/* 步骤 3：完成页面样式 */
.forgot-success-box {
  text-align: center;
  padding: 20px 0 30px;
}

.forgot-success-icon {
  font-size: 64px;
  color: #047553;
  margin-bottom: 16px;
}

.forgot-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.forgot-success-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-forgot-login-now {
  display: inline-block;
  min-width: 200px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: #047553;
  color: #ffffff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-forgot-login-now:hover {
  background: #035c41;
}

