/* =====================================================================
   login.css — 登录页专属（白蓝主题）
   依赖 base.css
   ===================================================================== */

body.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

/* 双层径向光晕背景 */
.login-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 20%, rgba(0, 100, 224, 0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 80%, rgba(161, 33, 206, 0.08), transparent 60%);
}
/* 网格纹理 */
.login-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* 登录卡 */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 44px 36px 36px;
  box-shadow: var(--shadow-glow);
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 品牌区 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}
.brand .brand-mark {
  width: 56px;
  height: 56px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -8px rgba(0, 100, 224, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand .brand-mark svg { width: 28px; height: 28px; color: #fff; }
.brand h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--text);
}
.brand .subtitle {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

/* 输入框带图标 */
.field { margin-bottom: 18px; position: relative; }
.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  pointer-events: none;
  transition: color 0.2s;
}
.input-wrap input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px 14px 44px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.input-wrap input::placeholder { color: var(--text-faint); }
.input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input-wrap input:focus + .input-icon,
.field:focus-within .input-icon { color: var(--accent); }

/* 密码可见切换 */
.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.pw-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.pw-toggle svg { width: 18px; height: 18px; }

/* 主按钮（登录卡内全宽） */
.login-card .btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

/* 提示信息 */
.login-card .msg {
  font-size: 13px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  text-align: center;
}
.login-card .footer-note {
  margin-top: 28px;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
}
