/* 登录页面样式 - 极简扁平硬朗风格 (4px版) - 高级感优化 */
body {
  background-color: #F7F8FA; /* 更柔和的高级灰底色 */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1F2937;
  margin: 0;
  padding: 0;
}

/* 登录页面主要内容 */
.login-container {
  width: 100%;
  padding: 60px 20px;
  min-height: calc(100vh - 342px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

.login-main {
  width: 100%;
  max-width: 480px; /* 收窄卡片，更显精致 */
}

/* 核心卡片 */
.login-card {
  background: #ffffff;
  border-radius: 4px; /* 统一 4px */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02); /* 极其柔和的高级阴影 */
  border: 1px solid #E5E7EB; /* 极浅的边框 */
  padding: 48px 40px;
}

/* 主标题 */
.login-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: #03205A;
  text-align: center;
  letter-spacing: -0.01em;
}

/* 副标题提示 */
.login-title-sub {
  font-size: 14px;
  color: #2C61FE; /* 标准蓝，强调新会员积分 */
  text-align: center;
  margin-bottom: 36px;
  font-weight: 600;
}

.login-title-sub-inline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.point-equivalent-note {
  font-size: 13px;
}

/* 错误提示 */
.login-error {
  background-color: #FFEDF0;
  border: 1px solid #FFEDF0;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #DC2626;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.login-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #DC2626;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.login-error-title {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 14px;
}

.login-error-message {
  margin: 0;
}

/* 表单组 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 14px;
  color: #667085;
  line-height: 1.5;
}

/* 输入框 */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 4px; /* 统一 4px */
  font-size: 15px;
  transition: all 0.2s ease;
  background-color: #F7F8FA; /* 浅灰底色 */
  box-sizing: border-box;
  color: #03205A;
  height: 48px;
}

.form-input::placeholder {
  color: #667085;
}

.form-input:focus {
  border-color: #2C61FE; /* 标准蓝 */
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 浏览器原生自动填充背景修复 */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* 提交按钮 */
.login-button {
  width: 100%;
  height: 48px;
  background-color: #2C61FE; /* 标准蓝 */
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  letter-spacing: 0.5px;
}

.login-button:hover {
  background-color: #2C61FE;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Google 登录按钮外部壳子 */
.google-login-shell {
  position: relative;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

/* Google 登录自定义假UI */
.google-login-ui {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #03205A;
  user-select: none;
  pointer-events: none; /* 点击穿透到真实 Google 按钮 */
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-login-shell:hover .google-login-ui {
  background: #F7F8FA;
  border-color: #667085;
}

.google-login-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.google-login-text {
  line-height: 22px;
  white-space: nowrap;
}

/* 透明真实 Google 按钮层 */
.google-real-btn {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.01; /* 保持 0.01 使得按钮存在且不可见，确保能点击 */
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scaleY(1.15); /* 稍微拉伸一点使得触控区域铺满整个容器 */
  transform-origin: center center;
}

.google-real-btn > div {
  width: 100%;
}

/* 底部声明区 */
.login-notice {
  background: none;
  padding: 24px 0 0 0;
  margin-top: 8px;
  font-size: 12px; /* 弱化声明文字 */
  color: #667085;
  line-height: 1.6;
  border: none;
  border-top: 1px solid #F7F8FA; /* 顶部加一条分割线 */
  text-align: center;
}

.login-notice a {
  color: #667085;
  text-decoration: underline;
  font-weight: 400;
}

.login-notice a:hover {
  color: #03205A;
}

/* 响应式样式 */
@media screen and (max-width: 767px) {
  .login-container {
    padding: 20px 15px;
  }
  
  .login-card {
    padding: 32px 24px;
    border-radius: 4px;
  }
  
  .login-title {
    font-size: 22px;
  }

  .login-title-sub {
    font-size: 13.5px;
    margin-bottom: 24px;
  }
}