:root {
  --ax-primary: #6366f1;
  --ax-primary-dark: #4f46e5;
  --ax-accent: #a855f7;
  --ax-dark: #0b1020;
  --ax-dark-mid: #151b33;
  --ax-text: #0f172a;
  --ax-muted: #64748b;
  --ax-border: #e2e8f0;
  --ax-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.ax-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ax-font);
  color: var(--ax-text);
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

.ax-shell {
  display: flex;
  min-height: 100vh;
}

/* ── 左侧品牌区 ── */
.ax-brand {
  position: relative;
  flex: 0 0 44%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  background: linear-gradient(145deg, #0b1020 0%, #1a1640 45%, #2d1b69 100%);
  color: #fff;
  overflow: hidden;
}

.ax-brand::before,
.ax-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ax-brand::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
}

.ax-brand::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
}

.ax-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ax-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 48px;
}

.ax-logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px;
}

.ax-brand-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ax-brand-content h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ax-brand-content > p {
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 340px;
}

.ax-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ax-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.ax-features li i {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #c4b5fd;
  font-size: 14px;
}

.ax-brand-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ── 右侧表单区 ── */
.ax-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    #f8fafc;
}

.ax-main-inner {
  width: 100%;
  max-width: 420px;
}

.ax-mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ax-text);
  text-decoration: none;
}

.ax-mobile-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.ax-form-head {
  margin-bottom: 32px;
}

.ax-form-head h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ax-text);
}

.ax-form-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ax-muted);
}

.ax-field {
  margin-bottom: 22px;
}

.ax-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.ax-input {
  position: relative;
}

.ax-input i {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  width: 20px;
  text-align: center;
  pointer-events: none;
}

.ax-input input {
  width: 100%;
  padding: 10px 0 10px 28px;
  border: none;
  border-bottom: 2px solid var(--ax-border);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ax-text);
  transition: border-color 0.2s;
}

.ax-input.ax-input-plain input {
  padding-left: 0;
}

.ax-input input:focus {
  outline: none;
  border-bottom-color: var(--ax-primary);
}

.ax-input input::placeholder {
  color: #cbd5e1;
}

.ax-code-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.ax-code-row .ax-input {
  flex: 1;
}

.ax-code-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--ax-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 2px;
}

.ax-code-btn:hover:not(:disabled) {
  background: var(--ax-primary);
  color: #fff;
}

.ax-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 24px;
  font-size: 13px;
}

.ax-row a {
  color: var(--ax-primary);
  text-decoration: none;
  font-weight: 600;
}

.ax-row a:hover {
  text-decoration: none;
}

.ax-muted {
  color: var(--ax-muted);
}

.ax-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: var(--ax-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(11, 16, 32, 0.25);
}

.ax-submit:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(11, 16, 32, 0.3);
}

.ax-submit i {
  margin-right: 6px;
}

.ax-form-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--ax-muted);
}

.ax-form-foot a {
  color: var(--ax-primary);
  font-weight: 700;
  text-decoration: none;
}

.ax-form-foot a:hover {
  text-decoration: none;
}

.ax-check {
  margin: 20px 0 24px;
  font-size: 13px;
  color: var(--ax-muted);
}

.ax-check label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
}

.ax-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--ax-primary);
}

.ax-check a {
  color: var(--ax-primary);
  font-weight: 600;
  text-decoration: none;
}

.ax-check a:hover {
  text-decoration: none;
}

/* 第三方登录 */
.ax-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
  font-size: 12px;
  color: var(--ax-muted);
}

.ax-divider::before,
.ax-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ax-border);
}

.ax-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.ax-social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ax-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ax-social .qq { background: #12b7f5; }
.ax-social .wx { background: #07c160; }
.ax-social .alipay { background: #1677ff; }

.ax-scroll {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 4px;
}

.ax-scroll::-webkit-scrollbar {
  width: 4px;
}

.ax-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#captcha {
  margin: 16px 0;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .ax-shell {
    flex-direction: column;
  }

  .ax-brand {
    flex: none;
    max-width: none;
    padding: 28px 24px 32px;
  }

  .ax-brand-content {
    justify-content: flex-start;
  }

  .ax-brand-content h2 {
    font-size: 24px;
  }

  .ax-features {
    display: none;
  }

  .ax-brand-foot {
    display: none;
  }

  .ax-logo {
    margin-bottom: 20px;
  }

  .ax-mobile-logo {
    display: inline-flex;
  }

  .ax-main {
    padding: 24px 20px 40px;
  }

  .ax-form-head h1 {
    font-size: 22px;
  }
}

@media (max-width: 400px) {
  .ax-code-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ax-code-btn {
    width: 100%;
    margin-bottom: 0;
  }
}

/* 登录/注册/找回密码：链接悬停不显示下划线 */
body.ax-page a:hover,
body.ax-page a:focus,
body.ax-page a:active {
  text-decoration: none !important;
}
