/* ==========================================================================
   登录页样式 —— 左右两栏 B 端企业后台风格（蓝白商务配色）
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 全页统一品牌蓝渐变背景：左右两区共享同一底色，自然融合、无分界 */
  background: linear-gradient(150deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
}

/* 主区域：左侧品牌 + 右侧登录，占满除 Footer 外的空间 */
.auth-main {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

/* --------------------------------------------------------------------------
   左侧品牌展示区
   -------------------------------------------------------------------------- */

.auth-brand {
  flex: 1.15;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}

/* 装饰圆 */
.auth-brand::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -160px;
  right: -120px;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -120px;
  left: -90px;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-brand-inner::-webkit-scrollbar {
  display: none;
}

/* Logo：白底卡片承载彩色 logo 图片 */
.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo-card {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.auth-logo-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.auth-brand-logo .logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.auth-brand-logo .logo-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.auth-brand-logo .logo-tag {
  font-size: 11.5px;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* 企业图片 */
.auth-brand-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  line-height: 0;
  flex-shrink: 0;
}

.auth-brand-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.auth-brand h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
}

.auth-brand-desc {
  font-size: 13.5px;
  line-height: 1.85;
  opacity: 0.92;
  text-align: justify;
}

/* 业务标签：年轻活力 */
.auth-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-brand-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(2px);
}

.auth-brand-tags .tag i {
  font-size: 12px;
}

/* 联系信息 */
.auth-brand-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-brand-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  opacity: 0.95;
}

.auth-brand-contact .contact-item i {
  margin-top: 3px;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   右侧登录区
   -------------------------------------------------------------------------- */

.auth-form-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}

/* 柔光装饰：与左侧品牌区装饰圆同风格的白色微光圆，融入统一背景 */
.auth-form-wrap::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -160px;
  left: -140px;
  pointer-events: none;
}

.auth-form-wrap::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -130px;
  right: -100px;
  pointer-events: none;
}

.auth-form-box {
  /* 毛玻璃卡片：浮于统一蓝色背景之上，保证表单可读性与聚焦感 */
  width: 100%;
  max-width: 472px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 34px 36px 26px;
}

/* 移动端顶部 Logo（桌面端隐藏） */
.auth-mobile-logo {
  display: none;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-mobile-logo img {
  height: 52px;
  object-fit: contain;
}

.auth-form-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.auth-form-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 22px;
}

.auth-form .form-item {
  display: block;
  margin-bottom: 18px;
}

.auth-form .form-label {
  display: block;
  width: auto;
  text-align: left;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #334155;
  font-weight: 500;
  font-size: 13px;
}

.auth-form .form-control {
  height: 44px;
  font-size: 14px;
  padding: 8px 14px 8px 42px;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.auth-input-wrap .input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
}

.auth-input-wrap .input-suffix:hover {
  color: #2563eb;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
  font-size: 13px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox input {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #2563eb;
}

.auth-link {
  color: #2563eb;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  height: 46px;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-footer {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   底部 Footer 版权区：通栏置底
   -------------------------------------------------------------------------- */

.auth-footer-bar {
  flex-shrink: 0;
  /* 透明融入统一蓝底：仅保留自上而下的极淡加深与顶部光边，不产生色块断层 */
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.05) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  text-align: center;
}

.auth-footer-bar .fp-sep {
  color: rgba(255, 255, 255, 0.32);
}

/* --------------------------------------------------------------------------
   忘记密码弹窗
   -------------------------------------------------------------------------- */

.fp-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* hidden 属性优先于 display:flex（弹窗关闭态） */
.fp-mask[hidden] {
  display: none;
}

.fp-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: fpIn 0.18s ease-out;
}

@keyframes fpIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}

.fp-title {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-title i {
  color: #2563eb;
}

.fp-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
}

.fp-close:hover {
  background: #f1f5f9;
  color: #475569;
}

/* 步骤条 */
.fp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px 4px;
}

.fp-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #94a3b8;
}

.fp-step i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-style: normal;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fp-step.active {
  color: #2563eb;
  font-weight: 500;
}

.fp-step.active i {
  background: #2563eb;
  color: #fff;
}

.fp-step.done i {
  background: #16a34a;
  color: #fff;
}

.fp-step-line {
  width: 44px;
  height: 1.5px;
  background: #e2e8f0;
  border-radius: 2px;
}

/* 表单体 */
.fp-body {
  padding: 14px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* hidden 属性优先于 display:flex（步骤切换） */
.fp-body[hidden] {
  display: none;
}

.fp-field label {
  display: block;
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
  margin-bottom: 6px;
}

.fp-input-wrap {
  position: relative;
}

.fp-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.fp-input-wrap input {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  padding: 8px 12px 8px 36px;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.fp-input-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.fp-err {
  min-height: 16px;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.5;
  margin-top: 4px;
}

.fp-hint {
  font-size: 12px;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 7px 10px;
  line-height: 1.5;
}

.fp-code-row {
  display: flex;
  gap: 10px;
}

.fp-code-row .fp-input-wrap {
  flex: 1;
}

.fp-send-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.fp-send-btn:hover:not(:disabled) {
  background: #2563eb;
  color: #fff;
}

.fp-send-btn:disabled {
  border-color: #dbe2ec;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.fp-next-btn {
  height: 44px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.fp-next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.fp-back-btn {
  height: 38px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fp-back-btn:hover {
  color: #2563eb;
}

/* 成功态 */
.fp-success {
  align-items: center;
  text-align: center;
  padding: 26px 22px 26px;
}

.fp-success > i {
  font-size: 52px;
  color: #16a34a;
  margin-bottom: 6px;
}

.fp-success-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.fp-success-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.fp-success .fp-next-btn {
  width: 100%;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .auth-brand {
    padding: 32px 36px;
  }

  .auth-brand h1 {
    font-size: 22px;
  }

  .auth-brand-desc {
    font-size: 12.5px;
  }
}

@media (max-width: 920px) {
  .auth-brand {
    display: none;
  }

  .auth-mobile-logo {
    display: flex;
  }

  .auth-form-wrap {
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  .auth-footer-bar {
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
  }

  .auth-footer-bar .fp-sep {
    display: none;
  }
}
