/* ========== 用户登录 · 科技感暗色玻璃 ========== */
.login-page {
  --cyan: #3ec7ff;
  --cyan-soft: rgba(62, 199, 255, 0.18);
  --blue: #1a6bff;
  --blue-deep: #061428;
  --panel: rgba(8, 24, 48, 0.72);
  --text: #e8f4ff;
  --muted: #7f9bb8;
  --line: rgba(62, 199, 255, 0.35);

  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 24px;
  box-sizing: border-box;
  overflow: hidden;
  font-family: "DIN Alternate", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 107, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(62, 199, 255, 0.12), transparent 50%),
    linear-gradient(160deg, #020810 0%, #061428 40%, #0a1f3d 100%);
}

.login-page__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-page__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 199, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 199, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 15%, transparent 72%);
  animation: login-grid-drift 28s linear infinite;
}

@keyframes login-grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.login-page__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(62, 199, 255, 0.08), transparent);
  animation: login-scan 7s ease-in-out infinite;
}

@keyframes login-scan {
  0% { top: -10%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

.login-page__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.login-page__glow--1 {
  width: 380px;
  height: 380px;
  top: 8%;
  left: -8%;
  background: rgba(26, 107, 255, 0.35);
  animation: login-pulse 8s ease-in-out infinite;
}

.login-page__glow--2 {
  width: 320px;
  height: 320px;
  right: -6%;
  bottom: 12%;
  background: rgba(62, 199, 255, 0.22);
  animation: login-pulse 10s ease-in-out infinite reverse;
}

@keyframes login-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.login-page__ring {
  position: absolute;
  border: 1px solid rgba(62, 199, 255, 0.15);
  border-radius: 50%;
}

.login-page__ring--1 {
  width: 520px;
  height: 520px;
  top: 50%;
  left: 50%;
  margin: -260px 0 0 -260px;
  animation: login-spin 40s linear infinite;
}

.login-page__ring--2 {
  width: 680px;
  height: 680px;
  top: 50%;
  left: 50%;
  margin: -340px 0 0 -340px;
  border-style: dashed;
  opacity: 0.5;
  animation: login-spin 60s linear infinite reverse;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

/* 顶部品牌 */
.login-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  animation: login-rise 0.5s ease-out both;
}

.login-top__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(62, 199, 255, 0.35), 0 0 24px rgba(62, 199, 255, 0.2);
}

.login-top__logo img {
  display: block;
  max-height: 36px;
  max-width: 140px;
  object-fit: contain;
}

.login-top__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-top__brand strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 20px rgba(62, 199, 255, 0.35);
}

.login-top__brand span {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--cyan);
  opacity: 0.85;
}

/* 居中玻璃卡片 */
.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 36px 36px 32px;
  box-sizing: border-box;
  border-radius: 4px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(62, 199, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(8, 24, 48, 0.6) inset,
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(26, 107, 255, 0.12);
  animation: login-rise 0.55s ease-out 0.08s both;
}

@keyframes login-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-card__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--cyan);
  border-style: solid;
}

.login-card__corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.login-card__corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.login-card__corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.login-card__corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.login-card__head {
  margin-bottom: 22px;
  text-align: center;
}

.login-card__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--cyan);
}

.login-card__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
}

/* Tabs */
.login-tabs.wst-tab-box {
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

.login-tabs__nav.wst-tab-nav {
  display: flex;
  float: none;
  width: 100%;
  height: auto;
  margin: 0 0 26px;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(62, 199, 255, 0.2);
  border-radius: 4px;
  background: rgba(0, 12, 28, 0.45);
  overflow: visible;
}

.login-tabs__nav.wst-tab-nav li,
.login-tabs__nav.wst-tab-nav .tab {
  float: none;
  flex: 1;
  width: auto;
  margin: 0;
  padding: 10px 6px;
  height: auto;
  line-height: 1.3;
  border: none;
  border-radius: 2px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.login-tabs__nav.wst-tab-nav li:hover {
  color: var(--cyan);
}

.login-tabs__nav.wst-tab-nav .on {
  color: #041018;
  font-weight: 700;
  background: linear-gradient(135deg, #3ec7ff, #1a6bff);
  box-shadow: 0 0 18px rgba(62, 199, 255, 0.45);
  border: none;
}

.login-tabs__body.wst-tab-content {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

/* 科技感输入控件 */
.login-field {
  margin-bottom: 18px;
}

.login-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.login-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 12px 0 42px;
  box-sizing: border-box;
  border-radius: 2px;
  background: rgba(2, 12, 28, 0.65);
  border: 1px solid rgba(62, 199, 255, 0.22);
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}

.login-control:hover {
  border-color: rgba(62, 199, 255, 0.45);
}

.login-control.is-focus {
  border-color: var(--cyan);
  background: rgba(4, 20, 42, 0.85);
  box-shadow:
    0 0 0 1px rgba(62, 199, 255, 0.25),
    0 0 24px rgba(62, 199, 255, 0.18);
}

.login-control__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--cyan);
  opacity: 0.75;
  pointer-events: none;
}

.login-control.is-focus .login-control__icon {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(62, 199, 255, 0.7));
}

