/* ============ 登录 / 注册页 — 盛拓集团 STProsperity 黑金 ============ */
.auth-page {
  min-height: 100vh; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 700px at 18% 18%, rgba(199,150,72,.16), transparent 62%),
    radial-gradient(700px 620px at 72% 88%, rgba(199,150,72,.10), transparent 65%),
    linear-gradient(128deg, #0b0c0f 0%, #111319 46%, #0a0b0e 100%);
  display: flex; align-items: center; justify-content: center;
}
.auth-page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 100%;
}
.auth-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.auth-lines path { fill: none; stroke: rgba(199,150,72,.16); stroke-width: 1; }
.auth-glow {
  position: absolute; width: 780px; height: 780px; border-radius: 50%; left: -240px; top: -160px;
  border: 1px solid rgba(199,150,72,.14); box-shadow: inset 0 0 140px rgba(199,150,72,.08); pointer-events: none;
}
.auth-glow.two { width: 620px; height: 620px; left: -100px; top: 40px; border-color: rgba(199,150,72,.09); }

.auth-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 34px; z-index: 5; }
/* 品牌锁版基础样式在 theme.css，这里只做登录 / 注册页的尺寸与品牌装饰 */
.auth-top .brand { gap: 12px; }
.auth-top .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
.auth-top .brand-name { font-size: 21px; letter-spacing: 5px; }
.auth-top .brand-sub .stp { font-size: 17px; }
.auth-top .brand-sub .pros { font-size: 13px; }
.auth-brand-watermark {
  position: absolute; z-index: 0; left: -78px; top: 96px; width: 400px; height: 400px;
  object-fit: contain; opacity: .055; pointer-events: none; filter: grayscale(.12);
}
.auth-signature {
  display: flex; align-items: center; gap: 12px; margin-top: 8px; white-space: nowrap;
  font-size: 10px; letter-spacing: 2.4px; color: var(--text-4);
}
.auth-signature i { width: 26px; height: 1px; background: var(--gold-grad-h); opacity: .8; }
.auth-signature b { color: var(--gold-3); font-weight: 600; }
html[dir="rtl"] .auth-signature { direction: ltr; unicode-bidi: isolate; }

.lang-wrap { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text-2); font-size: 12px; }
.lang-btn:hover { border-color: var(--gold-line); color: var(--gold-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px; background: #191b20; border: 1px solid var(--gold-line); border-radius: 10px; padding: 5px; box-shadow: var(--shadow); z-index: 20; display: none; }
.lang-menu.open { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; background: none; color: var(--text-2); font-size: 12.5px; border-radius: 6px; }
.lang-menu button:hover { background: var(--gold-soft); color: var(--gold-2); }

.auth-shell { position: relative; z-index: 3; width: min(1180px, calc(100% - 64px)); display: grid; grid-template-columns: 1fr 470px; align-items: center; gap: 70px; padding: 76px 0 40px; }
.auth-left { position: relative; min-height: 500px; }
.auth-headline { position: relative; z-index: 2; margin-top: 46px; }
.auth-headline h1 { font-size: 34px; font-weight: 700; letter-spacing: 2px; margin: 0 0 12px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-headline p { color: var(--text-2); font-size: 13.5px; letter-spacing: .5px; margin: 0; }
.auth-headline .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; color: var(--gold-3); border: 1px solid var(--gold-line); border-radius: 20px; padding: 5px 13px; margin-bottom: 20px; background: var(--gold-soft); }
.auth-headline .eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); }

