/* ============ 登录/注册页专属样式（基于 platform.css 增强） ============ */
@import url("/css/platform.css");

.login-page {
  position: relative;
  min-height: 100%;
  padding: 32px 40px 56px;
  overflow: hidden;
}

/* ---------- 背景装饰：光晕 + 星空 ---------- */
.login-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.login-decor .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.login-decor .orb-1 {
  width: 420px; height: 420px;
  left: -120px; top: -140px;
  background: radial-gradient(circle, rgba(123, 108, 219, 0.55), transparent 70%);
}
.login-decor .orb-2 {
  width: 360px; height: 360px;
  right: -100px; bottom: -120px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.28), transparent 70%);
}
.login-decor .starfield,
.login-decor .starfield::after {
  position: absolute;
  inset: 0;
  content: "";
}
.login-decor .starfield {
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 45% 14%, rgba(255, 224, 150, 0.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 62% 44%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 18%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 88% 62%, rgba(255, 224, 150, 0.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 8% 82%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1.7px 1.7px at 55% 86%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 35% 40%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 70% 74%, rgba(255, 224, 150, 0.65) 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  0% { opacity: 0.45; }
  100% { opacity: 1; }
}

/* ---------- 双栏布局 ---------- */
.login-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1060px;
  margin: 0 auto;
}

/* ---------- 左侧品牌展示区 ---------- */
.brand-showcase { flex: 1.05; min-width: 0; }
.showcase-visual {
  position: relative;
  width: min(340px, 78%);
  margin: 0 auto 28px;
}
.showcase-visual .showcase-img {
  display: block;
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 46px rgba(255, 209, 102, 0.18);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pf-text);
  background: var(--pf-glass-strong);
  border: 1px solid var(--pf-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.float-chip .chip-ico { font-size: 14px; }
.chip-1 { top: 8%; left: -22%; animation: floatY 6s ease-in-out infinite; animation-delay: 0.8s; }
.chip-2 { top: 42%; right: -26%; animation: floatY 7s ease-in-out infinite; animation-delay: 1.6s; }
.chip-3 { bottom: 4%; left: -14%; animation: floatY 6.5s ease-in-out infinite; animation-delay: 2.4s; }

.showcase-title {
  font-size: 26px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(255, 209, 102, 0.3);
}
.showcase-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--pf-gold), #ffe9b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-feats {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-feats li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.showcase-feats li:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 209, 102, 0.35);
}
.feat-ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  font-size: 19px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.2), rgba(123, 108, 219, 0.2));
  border: 1px solid rgba(255, 209, 102, 0.25);
}
.showcase-feats b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.showcase-feats li p { margin: 0; font-size: 12.5px; color: var(--pf-text-3); }

/* ---------- 右侧登录卡 ---------- */
.login-panel {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 24px;
  padding: 1.5px; /* 渐变描边 */
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.55), rgba(255, 255, 255, 0.08) 38%, rgba(123, 108, 219, 0.45));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}
.panel-inner {
  border-radius: 23px;
  padding: 32px 34px 26px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(123, 108, 219, 0.22), transparent 60%),
    var(--pf-glass-strong);
  backdrop-filter: blur(14px);
}

.panel-head { text-align: center; margin-bottom: 22px; }
.panel-badge {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.28), rgba(123, 108, 219, 0.28));
  border: 1px solid rgba(255, 209, 102, 0.35);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.2);
}
.panel-head h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.panel-head p { margin: 0; font-size: 13px; color: var(--pf-text-3); }

/* 分段式 Tab */
.login-panel .pf-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}
.login-panel .pf-tab {
  justify-content: center;
  text-align: center;
  padding: 10px 4px;
  border-radius: 11px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--pf-text-3);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.login-panel .pf-tab:hover { color: var(--pf-text); background: rgba(255, 255, 255, 0.08); }
.login-panel .pf-tab.active {
  color: #3a2b00;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pf-gold), var(--pf-gold-dark));
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.35);
}

/* 提示条：左侧金色竖线 */
.login-panel .pf-notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.6;
}
.login-panel .pf-notice::before { content: "💡"; flex: none; }
.login-panel .pf-notice.info {
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-left: 3px solid rgba(255, 209, 102, 0.7);
  color: #ffe9b0;
}

/* 带图标输入框 */
.login-panel .pf-field { margin-bottom: 15px; }
.login-panel .pf-field > label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--pf-text-2);
  margin-bottom: 7px;
}
.field-box {
  position: relative;
  display: flex;
  align-items: center;
}
.field-box .field-ico {
  position: absolute;
  left: 14px;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  color: var(--pf-text-3);
  pointer-events: none;
  transition: color 0.25s ease;
}
.field-box .field-ico svg { width: 100%; height: 100%; }
.login-panel .field-box .pf-input {
  width: 100%;
  padding-left: 42px;
  padding-top: 13px;
  padding-bottom: 13px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.login-panel .field-box .pf-input:focus {
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 209, 102, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.14), 0 0 18px rgba(255, 209, 102, 0.12);
}
.field-box:focus-within .field-ico { color: var(--pf-gold); }

