/* ═══════════════════════════════════════════════════════════
   sw_v2 login.css · 登录页（左右分栏 + 品牌侧 + 表单侧）
   ═══════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; overflow: hidden;
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0a1424; color: #e8eef5;
}

/* ── 背景装饰 ── */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: #2a5fc7; top: -250px; left: -200px; opacity: .4; }
.orb-2 { width: 700px; height: 700px; background: #c79a45; top: 40%; right: -250px; animation-delay: -7s; opacity: .25; }
.orb-3 { width: 500px; height: 500px; background: #4a8fd9; bottom: -200px; left: 30%; animation-delay: -14s; opacity: .3; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, -60px); }
}
.grid-bg {
  position: absolute; inset: 0; opacity: .03;
  background-image:
    linear-gradient(rgba(95,176,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,176,255,.4) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── 左右分栏 ── */
.login-wrap {
  display: flex; min-height: 100vh;
}

/* ── 左侧品牌 ── */
.login-hero {
  flex: 1.1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 60px 56px;
  background: linear-gradient(135deg, rgba(20,40,72,.4), rgba(10,20,36,.6));
  border-right: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.login-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(246,196,83,.1), transparent 50%);
  pointer-events: none;
}

.hero-brand {
  display: flex; align-items: center; gap: 14px;
  position: relative;
}
.hero-brand .logo {
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .06);
  background-image: url('/static/brand-logo.png');
  background-size: 76%;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(240,180,80,.18), inset 0 1px 0 rgba(255,255,255,.08);
  color: transparent; font-size: 0;
}
.hero-main { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.hero-sub  { font-size: 12px; opacity: .55; letter-spacing: 1px; text-transform: uppercase; }

.hero-text { position: relative; margin: 34px 0 40px; }
.hero-text h1 {
  font-size: 54px; font-weight: 800; line-height: 1.08;
  background: linear-gradient(135deg, #fff 0%, #f6c453 45%, #7ec9ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.hero-logo-img {
  display: inline-block; height: 1.16em; width: auto;
  vertical-align: -0.12em; margin-right: .22em;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.3));
}
.hero-text p {
  font-size: 15.5px; line-height: 1.9; opacity: .75;
  max-width: 480px; letter-spacing: .2px;
}

.hero-modules {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  position: relative;
}
.mod {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  transition: all .25s ease;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.05);
}
.mod::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(246,196,83,.08), transparent 55%);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.mod:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border-color: rgba(246,196,83,.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 0 22px rgba(246,196,83,.10);
}
.mod:hover::before { opacity: 1; }
.mi {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(246,196,83,.18), rgba(95,176,255,.12));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 6px 18px rgba(0,0,0,.18);
  color: #f6d78a;
  position: relative; z-index: 1;
  transition: all .25s ease;
}
.mi svg { width: 22px; height: 22px; }
.mod:hover .mi {
  background: linear-gradient(135deg, rgba(246,196,83,.30), rgba(95,176,255,.20));
  border-color: rgba(246,196,83,.40);
  color: #fff;
  transform: scale(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 22px rgba(246,196,83,.22);
}
.mn {
  font-size: 12.5px; font-weight: 600; color: rgba(232,238,245,.9);
  letter-spacing: .3px; position: relative; z-index: 1;
  transition: color .25s ease;
}
.mod:hover .mn { color: #fff; }

.hero-footer {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; opacity: .65;
  position: relative;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-g { background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* ── 右侧登录 ── */
.login-main {
  flex: 1; min-width: 460px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 40px;
  position: relative;
}

.login-card {
  width: 100%; max-width: 420px;
  padding: 38px 38px 34px;
  background: rgba(20,30,55,.6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 32px 100px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.09);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(246,196,83,.85), transparent);
  border-radius: 0 0 2px 2px;
}

.card-head { margin-bottom: 28px; }
.card-head h2 {
  font-size: 26px; font-weight: 700; margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, #f6c453);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 10px;
}
.welcome-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  background: linear-gradient(135deg, #f6d365 0%, #f6c453 40%, #e08c2b 100%);
  border-radius: 50%;
  overflow: visible;
  box-shadow:
    0 4px 14px rgba(240, 180, 80, .55),
    0 0 0 1px rgba(255, 255, 255, .3),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  /* 重置 h2 的 background-clip:text，否则子元素文字会被裁成透明 */
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: #2b1d00;
  transform-origin: center bottom;
  animation: waveHand 2.4s ease-in-out infinite;
}
/* 手掌图标：放大并从金色圆底中微微凸出，加白色光晕提高辨识度 */
.welcome-hand {
  display: block; line-height: 1;
  font-size: 27px;
  -webkit-text-fill-color: initial;
  transform: scale(1.12) translateY(-1px);
  filter:
    drop-shadow(0 1px 2px rgba(120, 70, 0, .55))
    drop-shadow(0 0 6px rgba(255, 255, 255, .65));
}
@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(18deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-6deg); }
  50% { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0deg); }
}
.card-head p { font-size: 13px; opacity: .65; }