.float-card {
  position: absolute; z-index: 2; width: 172px; padding: 14px 15px; border-radius: 14px;
  background: linear-gradient(150deg, rgba(30,32,38,.94), rgba(18,20,24,.9));
  border: 1px solid rgba(199,150,72,.28); box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 24px rgba(199,150,72,.07);
  backdrop-filter: blur(12px); animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float-card .fc-t { font-size: 10.5px; color: var(--text-4); letter-spacing: .6px; }
.float-card .fc-v { font-size: 19px; font-weight: 700; color: var(--gold-1); margin-top: 4px; letter-spacing: .3px; }
.float-card .fc-s { font-size: 10px; margin-top: 3px; }
.float-card svg { display: block; margin-top: 8px; }
.fc-1 { left: 14px; top: 246px; }
.fc-2 { left: 204px; top: 226px; animation-delay: -2s; }
.fc-3 { left: 118px; top: 384px; width: 150px; animation-delay: -4s; }
.float-card .ring { width: 62px; height: 62px; margin: 6px auto 0; border-radius: 50%; background: conic-gradient(var(--gold-2) 0 72%, rgba(255,255,255,.08) 72% 100%); display: grid; place-items: center; }
.float-card .ring::after { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; background: #17191e; }
.float-card .ring span { position: relative; z-index: 1; font-size: 12px; color: var(--gold-1); font-weight: 700; }

.auth-card {
  position: relative; z-index: 4; padding: 26px 32px 22px; border-radius: 20px;
  background: linear-gradient(158deg, rgba(28,30,35,.96), rgba(14,16,20,.97));
  border: 1px solid rgba(199,150,72,.24);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 50px rgba(199,150,72,.07), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}
.auth-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--gold-grad-h); border-radius: 0 0 4px 4px; opacity: .85; }
.auth-title { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 6px; color: var(--gold-1); margin: 2px 0 5px; }
.auth-sub { text-align: center; font-size: 12.5px; color: var(--text-3); letter-spacing: .5px; margin: 0 0 15px; }
.auth-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); margin: 0 0 17px; }
.auth-center { text-align: center; color: var(--text-3); font-size: 12.5px; margin: 2px 0 14px; letter-spacing: 1px; }
.auth-field { margin-bottom: 12px; }
.auth-field > label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.auth-field > label.cap-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cap-hint { font-size: 11px; font-weight: 400; color: var(--text-3); letter-spacing: .2px; white-space: nowrap; }
.auth-input {
  width: 100%; height: 40px; padding: 0 13px; color: var(--text-1); font-size: 13.5px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-strong); border-radius: 9px; transition: .2s;
}
.auth-input::placeholder { color: #5f6167; }
.auth-input:hover { border-color: rgba(199,150,72,.35); }
.auth-input:focus { border-color: var(--gold-4); box-shadow: 0 0 0 3px rgba(199,150,72,.11); background: rgba(255,255,255,.055); }
.pw-wrap, .cap-wrap { position: relative; }
.pw-toggle { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--text-4); font-size: 13px; padding: 4px; }
.pw-toggle:hover { color: var(--gold-3); }
.captcha-img {
  position: absolute; right: 5px; top: 5px; height: 32px; width: 96px; border-radius: 6px;
  background: #f6f7f9; cursor: pointer; border: 1px solid var(--line);
}
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 13px; font-size: 12.5px; }
.auth-row a { color: var(--gold-3); font-size: 12.5px; }
.auth-pact { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin: 0 0 11px; }
.auth-pact input { accent-color: var(--gold-4); width: 15px; height: 15px; }
.auth-submit { width: 100%; height: 42px; border: none; border-radius: 9px; background: var(--gold-grad); color: var(--ink); font-size: 14.5px; font-weight: 750; letter-spacing: 4px; box-shadow: 0 8px 26px rgba(199,150,72,.24); transition: .2s; }
.auth-submit:hover { filter: brightness(1.07); box-shadow: 0 10px 32px rgba(199,150,72,.38); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(1px); }
.auth-foot { text-align: center; color: var(--text-4); font-size: 11.5px; margin-top: 13px; }
.cloud-mode { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 12px; letter-spacing: .2px; }
.auth-demo { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--text-4); }
.auth-demo a { color: var(--gold-2); text-decoration: none; border-bottom: 1px dashed var(--gold-line); }
.auth-demo a:hover { color: var(--gold-3); }
#otp-box { margin-top: 4px; padding: 10px 12px; border-radius: 9px; background: var(--gold-soft); border: 1px solid var(--gold-line-soft); }
.auth-err { color: var(--danger); font-size: 12px; min-height: 17px; text-align: center; margin: -6px 0 8px; }
.auth-invite { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; background: var(--gold-soft); border: 1px solid var(--gold-line-soft); font-size: 12px; color: var(--text-2); margin-bottom: 13px; }
.auth-invite b { color: var(--gold-2); letter-spacing: 1px; }
.auth-invite .ok { color: var(--ok); margin-left: auto; font-size: 11px; }

