/* ==========================================================================
   FULILAIPOS · 登录 / 免费注册
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 80% 60% at 78% 8%, #eaf1ff 0%, #f7faff 42%, #fff 78%);
}

.auth-page .site-header {
  position: static;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.auth-header-actions .link-plain {
  font-size: 13px;
  color: var(--ink-3);
  transition: color 0.18s ease;
}

.auth-header-actions .link-plain:hover {
  color: var(--blue);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 20px 0 64px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 420px minmax(0, 540px);
  justify-content: center;
  gap: 28px;
  align-items: stretch;
  width: 100%;
  max-width: 988px;
  margin-inline: auto;
}

/* -------------------------------- 品牌侧栏 ------------------------------- */

.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px 40px 38px;
  border-radius: 12px;
  color: #fff;
  background: radial-gradient(ellipse 120% 100% at 88% 12%, #4b7bff 0%, rgba(75, 123, 255, 0) 62%), var(--blue);
  box-shadow: 0 20px 48px rgba(40, 92, 240, 0.16);
}

.auth-aside .aside-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #a8c1ff;
  text-transform: uppercase;
}

.auth-aside h2 {
  margin-top: 16px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.2px;
}

.auth-aside .aside-desc {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #c8d6ff;
  max-width: 300px;
}

.aside-points {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.aside-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #eaf0ff;
}

.aside-points .point-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  margin-top: 1px;
}

.aside-points b {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: 12.5px;
}

.aside-points span {
  color: #c3d3ff;
  font-size: 11.5px;
}

.aside-stats {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}

.aside-stats > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.aside-stats b {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  min-width: 58px;
}

.aside-stats span {
  font-size: 11.5px;
  color: #c3d3ff;
}

.auth-form > .pwd-strength {
  margin-top: -8px;
}

.aside-stats + .aside-foot {
  margin-top: 22px;
  padding-top: 0;
}

.aside-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 32px;
  font-size: 10.5px;
  color: #a8c1ff;
  letter-spacing: 0.2px;
}

.aside-watermark {
  position: absolute;
  right: -22px;
  bottom: -40px;
  font-size: 128px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -6px;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

/* -------------------------------- 表单卡片 ------------------------------- */

.auth-card {
  align-self: center;
  padding: 40px 44px 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(35, 70, 128, 0.06);
}

.auth-card-head .auth-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.auth-card-head .auth-sub {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.8;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.form-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  cursor: pointer;
}

.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  border: 1px solid #c8d3e2;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.checkbox input:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 1.6px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(42deg);
}

.checkbox a {
  color: var(--blue);
}

.link-blue {
  font-size: 12px;
  color: var(--blue);
  transition: opacity 0.18s ease;
}

.link-blue:hover {
  opacity: 0.78;
}

.auth-submit {
  height: 48px;
  font-size: 14px;
}

/* 提示条 */
.form-alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid #f5d3d3;
  background: #fff7f7;
  font-size: 12px;
  line-height: 1.7;
  color: #c94848;
}

.form-alert.is-visible {
  display: flex;
}

.form-alert.is-success {
  border-color: #cfeade;
  background: #f4fbf7;
  color: #23845f;
}

.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid #e3ebfb;
  font-size: 11.5px;
  line-height: 1.75;
  color: #6c7f9e;
}

.form-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  font-size: 11px;
  color: #b0b9c6;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* 多企业选择 */
.tenant-panel {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.tenant-list {
  display: grid;
  gap: 10px;
}

.tenant-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.tenant-item:hover {
  border-color: #cfdcf3;
  background: #fbfdff;
  transform: translateX(2px);
}

.tenant-item .ti-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.tenant-item .ti-name {
  font-size: 13px;
  color: var(--ink);
}

.tenant-item .ti-arrow {
  margin-left: auto;
  color: #b6c2d3;
  font-size: 13px;
}

.tenant-item.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.auth-switch a {
  color: var(--blue);
  margin-left: 4px;
}

/* 按钮 loading */
.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-ghost.is-loading::after {
  border-color: rgba(40, 92, 240, 0.25);
  border-top-color: var(--blue);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------- 注册步骤条 ------------------------------ */

.wizard-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 26px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 11.5px;
  color: #9aa6b8;
  white-space: nowrap;
}

.wizard-step .dot-no {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #dfe6f0;
  background: #f7f9fc;
  font-size: 11px;
  color: #9aa6b8;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.wizard-step .bar {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 12px;
}

.wizard-step:last-child .bar {
  display: none;
}

.wizard-step.is-active,
.wizard-step.is-done {
  color: var(--ink);
}

.wizard-step.is-active .dot-no {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.wizard-step.is-done .dot-no {
  border-color: #cfe6dc;
  background: #eaf7f1;
  color: #2f9a74;
}

/* 密码强度 */
.pwd-strength {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.pwd-strength[data-level="0"] {
  opacity: 0;
}

.pwd-strength i {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: #eef2f7;
  transition: background-color 0.2s ease;
}

.pwd-strength span {
  font-size: 10.5px;
  color: #9aa6b8;
  min-width: 42px;
  text-align: right;
}

.pwd-strength[data-level="1"] i:nth-child(1) {
  background: #ea8b8b;
}
.pwd-strength[data-level="2"] i:nth-child(-n + 2) {
  background: #f0b96b;
}
.pwd-strength[data-level="3"] i:nth-child(-n + 3) {
  background: #6fbf9d;
}
.pwd-strength[data-level="1"] span {
  color: #d96c6c;
}
.pwd-strength[data-level="2"] span {
  color: #d99441;
}
.pwd-strength[data-level="3"] span {
  color: #2f9a74;
}

/* 输入框内右侧操作按钮（获取验证码 / 验证） */
.control.has-action input {
  padding-right: 108px;
}

.control.no-icon input {
  padding-left: 14px;
}

.control .control-action {
  position: absolute;
  right: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-50);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.control .control-action:hover:not([disabled]) {
  background: #e2ebff;
}

.control .control-action[disabled] {
  color: #a9b4c4;
  background: #f2f5fa;
  cursor: not-allowed;
}

.control .control-action.is-done {
  color: #2f9a74;
  background: #eaf7f1;
}

/* 已验证状态 */
.field-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #2f9a74;
}

.field.is-verified .control input {
  border-color: #bfe3d5;
  background: #f8fcfa;
  color: #3f5b52;
}

/* 选填标签 */
.label-optional {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* 开通结果摘要 */
.success-summary {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 4px 0 6px;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.success-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.success-summary > div:last-child {
  border-bottom: 0;
}

.success-summary dt {
  font-size: 12px;
  color: var(--muted-2);
}

.success-summary dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* 完成页 */
.finish-box {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 0 6px;
}

.finish-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #eaf7f1;
  color: #2f9a74;
  margin-bottom: 8px;
}

.finish-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.finish-box p {
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.9;
  max-width: 380px;
}

.finish-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

/* -------------------------------- 响应式 -------------------------------- */

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }

  .auth-aside {
    display: none;
  }

  .auth-card {
    padding: 32px 26px;
  }
}

@media (max-width: 560px) {
  .auth-main {
    padding-bottom: 40px;
  }

  .auth-card {
    padding: 26px 20px 24px;
    border-radius: 10px;
  }

  .auth-card-head .auth-title {
    font-size: 21px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-step {
    font-size: 0;
  }

  .wizard-step .dot-no {
    font-size: 11px;
  }

  .auth-header-actions .link-plain {
    display: none;
  }
}