/* 验证码行：按钮内嵌输入框 */
.code-row .pf-input { padding-right: 118px; }
.code-send {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  border: none;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: #3a2b00;
  background: linear-gradient(135deg, var(--pf-gold), var(--pf-gold-dark));
  box-shadow: 0 3px 10px rgba(255, 209, 102, 0.3);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.code-send:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(calc(-50% - 1px)); }
.code-send:disabled { opacity: 0.55; cursor: not-allowed; }

/* 主按钮：金色渐变 + 扫光 */
.btn-primary-cta {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 14px;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #3a2b00;
  background: linear-gradient(135deg, #ffe9b0, var(--pf-gold) 45%, var(--pf-gold-dark));
  box-shadow: 0 10px 26px rgba(255, 209, 102, 0.32);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.btn-primary-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 209, 102, 0.42);
}
.btn-primary-cta:hover:not(:disabled)::after { left: 130%; }
.btn-primary-cta:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.btn-primary-cta:disabled { opacity: 0.55; cursor: not-allowed; }

/* 邮箱双按钮 */
.btn-duo { display: flex; gap: 12px; margin-top: 4px; }
.btn-duo .pf-btn { flex: 1; padding: 13px; border-radius: 14px; font-size: 14.5px; }

/* 微信面板 */
.wechat-box { text-align: center; padding: 6px 0 2px; }
.wechat-qr {
  width: 148px; height: 148px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 58px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(111, 216, 154, 0.5);
  animation: qrBreath 2.6s ease-in-out infinite;
}
@keyframes qrBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 216, 154, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(111, 216, 154, 0.06); }
}
.wechat-box .wechat-tip { font-size: 13px; color: var(--pf-text-2); margin: 0 0 4px; font-weight: 600; }
.wechat-box .wechat-sub { font-size: 12px; color: var(--pf-text-3); margin: 0 0 18px; }
.login-panel .pf-btn-green { width: 100%; padding: 13px; border-radius: 14px; font-size: 14.5px; }

/* 分隔线 + 游客入口 */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 14px;
  color: var(--pf-text-3);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}
.guest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pf-text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.22s ease;
}
.guest-btn:hover {
  color: var(--pf-text);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 209, 102, 0.4);
  transform: translateY(-1px);
}

/* 底部信任条 */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--pf-text-3);
}
.trust-item svg { width: 13px; height: 13px; color: rgba(111, 216, 154, 0.85); flex: none; }

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pf-text-3);
  cursor: pointer;
}
.agree-row input { margin-top: 3px; accent-color: var(--pf-gold); }
.agree-row a { color: rgba(255, 209, 102, 0.85); text-decoration: none; }
.agree-row a:hover { text-decoration: underline; }
.link-toggle {
  display: block;
  width: 100%;
  margin: 8px 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 209, 102, 0.9);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}
.link-toggle:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .login-page { padding: 24px 18px 44px; }
  .login-layout { flex-direction: column-reverse; gap: 36px; max-width: 520px; }
  .brand-showcase { width: 100%; }
  .showcase-visual { width: min(260px, 64%); margin-bottom: 20px; }
  .float-chip { font-size: 11px; padding: 6px 11px; }
  .chip-1 { left: -8%; }
  .chip-2 { right: -8%; }
  .chip-3 { left: -4%; }
  .showcase-title { font-size: 20px; }
  .panel-inner { padding: 26px 22px 22px; }
}

@media (max-width: 768px) {
  /* 登录页收起侧栏，让出内容宽度 */
  .sidebar { display: none; }

  .login-page { padding: 20px 14px 40px; }
  .login-layout { gap: 28px; }

  .panel-inner { padding: 22px 16px 18px; border-radius: 20px; }
  .panel-badge { width: 44px; height: 44px; font-size: 22px; }
  .panel-head h2 { font-size: 20px; }
  .panel-head p { font-size: 12px; }

  .login-panel .pf-tab { font-size: 12px; white-space: nowrap; padding: 9px 2px; }
  .login-panel .pf-notice { font-size: 11.5px; padding: 9px 11px; }

  .login-panel .field-box .pf-input { padding-left: 38px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
  .field-box .field-ico { left: 12px; }
  .code-row .pf-input { padding-right: 96px; }
  .code-send { padding: 7px 10px; font-size: 11.5px; right: 6px; }

  .btn-primary-cta { font-size: 14.5px; letter-spacing: 3px; padding: 13px; }
  .btn-duo { gap: 10px; }
  .trust-row { gap: 12px; flex-wrap: wrap; }

  .showcase-title { font-size: 18px; }
  .showcase-feats { max-width: 100%; }
}