@media (max-width: 1000px) {
  .auth-shell { grid-template-columns: 1fr; gap: 24px; width: min(500px, calc(100% - 40px)); padding: 88px 0 40px; }
  .auth-left { min-height: 0; }
  .auth-headline { margin-top: 0; text-align: center; }
  .auth-headline h1 { font-size: 25px; }
  .float-card { display: none; }
  .auth-glow { opacity: .5; }
  .auth-brand-watermark { display: none; }
  .auth-signature { justify-content: center; margin-top: 14px; }
}
@media (max-width: 520px) {
  .auth-top { padding: 16px 18px; }
  .auth-card { padding: 26px 20px 24px; }
  .auth-title { font-size: 22px; }
  .auth-shell { width: calc(100% - 28px); }
  .auth-headline h1 { font-size: 22px; }
  .auth-top .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .auth-top .brand-name { font-size: 16px; letter-spacing: 3px; }
  .auth-top .brand-sub .stp { font-size: 13.5px; }
  .auth-top .brand-sub .pros { font-size: 10.5px; }
  .auth-top .brand-sub .brand-bar, .auth-top .brand-sub .brand-tag { display: none; }
  .auth-signature { font-size: 8.5px; letter-spacing: 1.4px; gap: 8px; }
}

/* ---- 登录方式切换 / 邮箱验证码登录 / 错误引导 / 找回密码 ---- */
.auth-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.025); }
.auth-tabs button { flex: 1; height: 32px; border: 0; border-radius: 7px; background: none; color: var(--text-3); font-size: 12.5px; cursor: pointer; transition: .2s; }
.auth-tabs button:hover { color: var(--gold-3); }
.auth-tabs button.on { background: var(--gold-grad); color: var(--ink); font-weight: 700; }
.otp-send { border: 0; background: none; color: var(--gold-3); font-size: 11.5px; font-weight: 600; padding: 2px 0; cursor: pointer; white-space: nowrap; }
.otp-send:hover { color: var(--gold-2); }
.otp-send:disabled { color: var(--text-4); cursor: default; }
.auth-help { margin: 0 0 10px; padding: 9px 11px; border: 1px solid rgba(242,99,111,.28); border-radius: 9px; background: rgba(242,99,111,.07); font-size: 11.5px; line-height: 1.6; color: var(--text-2); }
.auth-help-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; }
.auth-help-links a { color: var(--gold-3); font-size: 11.5px; white-space: nowrap; }
.reset-mask { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4,6,9,.78); backdrop-filter: blur(6px); }
.reset-panel { width: min(380px, 100%); border: 1px solid var(--gold-line); border-radius: 14px; background: #14171c; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.reset-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-strong); color: var(--gold-2); font-size: 15px; letter-spacing: 1px; }
.reset-head button { border: 0; background: none; color: var(--text-3); font-size: 22px; line-height: 1; cursor: pointer; }
.reset-body { padding: 18px 20px 22px; }
.reset-body .auth-field { margin-bottom: 13px; }
@media (max-width: 520px) {
  .auth-tabs button { font-size: 11.5px; letter-spacing: 0; }
  .reset-panel { border-radius: 12px; }
}
