/* 聚火物联 - 登录页（独立样式，不依赖 Gentelella login 主题） */
.jh-login-page {
  margin: 0;
  min-height: 100dvh;
  font-family: 'SF Pro Display', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #2f3437;
  background: #f7f6f3;
  -webkit-font-smoothing: antialiased;
}

.jh-login-page * {
  box-sizing: border-box;
}

.jh-login {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
}

.jh-login__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 56px);
  background: #0f2d5c;
  color: #f4f7fb;
  overflow: hidden;
}

.jh-login__brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(46, 199, 255, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 88% 100%, rgba(255, 122, 47, 0.14), transparent 55%);
  pointer-events: none;
}

.jh-login__brand > * {
  position: relative;
  z-index: 1;
}

.jh-login__brand-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.jh-login__brand-mark {
  display: inline-flex;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.jh-login__brand-mark .jh-brand-mark,
.jh-login__brand-mark svg {
  width: 72px !important;
  height: 72px !important;
}

.jh-login__brand-name {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.jh-login__brand-tag {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(244, 247, 251, 0.72);
  letter-spacing: 0.02em;
}

.jh-login__brand-body {
  margin-top: clamp(32px, 8vh, 72px);
  max-width: 420px;
}

.jh-login__brand-lead {
  margin: 0 0 28px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.jh-login__brand-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(244, 247, 251, 0.78);
  max-width: 38ch;
}

.jh-login__features {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.jh-login__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(244, 247, 251, 0.88);
}

.jh-login__feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(92, 225, 255, 0.12);
  border: 1px solid rgba(92, 225, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5ce1ff;
}

.jh-login__feature-icon svg {
  width: 14px;
  height: 14px;
}

.jh-login__brand-foot {
  margin: 0;
  font-size: 12px;
  color: rgba(244, 247, 251, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jh-login__brand-copy,
.jh-login__brand-icp {
  margin: 0;
}

.jh-login__brand-icp a {
  color: rgba(244, 247, 251, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 247, 251, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.jh-login__brand-icp a:hover {
  color: rgba(92, 225, 255, 0.95);
  border-bottom-color: rgba(92, 225, 255, 0.45);
}

.jh-login__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px);
  background: #f7f6f3;
}

.jh-login__card {
  width: 100%;
  max-width: 400px;
  padding: clamp(28px, 4vw, 40px);
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(15, 45, 92, 0.08);
  animation: jh-login-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes jh-login-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jh-login__card-head {
  margin-bottom: 28px;
}

.jh-login__card-mark {
  display: none;
}

.jh-login__site-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #787774;
}

.jh-login__title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #111111;
}

.jh-login__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #787774;
}

.jh-login__badge {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a4f12;
  background: #fcefd9;
  border: 1px solid #edd9b8;
  border-radius: 999px;
}

.jh-login__card-head .jh-login__title {
  margin-top: 10px;
}

.jh-login__alert {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #9f2f2d;
  background: #fdebec;
  border: 1px solid #f5d0ce;
}

.jh-login__field {
  margin-bottom: 18px;
}

.jh-login__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2f3437;
}

.jh-login__input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: #2f3437;
  background: #fbfbfa;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.jh-login__input::placeholder {
  color: #a8a5a0;
}

.jh-login__input:hover {
  border-color: #d8d6d2;
}

.jh-login__input:focus {
  background: #ffffff;
  border-color: #2b7cff;
  box-shadow: 0 0 0 3px rgba(43, 124, 255, 0.15);
}

.jh-login__submit {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 8px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #0f2d5c;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.jh-login__submit:hover {
  background: #163d75;
}

.jh-login__submit:active {
  transform: scale(0.98);
}

.jh-login__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
  text-align: center;
}

.jh-login__link {
  font-size: 14px;
  font-weight: 500;
  color: #1f6c9f;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 108, 159, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.jh-login__link:hover {
  color: #155a82;
  border-bottom-color: #155a82;
}

@media (max-width: 900px) {
  .jh-login {
    grid-template-columns: 1fr;
  }

  .jh-login__brand {
    min-height: auto;
    padding: 28px 24px 32px;
  }

  .jh-login__brand-body {
    margin-top: 24px;
  }

  .jh-login__brand-lead {
    font-size: 20px;
  }

  .jh-login__features {
    margin-top: 20px;
  }

  .jh-login__brand-foot {
    display: none;
  }

  .jh-login__card-mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 45, 92, 0.12);
  }

  .jh-login__card-mark .jh-brand-mark,
  .jh-login__card-mark svg {
    width: 48px !important;
    height: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jh-login__card {
    animation: none;
  }

  .jh-login__submit:active {
    transform: none;
  }
}
