/* ============================================
   NavXD Theme — login.css
   登录页样式
   ============================================ */


/* ── 隐藏主题默认 footer margin ── */
.login-page-body { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Main Layout ── */
.login-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 52px);
}

/* ── Left Panel ── */
.login-left {
  background: linear-gradient(145deg, #0a0c1a 0%, #111827 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}
#login-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.login-left-content { position: relative; z-index: 2; }
.login-left-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  text-decoration: none;
}
.login-left-logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.login-left-logo-text { font-size: 16px; font-weight: 700; color: #fff; }
.login-headline {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.login-headline span { color: #7b8fff; }
.login-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 36px;
}
.login-features { display: flex; flex-direction: column; gap: 12px; }
.login-feat { display: flex; align-items: center; gap: 10px; }
.login-feat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 126, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.login-feat-text { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.login-feat-text strong {
  color: #fff;
  display: block;
  font-size: 12px;
  margin-bottom: 1px;
}
.login-left-bottom { position: relative; z-index: 2; }
.login-left-stats  { display: flex; gap: 24px; }
.login-lstat       { text-align: center; }
.login-lstat-num   { font-size: 20px; font-weight: 800; color: #fff; }
.login-lstat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Right Panel ── */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
}
.login-box { width: 100%; max-width: 380px; }
.login-box-header { margin-bottom: 28px; }
.login-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--blue-dim);
  border: 1px solid rgba(59, 126, 246, 0.2);
  font-size: 11px;
  color: var(--blue);
  margin-bottom: 12px;
}
.login-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: login-pulse 2s ease-in-out infinite;
}
@keyframes login-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.login-box h1 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.login-box > p { font-size: 13px; color: var(--text2); }

/* ── Form ── */
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form-group { display: flex; flex-direction: column; gap: 6px; }
.login-form-label { font-size: 12px; font-weight: 600; color: var(--text2); }
.login-input-wrap { position: relative; }
.login-input {
  width: 100%;
  padding: 11px 40px 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 126, 246, 0.08);
}
.login-input::placeholder { color: var(--text3); }
.login-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.login-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.login-checkbox-wrap { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.login-checkbox-wrap input { width: 14px; height: 14px; accent-color: var(--blue); cursor: pointer; }
.login-checkbox-label { font-size: 12px; color: var(--text2); cursor: pointer; }
.login-forgot-link {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
}
.login-forgot-link:hover { text-decoration: underline; }
.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
}
.login-btn:hover  { background: var(--blue2); transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }

/* ── Divider ── */
.login-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}
.login-or-line  { flex: 1; height: 1px; background: var(--border); }
.login-or-text  { font-size: 11px; color: var(--text3); white-space: nowrap; }

/* ── Social Buttons ── */
.login-social-btns { display: flex; gap: 10px; }
.login-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 9px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.login-social-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}
.login-social-icon { font-size: 15px; }

/* ── Register Row ── */
.login-register-row {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text2);
}
.login-register-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.login-register-link:hover { text-decoration: underline; }

/* ── Features Card ── */
.login-features-card {
  margin-top: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.login-features-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.login-features-list { display: flex; flex-direction: column; gap: 6px; }
.login-feature-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text2);
}
.login-feature-check { color: var(--green); font-size: 11px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .login-wrap         { grid-template-columns: 1fr; }
  .login-left         { display: none; }
  .login-right        { padding: 32px 20px; min-height: calc(100vh - 52px); }
}