.field { margin-bottom: 18px; }
.field label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; opacity: .85;
  margin-bottom: 8px; font-weight: 500;
}
.lbl-ico { font-size: 14px; }
.input-wrap { position: relative; }
.field input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #fff; font-size: 14px;
  transition: all .15s;
}
.field input::placeholder { color: rgba(255,255,255,.3); }
.field input:focus {
  outline: none;
  border-color: #f6c453;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(246,196,83,.15);
}

.toggle-pwd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none;
  color: rgba(255,255,255,.5); cursor: pointer;
  font-size: 16px; padding: 4px;
  transition: color .15s;
}
.toggle-pwd:hover { color: #f6c453; }

.error {
  display: flex; align-items: center; gap: 8px;
  background: rgba(220, 50, 50, .15);
  border: 1px solid rgba(220, 50, 50, .35);
  color: #ffb4b4; padding: 10px 14px;
  border-radius: 8px; font-size: 13px;
  margin-bottom: 16px;
}
.error[hidden] { display: none !important; }
.error:empty { display: none !important; }

.btn-login {
  width: 100%; padding: 15px 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #f6c453, #e08c2b);
  color: #2b1d00; font-weight: 700; font-size: 16px; letter-spacing: .5px;
  border: none; border-radius: 12px;
  cursor: pointer; margin-top: 8px;
  transition: all .2s ease;
  position: relative; overflow: hidden;
  box-shadow: 0 6px 20px rgba(240,180,80,.35);
}
.btn-login::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}
.btn-login:hover::before { transform: translateX(100%); }
.btn-login:hover {
  box-shadow: 0 10px 28px rgba(240,180,80,.50);
  transform: translateY(-2px);
}
.btn-login:active { transform: translateY(1px); }
.btn-login:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-arrow { font-size: 18px; transition: transform .2s; }
.btn-login:hover .btn-arrow { transform: translateX(3px); }

/* ── 分隔线 ── */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: rgba(255,255,255,.32); font-size: 12px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}

/* ── 游客登录 ── */
.btn-guest {
  width: 100%; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(95,176,255,.08);
  border: 1px solid rgba(95,176,255,.28);
  border-radius: 12px; cursor: pointer;
  color: #dce9fb; transition: all .2s ease;
}
.btn-guest:hover {
  background: rgba(95,176,255,.16);
  border-color: rgba(140,200,255,.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(60,130,220,.25);
}
.btn-guest:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-guest .g-ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.btn-guest .g-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.btn-guest .g-txt b { font-size: 14px; font-weight: 700; color: #eaf3ff; }
.btn-guest .g-txt em { font-size: 11.5px; font-style: normal; color: rgba(200,220,245,.62); }
.btn-guest .g-arrow { color: #8fc6ff; font-size: 16px; transition: transform .2s; }
.btn-guest:hover .g-arrow { transform: translateX(3px); }

.qf-name { font-size: 12px; font-weight: 600; }

/* ── 提示 ── */
.hint { margin-top: 18px; }
.hint-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; opacity: .55;
  margin-bottom: 6px;
}
.hint-ico { font-size: 13px; }

.copy {
  margin-top: 32px;
  font-size: 11px; opacity: .4;
}
.copy-sep { opacity: .6; margin: 0 2px; }
.copy a.icp {
  color: inherit; text-decoration: none;
  border-bottom: 1px dotted rgba(138,165,194,.55);
}
.copy a.icp:hover { color: #b6c4d8; border-bottom-color: currentColor; }

/* ── 响应式 ── */
@media (max-width: 960px) {
  html, body { overflow-y: auto; }  /* 小屏允许滚动 */
  .login-wrap { flex-direction: column-reverse; min-height: auto; }   /* form 优先在上 */
  .login-hero { padding: 24px 20px; min-height: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .hero-text { margin: 16px 0; }
  .hero-text h1 { font-size: 28px; margin-bottom: 12px; }
  .hero-text p { font-size: 13.5px; line-height: 1.7; }
  .hero-modules { display: none; }   /* 小屏隐藏冗余 8 模块卡，避免挤占空间 */
  .login-main { min-width: 0; padding: 28px 20px; }
  .login-card { padding: 28px 24px 24px; border-radius: 14px; max-width: 100%; }
}
@media (max-width: 560px) {
  .hero-text h1 { font-size: 22px; line-height: 1.2; }
  .hero-text p { font-size: 12.5px; line-height: 1.6; }
  .hero-brand .logo { width: 40px; height: 40px; line-height: 40px; font-size: 16px; border-radius: 10px; }
  .hero-main { font-size: 16px; }
  .hero-sub  { font-size: 10px; }
  .welcome-badge { width: 32px; height: 32px; flex-basis: 32px; }
  .welcome-hand { font-size: 23px; }
}