* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html,
body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif
}

/* ========== 桌面端 ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1f3c 0%, #2d1b4e 50%, #1a1f3c 100%);
  position: relative;
  overflow: hidden
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  pointer-events: none
}

.login-page::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  pointer-events: none
}

.login-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: 900px;
  min-height: 520px;
  background: rgba(30, 35, 65, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4)
}

.brand-side {
  flex: 1;
  padding: 48px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.04)
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px
}

.brand-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 2px
}

.brand-title .purple {
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.brand-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  margin-bottom: 48px
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55)
}

.brand-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center
}

.brand-feature-icon svg {
  width: 18px;
  height: 18px;
  color: #60a5fa
}

.form-side {
  flex: 0 0 380px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(20, 25, 50, 0.3)
}

.form-title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px
}

.form-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 36px
}

.field {
  margin-bottom: 22px
}

.field label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px
}

.field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all .2s
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.2)
}

.field input:focus {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(255, 255, 255, 0.07)
}

.login-btn {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s
}

.login-btn:hover {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px)
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  user-select: none
}

.remember-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer
}

/* 桌面端窄屏适配（768px~900px） */
@media (max-width:900px) {
  .desktop-view .login-page {
    align-items: flex-start;
    padding: 40px 0;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 30%, #0f2440 60%, #0a1a30 100%)
  }

  .desktop-view .login-page::before,
  .desktop-view .login-page::after {
    display: none
  }

  .desktop-view .login-card {
    width: 90vw;
    max-width: 380px;
    min-height: auto;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none
  }

  .desktop-view .brand-side {
    display: block;
    padding: 32px 28px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04)
  }

  .desktop-view .brand-header {
    margin-bottom: 16px
  }

  .desktop-view .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 14px
  }

  .desktop-view .brand-name {
    font-size: 16px
  }

  .desktop-view .brand-title {
    font-size: 26px;
    margin-bottom: 12px
  }

  .desktop-view .brand-title br {
    display: none
  }

  .desktop-view .brand-title .purple {
    display: inline;
    margin-left: 4px
  }

  .desktop-view .brand-desc {
    font-size: 13px;
    margin-bottom: 0
  }

  .desktop-view .brand-features {
    display: none
  }

  .desktop-view .form-side {
    padding: 24px 28px 36px;
    background: transparent
  }

  .desktop-view .form-title {
    text-align: center
  }

  .desktop-view .form-sub {
    text-align: center;
    margin-bottom: 28px
  }
}

/* ========== 桌面端/移动端共存 ========== */
.desktop-view {
  display: block;
}

.mobile-view {
  display: none;
}

@media (max-width: 768px) {
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }

  /* 移动端兼容性：去掉溢出限制和光晕伪元素 */
  .login-page {
    overflow: visible;
  }

  .login-page::before,
  .login-page::after {
    display: none;
  }
}

/* Fallback：老浏览器强制显示桌面端 */
.no-vue3-fallback .desktop-view {
  display: block !important;
}

.no-vue3-fallback .mobile-view {
  display: none !important;
}

/* 登录页移动端样式已内联在 index.php 中，使用 Vant UI 默认风格 */
