/* ===================== Ecoso Space 登录页 — 按设计稿精确还原 ===================== */

/* 1. 整体容器：极淡蓝底 + 两个柔边 blob + 细网格 */
#loginPage .login-container {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, #eef4ff 0%, #f7fafd 55%, #e7efff 100%);
  overflow: hidden;
}

#loginPage .login-container::before,
#loginPage .login-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* 左上淡蓝紫 blob */
#loginPage .login-container::before {
  width: 55vw;
  max-width: 760px;
  height: 55vw;
  max-height: 760px;
  background: rgba(189, 200, 242, 0.55);
  top: -14vw;
  left: -10vw;
}

/* 右下淡蓝 blob */
#loginPage .login-container::after {
  width: 45vw;
  max-width: 620px;
  height: 45vw;
  max-height: 620px;
  background: rgba(198, 222, 250, 0.48);
  bottom: -10vw;
  right: -8vw;
}

/* 细网格背景 */
#loginPage .login-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
}

/* 2. 登录卡片：纯白、大圆角、轻阴影 */
#loginPage .login-card.glass {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: none;
  border-radius: 22px;
  box-shadow: 0 16px 56px rgba(30, 58, 138, 0.08);
  backdrop-filter: none;
  padding: 44px 38px 36px;
  animation: cardFloatIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* 3. 头部 Logo / 标题 / 副标题 */
#loginPage .login-header {
  text-align: center;
  margin-bottom: 28px;
}

#loginPage .login-header .logo-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

#loginPage .login-header h1 {
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #0f172a;
  letter-spacing: -0.2px;
  margin: 0;
}

#loginPage .login-header p {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 8px;
  text-transform: uppercase;
}

/* 4. 表单 */
#loginPage .form-group {
  margin-bottom: 18px;
}

#loginPage .form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

#loginPage .form-group input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

#loginPage .form-group input::placeholder {
  color: #94a3b8;
}

#loginPage .form-group input:focus {
  outline: none;
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* 5. 错误提示 */
#loginPage #loginError.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* 6. 记住设备 */
#loginPage .checkbox-label.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 20px;
  font-size: 13px;
  font-weight: 400;
  color: #475569;
  cursor: pointer;
}

#loginPage .checkbox-label.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* 7. 登录按钮 */
#loginPage #loginForm .btn-primary.btn-block {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
  transition: all 0.2s ease;
}

#loginPage #loginForm .btn-primary.btn-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.38);
}

#loginPage #loginForm .btn-primary.btn-block:active {
  transform: translateY(0);
}

/* 8. 底部提示 */
#loginPage .login-footer {
  text-align: center;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 12px;
}

/* 9. 响应式（手机端） */
@media (max-width: 480px) {
  #loginPage .login-card.glass {
    padding: 38px 26px 32px;
    border-radius: 18px;
  }
  #loginPage .login-header h1 {
    font-size: 24px;
  }
}
