/* 李哥支付风格 — 深色侧栏 + 紫色主调 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --auth-purple: #6C5CE7;
  --auth-purple-deep: #5a4bd6;
  --auth-purple-soft: #f0eeff;
  --auth-purple-grad: linear-gradient(135deg, #7c6ef0 0%, #6C5CE7 50%, #5a4bd6 100%);
  --auth-sidebar: #1E2A3A;
  --auth-sidebar-deep: #162030;
  --auth-ink: #2d3748;
  --auth-muted: #8a94a6;
  --auth-line: #e2e8f0;
  --auth-bg: #f5f7fa;
  --auth-surface: #ffffff;
  --auth-success: #22c55e;
  --auth-warn: #f59e0b;
  --auth-danger: #ef4444;
  --auth-info: #ecfdf5;
  --auth-info-border: #a7f3d0;
  --auth-info-text: #047857;
  --auth-radius: 8px;
  --auth-font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body.auth-body {
  margin: 0;
  min-height: 100%;
  font-family: var(--auth-font);
  color: var(--auth-ink);
  background: var(--auth-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--auth-purple); text-decoration: none; }
a:hover { color: var(--auth-purple-deep); }

/* —— 全屏左右分栏 —— */
.auth-page {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* —— 左侧深色品牌区 —— */
.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  color: #fff;
  background: var(--auth-sidebar);
}

.auth-aside::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(108, 92, 231, 0.25);
  border-radius: 24px;
  transform: rotate(25deg);
  pointer-events: none;
}

.auth-aside::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: -30px;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(108, 92, 231, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.auth-aside-geo {
  position: absolute;
  bottom: 80px;
  right: 60px;
  width: 80px;
  height: 80px;
  background: rgba(108, 92, 231, 0.12);
  border-radius: 16px;
  transform: rotate(-12deg);
  pointer-events: none;
}

.auth-aside-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.auth-aside-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.auth-aside-logo:hover { color: #fff; opacity: 0.92; }

/* B 形 Logo */
.logo-b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--auth-purple);
  font-size: 22px;
  font-weight: 800;
  font-family: Georgia, serif;
  color: #fff;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.auth-aside h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth-aside p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
}

.auth-aside-safe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* —— 右侧白色表单区 —— */
.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--auth-surface);
  padding: 48px 56px;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-card-body {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-back:hover { color: var(--auth-purple); }

.auth-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--auth-ink);
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--auth-muted);
  line-height: 1.5;
}

/* 分步进度（紫色圆点 + 连接线） */
.auth-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.auth-step-item {
  display: flex;
  align-items: center;
  gap: 0;
}

.auth-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--auth-line);
  flex-shrink: 0;
}

.auth-step-dot.is-active,
.auth-step-dot.is-done {
  background: var(--auth-purple);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.auth-step-line {
  width: 36px;
  height: 2px;
  background: var(--auth-line);
  margin: 0 4px;
}

.auth-step-line.is-done { background: var(--auth-purple); }

.auth-steps-text {
  margin-left: auto;
  font-size: 12px;
  color: var(--auth-muted);
}

/* 表单 */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-ink);
}

.auth-field { position: relative; }

.auth-field .form-control,
.auth-field select.form-control {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  color: var(--auth-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field .form-control:focus,
.auth-field select.form-control:focus {
  border-color: var(--auth-purple);
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.15);
  outline: none;
}

.auth-field.has-icon .form-control { padding-left: 38px; }
.auth-field.has-toggle .form-control { padding-right: 40px; }

.auth-field > .fa-lead {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-muted);
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
}

.auth-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  border-radius: 6px;
  z-index: 2;
}

.auth-eye:hover { color: var(--auth-purple); background: var(--auth-purple-soft); }

.auth-field-code {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.auth-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--auth-purple);
  border-radius: var(--auth-radius);
  background: var(--auth-purple-soft);
  color: var(--auth-purple);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

.auth-code-btn:hover,
.auth-code-btn:focus {
  background: var(--auth-purple);
  color: #fff;
  text-decoration: none;
}

.auth-code-btn[disabled],
.auth-code-btn[data-lock='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: -6px;
}

.auth-link-muted {
  font-size: 13px;
  color: var(--auth-muted);
}

.auth-link-muted:hover { color: var(--auth-purple); }

/* 密码强度（紫色强） */
.auth-strength { margin-top: 8px; }

.auth-strength-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}

.auth-strength-bars span {
  height: 3px;
  border-radius: 2px;
  background: var(--auth-line);
  transition: background 0.2s;
}

