/* ============ 登录页样式 ============ */
.login-view {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0d9488 100%);
  overflow: hidden;
}
.login-bg-grid {
  position: absolute; inset: 0; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.login-card {
  position: relative; z-index: 1; width: 400px; max-width: 92vw;
  background: #fff; border-radius: 16px; padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: loginIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.login-logo { flex-shrink: 0; }
.login-titleblock h1 { font-size: 20px; margin: 0; color: #1f2937; font-weight: 700; }
.login-titleblock p { font-size: 12px; color: #6b7280; margin: 4px 0 0; }

.login-form .field { display: block; margin-bottom: 16px; }
.login-form .field > span {
  display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; font-weight: 500;
}
.login-form .field input {
  width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb;
  border-radius: 6px; outline: none; transition: border-color .15s, box-shadow .15s;
  font-size: 14px;
}
.login-form .field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.login-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; font-size: 13px;
}
.checkbox { display: inline-flex; align-items: center; gap: 6px; color: #6b7280; cursor: pointer; }
.checkbox input { margin: 0; }
.login-view .btn-primary {
  width: 100%; padding: 11px; background: #2563eb; color: #fff; border: none;
  border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.login-view .btn-primary:hover { background: #1d4ed8; }
.login-error { color: #dc2626; font-size: 12px; margin-top: 8px; min-height: 16px; }
.login-foot {
  position: absolute; bottom: 20px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.7); font-size: 12px; z-index: 1;
}

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
  .login-card { padding: 24px 18px; border-radius: 14px; }
  .login-titleblock h1 { font-size: 18px; }
  .login-brand { margin-bottom: 20px; gap: 10px; }
  .login-foot { bottom: 12px; font-size: 11px; }
  .login-form .field input { font-size: 16px; padding: 11px 12px; } /* 16px 防止 iOS 聚焦放大 */
}
