/* ============================================================
   仙门登录弹窗 — 仙侠黑金风格
   ============================================================ */

.login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(7,7,13,.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: loginOverlayIn .35s ease;
}
.login-overlay.closing { animation: loginOverlayOut .3s ease forwards; }
@keyframes loginOverlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes loginOverlayOut { from { opacity: 1; } to { opacity: 0; } }

.login-card {
  background: linear-gradient(170deg, rgba(18,14,38,.98), rgba(8,6,20,.99));
  border: 1.5px solid rgba(212,168,67,.22);
  border-radius: 20px; padding: 0; width: min(92vw, 380px);
  box-shadow: 0 0 80px rgba(180,140,80,.06), 0 20px 60px rgba(0,0,0,.55);
  animation: loginCardPop .5s cubic-bezier(.34,1.56,.64,1);
  position: relative; overflow: hidden;
}
/* 旋转光晕背景 */
.login-card::before {
  content: ''; position: absolute; top: -60%; left: -60%; width: 220%; height: 220%;
  background: conic-gradient(from 0deg, transparent, rgba(212,168,67,.04), transparent, rgba(155,89,182,.04), transparent);
  animation: loginCardOrbit 10s linear infinite; pointer-events: none; z-index: 0;
}
@keyframes loginCardPop { from { transform: scale(.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes loginCardOrbit { to { transform: rotate(360deg); } }

.login-card-inner { position: relative; z-index: 1; padding: 32px 24px 24px; }

/* 关闭按钮 */
.login-close {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  background: none; border: none; color: #6b5e9e; font-size: 20px;
  cursor: pointer; transition: color .2s; line-height: 1;
}
.login-close:hover { color: #f0c060; }

/* 标题 */
.login-title {
  font-size: 22px; color: #f0c060; font-weight: 700; text-align: center;
  margin-bottom: 4px; letter-spacing: 3px;
}
.login-subtitle {
  font-size: 12px; color: #9b8ec4; text-align: center;
  margin-bottom: 24px; letter-spacing: 1px;
}

/* Tab 切换 */
.login-tabs {
  display: flex; gap: 0; margin-bottom: 20px;
  background: rgba(212,168,67,.06); border-radius: 12px;
  padding: 3px; position: relative;
}
.login-tab {
  flex: 1; padding: 10px 0; font-size: 14px; font-weight: 600;
  color: #9b8ec4; background: none; border: none; cursor: pointer;
  border-radius: 10px; transition: all .3s; position: relative; z-index: 1;
  letter-spacing: 1px;
}
.login-tab.active {
  background: linear-gradient(135deg, rgba(212,168,67,.25), rgba(240,192,96,.12));
  color: #f0c060;
  box-shadow: 0 2px 12px rgba(212,168,67,.15);
}

/* 表单域 */
.login-form { display: none; }
.login-form.active { display: block; }
.login-field {
  margin-bottom: 14px;
}
.login-field label {
  display: block; font-size: 12px; color: #9b8ec4; margin-bottom: 6px;
  letter-spacing: 1px;
}
.login-field input {
  width: 100%; padding: 12px 14px; background: rgba(10,8,24,.8);
  border: 1px solid rgba(180,140,80,.2); border-radius: 10px;
  color: #e0d8f0; font-size: 15px; outline: none; box-sizing: border-box;
  transition: border-color .3s, box-shadow .3s;
}
.login-field input:focus {
  border-color: rgba(240,192,96,.5);
  box-shadow: 0 0 0 3px rgba(212,168,67,.08);
}
.login-field input::placeholder { color: #5b4e7e; }

/* 验证码行 */
.login-code-row {
  display: flex; gap: 10px;
}
.login-code-row input { flex: 1; }
.login-code-btn {
  white-space: nowrap; background: linear-gradient(135deg, rgba(212,168,67,.3), rgba(240,192,96,.15));
  color: #f0c060; border: 1px solid rgba(212,168,67,.35); border-radius: 10px;
  padding: 12px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .3s; letter-spacing: 1px;
}
.login-code-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(212,168,67,.5), rgba(240,192,96,.25));
  border-color: rgba(240,192,96,.5);
}
.login-code-btn:disabled { opacity: .45; cursor: not-allowed; }

/* 提交按钮 */
.login-submit {
  width: 100%; padding: 13px; margin-top: 6px;
  background: linear-gradient(135deg, #d4a843, #f0c060);
  color: #0d0d0d; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all .3s; letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(240,192,96,.2);
}
.login-submit:hover {
  box-shadow: 0 6px 28px rgba(240,192,96,.35); transform: translateY(-1px);
}
.login-submit:active { transform: scale(.97); }

/* 微信登录按钮 */
.wechat-login-btn {
  width: 100%; padding: 13px; margin-top: 6px;
  background: #07C160; color: #fff; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all .3s; letter-spacing: 2px; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(7,193,96,.2);
}
.wechat-login-btn:hover {
  box-shadow: 0 6px 28px rgba(7,193,96,.35); transform: translateY(-1px);
}
.wechat-login-btn svg { width: 22px; height: 22px; }

/* 底部链接 */
.login-footer {
  text-align: center; margin-top: 16px; font-size: 12px; color: #6b5e9e;
}
.login-footer a {
  color: #c4b5fd; text-decoration: none; cursor: pointer; transition: color .2s;
}
.login-footer a:hover { color: #f0c060; }

/* 分隔线 */
.login-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
}
.login-divider::before,
.login-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,140,80,.2), transparent);
}
.login-divider span { font-size: 11px; color: #5b4e7e; letter-spacing: 2px; }

/* Toast */
.login-toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(10,8,24,.95); color: #f0c060; padding: 14px 28px;
  border-radius: 10px; font-size: 14px; z-index: 99999; pointer-events: none;
  border: 1px solid rgba(212,168,67,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.85); } }
