/* ============================================================
   登录页样式
   设计思路：与主系统视觉风格统一（轩骥蓝 #2563eb / 圆角 12px / 卡片化）
   ============================================================ */

.login-body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: linear-gradient(135deg, #1c3a5e 0%, #2563eb 60%, #1d4ed8 100%);
  /* 备案期临时背景：深蓝渐变 + 细网格 */
  background-image:
    linear-gradient(135deg, #1c3a5e 0%, #2563eb 60%, #1d4ed8 100%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.http-warn {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fef3c7;
  color: #78350f;
  border-bottom: 1px solid #fcd34d;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  line-height: 1.4;
}
.http-warn[hidden] { display: none; }
.http-warn b { color: #b91c1c; }

.login-wrap {
  width: 100%;
  max-width: 420px;
  margin-top: 60px; /* 给顶部 http 警告留位 */
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 30, 60, 0.25), 0 4px 12px rgba(0,0,0,0.08);
  padding: 32px 32px 22px;
}

.login-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 22px;
}
.login-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  padding: 4px;
  flex: 0 0 44px;
}
.login-title {
  font-size: 18px; font-weight: 700; color: #0f172a;
  margin: 0 0 2px 0;
}
.login-sub {
  font-size: 12.5px; color: #64748b; margin: 0;
}

.reason-box {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.reason-box[hidden] { display: none; }
.reason-box b { color: #0f172a; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-label {
  font-size: 12.5px; color: #475569; font-weight: 600;
}
.login-field input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fbfcfe;
  color: #0f172a;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.login-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 密码框 + 眼睛图标的容器：相对定位，让眼睛绝对定位到右侧 */
.login-password-wrap {
  position: relative;
  display: block;
}
.login-password-wrap input {
  width: 100%;
  /* 给眼睛留位置（避免文字被压住） */
  padding-right: 42px;
}
.login-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
  transition: color .15s, background .15s;
}
.login-password-toggle:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}
.login-password-toggle:focus {
  outline: 2px solid rgba(37, 99, 235, 0.4);
  outline-offset: 1px;
}
.login-password-toggle svg {
  display: block;
}

.error-box {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 14px;
  line-height: 1.4;
}
.error-box[hidden] { display: none; }

.login-submit {
  margin-top: 6px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  transition: transform .08s, box-shadow .15s, opacity .15s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.login-submit:hover { box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.login-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
}
.login-hint code {
  background: #f1f5f9;
  color: #475569;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}
.login-ver { color: #cbd5e1; }

@media (max-width: 480px) {
  .login-card { padding: 24px 20px 18px; }
  .login-title { font-size: 16px; }
}