.login-control__input {
  flex: 1;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 8px 0 0;
  border: none !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  color: #f2f8ff;
  letter-spacing: 0.04em;
}

.login-control__input::placeholder {
  color: #5d7896;
}

.login-field--password .login-control {
  padding-right: 44px;
}

.login-control__line {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
  opacity: 0.9;
}

.login-control.is-focus .login-control__line {
  transform: scaleX(1);
}

.login-pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-pwd-toggle:hover,
.login-pwd-toggle.is-visible {
  color: var(--cyan);
}

.login-field__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.login-control--grow {
  flex: 1;
  min-width: 0;
}

.login-sms-btn {
  flex: 0 0 auto;
  min-width: 108px;
  height: 50px;
  padding: 0 12px;
  border: 1px solid rgba(62, 199, 255, 0.45);
  border-radius: 2px;
  background: rgba(62, 199, 255, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.login-sms-btn:hover {
  background: rgba(62, 199, 255, 0.2);
  box-shadow: 0 0 18px rgba(62, 199, 255, 0.25);
  color: #fff;
}

.login-verify-img {
  flex: 0 0 112px;
  width: 112px;
  height: 50px;
  border-radius: 2px;
  border: 1px solid rgba(62, 199, 255, 0.3);
  cursor: pointer;
  object-fit: cover;
  background: #fff;
  box-sizing: border-box;
}

.login-forgot {
  display: inline-block;
  margin: -4px 0 16px;
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.login-forgot:hover {
  text-shadow: 0 0 10px rgba(62, 199, 255, 0.6);
}

.login-meta {
  margin-bottom: 18px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 14px;
  height: 14px;
  accent-color: var(--cyan);
}

.login-submit {
  position: relative;
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(120deg, #1a6bff 0%, #0f8fff 45%, #3ec7ff 100%);
  background-size: 160% 100%;
  color: #041018;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.35em;
  box-shadow: 0 0 28px rgba(62, 199, 255, 0.35);
  transition: background-position 0.35s, transform 0.15s, box-shadow 0.2s;
}

.login-submit span {
  position: relative;
  z-index: 1;
}

.login-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.5s;
}

.login-submit:hover {
  background-position: 100% 0;
  box-shadow: 0 0 36px rgba(62, 199, 255, 0.55);
}

.login-submit:hover::before {
  transform: translateX(120%);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-signup {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.login-signup a {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.login-signup a:hover {
  text-shadow: 0 0 10px rgba(62, 199, 255, 0.55);
}

/* 扫码 */
.login-qrcode {
  text-align: center;
  padding: 8px 0;
}

.login-qrcode__img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 176px;
  margin: 0 auto 16px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(62, 199, 255, 0.35);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 24px rgba(62, 199, 255, 0.2);
}

.login-qrcode__img img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.login-qrcode__tip {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.login-qrcode__list {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-qrcode__list li {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

/* 页脚 */
.login-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(127, 155, 184, 0.9);
  animation: login-rise 0.55s ease-out 0.16s both;
}

.login-footer__links {
  margin-bottom: 8px;
}

.login-footer__links a {
  display: inline-block;
  margin: 0 10px;
  color: rgba(180, 210, 235, 0.85);
  text-decoration: none;
}

.login-footer__links a:hover {
  color: var(--cyan);
}

.login-footer__copy,
.login-footer__copy a {
  color: rgba(127, 155, 184, 0.75);
}

.login-footer__copy a:hover {
  color: var(--cyan);
}

.login-panel .n-invalid,
.login-card .msg-box,
.login-card .n-invalid {
  font-size: 12px;
  color: #ff8e8e;
}

/* ========== 注册页补充 ========== */
.login-card--regist {
  max-width: 460px;
  padding-top: 32px;
}

.login-card__sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.login-card__sub a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.login-card__sub a:hover {
  text-shadow: 0 0 10px rgba(62, 199, 255, 0.55);
}

.regist-req {
  color: #ff6b8a;
  margin-right: 2px;
}

.regist-protocol {
  margin-bottom: 18px;
}

.regist-protocol-label {
  align-items: flex-start;
  line-height: 1.55;
  white-space: normal;
}

.regist-protocol-label a {
  color: var(--cyan);
  text-decoration: none;
}

.regist-protocol-label a:hover {
  text-decoration: underline;
}

.login-page--regist .login-submit {
  letter-spacing: 0.35em;
}

@media (max-width: 520px) {
  .login-card {
    padding: 28px 18px 24px;
  }

  .login-top {
    flex-direction: column;
    text-align: center;
  }

  .login-top__brand {
    align-items: center;
  }

  .login-card__title {
    font-size: 22px;
  }

  .login-field__row {
    flex-wrap: wrap;
  }

  .login-sms-btn,
  .login-verify-img {
    width: 100%;
    flex: 1 1 100%;
  }
}
