/* 登录页样式（对齐 static/site/admin 运营后台登录） */
:root {
  --color-primary: #1677FF;
  --gray-200: #E5E7EB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --radius-md: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.login-page {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.login-page {
  background: linear-gradient(135deg, #0E2A4F 0%, #1E4A8C 50%, #2E5FBF 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(114, 46, 209, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(22, 119, 255, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

body.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  width: 420px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.login-card .logo-row {
  text-align: center;
  margin-bottom: 28px;
}

.login-card .logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1677FF, #722ED1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.35);
}

.login-card h1 {
  font-size: 22px;
  margin: 0 0 4px;
  color: #111827;
  font-weight: 700;
}

.login-card .sub {
  color: var(--gray-500);
  font-size: 13px;
  margin: 0;
}

.login-tip {
  background: #E6F4FF;
  color: #0958D9;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.login-card .form-group {
  margin-bottom: 20px;
}

.login-card .form-label,
.login-card label.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}

.login-card .form-control,
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  height: auto;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.login-card .form-control:focus,
.login-card input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
}

.captcha-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.captcha-row .form-control {
  flex: 1;
}

.captcha-img-wrap {
  flex: 0 0 110px;
  height: 46px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #f0f2f5;
}

.captcha-img-wrap .imgcode {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.remember-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}

.forgot-link {
  color: var(--gray-500);
  text-decoration: none;
}

.forgot-link:hover {
  color: var(--color-primary);
}

.btn-login,
.login-card .submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1677FF, #4096FF);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.3);
}

.btn-login:hover,
.login-card .submit:hover {
  filter: brightness(1.05);
}

.register-link,
.login-agreement {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
}

.register-link a,
.login-agreement a {
  color: var(--color-primary);
  text-decoration: none;
}

.login-card .foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
}

label.error {
  position: inherit;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px;
  }
}
