/* register 页面专用样式（由内联 <style> 外置，符合 CSP style-src self） */
/* 登录页专用：左品牌区 + 右表单区 */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-12);
  background: var(--card);
  border-right: 1px solid var(--border);
  color: var(--foreground);
  overflow: hidden;
}
/* 两团极淡的主色光晕，给浅色背景一点层次，不喧宾夺主 */
.auth__brand::before,
.auth__brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--primary-soft);
  opacity: .8;
}
.auth__brand::before { width: 460px; height: 460px; top: -160px; right: -160px; }
.auth__brand::after { width: 320px; height: 320px; bottom: -120px; left: -90px; opacity: .55; }
.auth__brand-inner { position: relative; z-index: 1; }
.auth__logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-lg); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}
.auth__logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: var(--weight-bold);
}
.auth__headline {
  margin-top: var(--space-16);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}
.auth__sub {
  margin-top: var(--space-4);
  max-width: 34ch;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--muted-foreground);
}
.auth__points {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.auth__points li {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--foreground);
}
.auth__points svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--success); }
.auth__foot {
  position: relative; z-index: 1;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--background);
}
.auth__form {
  width: 100%;
  max-width: 360px;
}
.auth__title { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.auth__desc { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); }
.auth__fields { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.auth__captcha { display: flex; gap: var(--space-2); }
.auth__captcha .input { flex: 1; min-width: 0; }
.auth__captcha-img {
  display: flex; align-items: center; justify-content: center;
  /* 与验证码原图 220×76 同比例，避免裁切字符 */
  width: 132px;
  aspect-ratio: 220 / 76;
  flex: 0 0 auto;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--muted);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: var(--text-md);
  letter-spacing: 3px;
  cursor: pointer;
  user-select: none;
}
.auth__captcha-img:hover { border-color: var(--input-hover); }
.auth__alt {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: center;
}

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__brand { display: none; }
  .auth__panel { min-height: 100vh; min-height: 100dvh; padding: var(--space-5); }
}

/* ==== 由 register.php 内联 <style> 外置（CSP style-src self） ==== */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.auth__brand {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--space-12);
  background: var(--card);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.auth__brand::before,
.auth__brand::after { content: ""; position: absolute; border-radius: 50%; background: var(--primary-soft); opacity: .8; }
.auth__brand::before { width: 460px; height: 460px; top: -160px; right: -160px; }
.auth__brand::after { width: 320px; height: 320px; bottom: -120px; left: -90px; opacity: .55; }
.auth__brand-inner { position: relative; z-index: 1; }
.auth__logo { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.auth__logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--primary); color: var(--primary-foreground); font-weight: var(--weight-bold);
}
.auth__headline { margin-top: var(--space-16); font-size: var(--text-4xl); font-weight: var(--weight-semibold); line-height: 1.25; letter-spacing: var(--tracking-tight); }
.auth__sub { margin-top: var(--space-4); max-width: 34ch; font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.auth__points { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.auth__points li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.auth__points svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--success); }
.auth__foot { position: relative; z-index: 1; font-size: var(--text-xs); color: var(--muted-foreground); }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: var(--space-8); background: var(--background); }
.auth__form { width: 100%; max-width: 380px; }
.auth__title { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.auth__desc { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); }
.auth__fields { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.auth__captcha { display: flex; gap: var(--space-2); }
.auth__captcha .input { flex: 1; min-width: 0; }
.auth__captcha-img {
  display: flex; align-items: center; justify-content: center;
  /* 与验证码原图 220×76 同比例，用 contain 保证字符完整可见 */
  width: 132px;
  aspect-ratio: 220 / 76;
  flex: 0 0 auto;
  border: 1px solid var(--input); border-radius: var(--radius-md);
  background: var(--card); overflow: hidden; cursor: pointer; padding: 0;
}
.auth__captcha-img:hover { border-color: var(--input-hover); }
.auth__captcha-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth__alt { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted-foreground); text-align: center; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__brand { display: none; }
  .auth__panel { min-height: 100vh; min-height: 100dvh; padding: var(--space-5); }
}
