/* ============================================================
   登录 / 注册页美化
   原来是纯黑底色 + 居中一个表单，两侧全是空的。
   改成：左侧品牌叙事（CS2 画面 + 卖点），右侧浮起的表单卡。
   ============================================================ */

[data-ui-auth] {
  background: #060807 !important;
}

/* 原来那层几乎看不见的背景图，压得更轻，交给左侧画面 */
[data-ui-auth] > div.absolute.inset-0 {
  opacity: 0.15 !important;
}

/* ---------- 左侧品牌面板 ---------- */
.ui-auth-side {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.ui-auth-side::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2%;
  width: 66%;
  background: url(/assets/ph/hero-cs2.jpg) 70% center / cover no-repeat;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 42%, #000 100%);
}

.ui-auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 8, 7, 0.99) 0%, rgba(6, 8, 7, 0.93) 36%, rgba(6, 8, 7, 0.5) 62%, rgba(6, 8, 7, 0.96) 90%, #060807 100%);
}

.ui-auth-copy {
  position: relative;
  z-index: 2;
  max-width: 470px;
}

.ui-auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #a5b89e;
  margin-bottom: 22px;
}

.ui-auth-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: #ea580c;
}

.ui-auth-title {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.18;
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.ui-auth-title em {
  font-style: normal;
  background: linear-gradient(96deg, #ffd9b8 10%, #ff8a3d 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ui-auth-sub {
  font-size: 14px;
  line-height: 1.7;
  color: #9ca3af;
  margin: 0 0 30px;
  max-width: 400px;
}

.ui-auth-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.ui-auth-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #d1d5db;
}

.ui-auth-point svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #f97316;
}

.ui-auth-stats {
  display: flex;
  gap: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ui-auth-stat b {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.ui-auth-stat span {
  font-size: 11px;
  color: #6b7280;
}

/* ---------- 右侧表单卡 ---------- */
@media (min-width: 1025px) {
  [data-ui-auth] > .relative.z-10 {
    justify-content: flex-end !important;
    padding-right: clamp(40px, 9vw, 180px) !important;
    padding-left: 0 !important;
  }
}

[data-ui-auth-card] {
  background: linear-gradient(180deg, rgba(26, 28, 31, 0.94), rgba(13, 14, 16, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 36px 34px 32px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

/* 卡片标题 + 副标题 */
[data-ui-auth-card] h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px !important;
}

[data-ui-auth] .ui-auth-card-sub {
  text-align: center;
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 26px;
}

/* 输入框：h-16 太高，收到 52，圆角和描边重做 */
[data-ui-auth-card] input {
  height: 52px !important;
  background: #131417 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-ui-auth-card] input:focus {
  border-color: rgba(234, 88, 12, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
  background: #16171b !important;
}

[data-ui-auth-card] input::placeholder {
  color: #565b63;
}

/* 密码可见按钮跟着输入框高度走 */
[data-ui-auth-card] .relative > button {
  height: 52px !important;
  width: 48px !important;
}

/* 主按钮 */
[data-ui-auth-card] button.w-full {
  height: 52px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  background: linear-gradient(96deg, #f97316, #ea580c) !important;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

[data-ui-auth-card] button.w-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.36);
  filter: brightness(1.05);
}

/* 「注册新用户」做成次级按钮，比裸文字更像回事 */
[data-ui-auth-card] .text-center > button {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #d1d5db !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

[data-ui-auth-card] .text-center > button:hover {
  border-color: rgba(234, 88, 12, 0.55);
  background: rgba(234, 88, 12, 0.08);
  color: #fff !important;
}

/* 底部协议提示 */
.ui-auth-legal {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: #4b5563;
}

.ui-auth-legal a {
  color: #6b7280;
  text-decoration: none;
}

.ui-auth-legal a:hover {
  color: #f97316;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1024px) {
  .ui-auth-side {
    display: none;
  }
  [data-ui-auth-card] {
    padding: 28px 22px 24px;
    border-radius: 16px;
  }
}