.auth-strength[data-level='1'] .auth-strength-bars span:nth-child(1) { background: var(--auth-danger); }
.auth-strength[data-level='2'] .auth-strength-bars span:nth-child(1),
.auth-strength[data-level='2'] .auth-strength-bars span:nth-child(2) { background: var(--auth-warn); }
.auth-strength[data-level='3'] .auth-strength-bars span { background: var(--auth-purple); }

.auth-strength-text { font-size: 12px; color: var(--auth-muted); }
.auth-strength[data-level='1'] .auth-strength-text { color: var(--auth-danger); }
.auth-strength[data-level='2'] .auth-strength-text { color: var(--auth-warn); }
.auth-strength[data-level='3'] .auth-strength-text { color: var(--auth-purple); }

.auth-price {
  padding: 10px 14px;
  border-radius: var(--auth-radius);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 13px;
  color: #c2410c;
}

.auth-agree {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--auth-muted);
  line-height: 1.7;
  text-align: center;
}

.auth-agree a { font-weight: 500; color: var(--auth-purple); }

/* 按钮 */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--auth-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.auth-btn--primary {
  margin-top: 8px;
  color: #fff;
  background: var(--auth-purple-grad);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

.auth-btn--primary:hover,
.auth-btn--primary:focus {
  color: #fff;
  opacity: 0.92;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.45);
}

.auth-btn--ghost {
  margin-top: 10px;
  color: var(--auth-ink);
  background: #fff;
  border: 1px solid var(--auth-line);
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
}

.auth-switch a {
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-purple);
}

.auth-footer-link {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--auth-muted);
}

.auth-footer-link a { font-weight: 600; color: var(--auth-purple); }

.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--auth-muted);
}

.auth-secure .fa { color: var(--auth-purple); opacity: 0.6; }

.auth-oauth {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
}

.auth-oauth-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.auth-oauth-btn img { width: 20px; height: 20px; border-radius: 50%; }

.auth-captcha-wrap { padding: 4px 0; }

/* 成功态 */
.auth-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0;
}

.auth-success.is-show { display: flex; }
.auth-form.is-hide { display: none; }

.auth-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--auth-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.auth-success h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.auth-success p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--auth-muted);
}

/* Modal */
.auth-body .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(30, 42, 58, 0.2);
}

.auth-body .modal-header {
  border-bottom-color: var(--auth-line);
  background: #fafbfc;
}

.auth-body .btn-white {
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--auth-ink) !important;
}

/* —— 完善资料页（后台内容区） —— */
.auth-profile-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0;
}

.auth-profile-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--auth-ink);
}

.auth-info-bar {
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: var(--auth-radius);
  background: var(--auth-info);
  border: 1px solid var(--auth-info-border);
  font-size: 14px;
  color: var(--auth-info-text);
  line-height: 1.6;
}

.auth-profile-form .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.auth-profile-form .control-label {
  width: 120px;
  flex-shrink: 0;
  margin: 0;
  padding-right: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-ink);
  text-align: left;
}

.auth-profile-form .field-col {
  flex: 1;
  min-width: 0;
}

.auth-profile-form .form-control {
  height: 44px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  box-shadow: none;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-profile-form .form-control:focus {
  border-color: var(--auth-purple);
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.15);
  outline: none;
}

.auth-profile-form .btn-save {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 44px;
  margin: 28px auto 0;
  border: none;
  border-radius: var(--auth-radius);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--auth-purple-grad);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-profile-form .btn-save:hover { opacity: 0.92; }

.auth-profile-card {
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(30, 42, 58, 0.04);
}

/* 紫色主题覆盖后台按钮 */
.app-content .btn-primary,
.app-content .btn-save {
  background: var(--auth-purple);
  border-color: var(--auth-purple);
}

.app-content .btn-primary:hover,
.app-content .btn-save:hover {
  background: var(--auth-purple-deep);
  border-color: var(--auth-purple-deep);
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }

  .auth-aside {
    display: none;
  }

  .auth-card {
    min-height: auto;
    padding: 32px 24px 48px;
  }

  .auth-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--auth-sidebar);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
  }

  .auth-mobile-bar .logo-b {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
  }
}

@media (min-width: 901px) {
  .auth-mobile-bar { display: none; }
}

@media (max-width: 400px) {
  .auth-field-code { grid-template-columns: 1fr; }
  .auth-code-btn { width: 100%; }
  .auth-profile-form .form-group { flex-direction: column; align-items: stretch; }
  .auth-profile-form .control-label { width: 100%; margin-bottom: 6px; }
}
