:root {
  --hz-green-dark: #1f3326;
  --hz-green: #294833;
  --hz-green-soft: #3d6045;
  --hz-bg: #f5f2ec;
  --hz-card-soft: #faf8f3;
  --hz-border: #e1dbcf;
  --hz-olive: #7d8f4f;
  --hz-orange: #c96f28;
  --hz-orange-dark: #a95618;
  --hz-text: #25231f;
  --hz-muted: #736d63;
  --login-bg-image: url("../img/bg1.jpg");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  margin: 0;
}

body.hunterz-login-page {
  min-height: 100vh;
  margin: 0;
  color: var(--hz-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-image:
    radial-gradient(circle at 47% 28%, rgba(201, 111, 40, 0.2), transparent 24%),
    linear-gradient(
      90deg,
      rgba(7, 10, 8, 0.72) 0%,
      rgba(12, 24, 17, 0.48) 38%,
      rgba(27, 32, 25, 0.34) 58%,
      rgba(250, 244, 236, 0.4) 100%
    ),
    var(--login-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body.hunterz-login-page::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: min(440px, 42vh);
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/topo-lines.svg");
  background-size: 920px auto;
  -webkit-mask-position: left bottom;
  mask-position: left bottom;
  background-position: left bottom;
  background-repeat: repeat-x;
  opacity: 0.34;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 46%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 46%, transparent 100%);
}

.login-page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1280px, calc(100vw - 96px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 520px;
  align-items: center;
  gap: 72px;
}

.login-copy {
  max-width: 660px;
  min-width: 0;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.36);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-size: 52px;
  font-weight: 850;
  line-height: 1;
}

.login-brand-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.login-copy-main {
  margin-top: clamp(56px, 9vh, 118px);
}

.login-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(80px, 6.7vw, 104px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.login-copy h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 26px;
  border-radius: 999px;
  background: var(--hz-orange);
  box-shadow: 0 0 24px rgba(201, 111, 40, 0.54);
}

.login-copy p {
  max-width: 500px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.45;
}

.login-features {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---- App store download badges ---- */
.login-app-badges {
  margin-top: 36px;
}

.login-app-badges-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.login-app-badges-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.login-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
  min-width: 148px;
}

.login-app-badge:hover,
.login-app-badge:focus {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
  text-decoration: none;
}

.login-app-badge.is-coming-soon {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.login-app-badge-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.login-app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.login-app-badge-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  text-shadow: none;
}

.login-app-badge-main {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login-feature {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.login-feature-icon {
  width: 48px;
  height: 48px;
  grid-row: 1 / span 2;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 111, 40, 0.92);
  color: #fff;
  background: rgba(10, 18, 13, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.login-feature-title {
  align-self: end;
  color: #f09a55;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.login-feature-text {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.35;
}

.login-card {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: 52px 56px 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow:
    0 34px 90px rgba(10, 18, 13, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.38) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-card-header {
  margin-bottom: 30px;
}

.login-card-title {
  margin: 0;
  color: var(--hz-green-dark);
  font-size: clamp(36px, 3vw, 46px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.login-card-title span {
  color: var(--hz-orange);
}

.login-card-subtitle {
  margin: 14px 0 0;
  color: var(--hz-muted);
  font-size: 17px;
  line-height: 1.45;
}

.login-card .form-group {
  margin-bottom: 20px;
}

.login-card label {
  color: var(--hz-text);
  font-size: 14px;
  font-weight: 750;
}

.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: var(--hz-muted);
  transform: translateY(-50%);
}

.login-card .form-control {
  height: 52px;
  border: 1px solid #ded7ca;
  border-radius: 11px;
  padding-left: 16px;
  color: var(--hz-text);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.login-input-wrap .form-control {
  padding-left: 50px;
}

.login-card .form-control:focus {
  border-color: var(--hz-olive);
  box-shadow: 0 0 0 4px rgba(125, 143, 79, 0.16);
}

.login-options-row {
  margin: 4px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-card .form-check {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hz-text);
}

.login-card .form-check-input {
  margin: 0;
}

.login-card a {
  color: var(--hz-orange-dark);
  font-weight: 750;
}

.login-card .btn-success {
  height: 54px;
  border: 1px solid var(--hz-orange);
  border-radius: 11px;
  background: linear-gradient(180deg, #df7d26 0%, #cf6100 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 16px 28px rgba(201, 111, 40, 0.24);
}

.login-card .btn-success:hover,
.login-card .btn-success:focus {
  border-color: var(--hz-orange-dark);
  background: linear-gradient(180deg, #e58731 0%, var(--hz-orange-dark) 100%);
}

.login-social-divider {
  margin: 28px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--hz-muted);
  font-weight: 650;
}

.login-social-divider::before,
.login-social-divider::after {
  content: "";
  height: 1px;
  background: var(--hz-border);
}

.login-social-stack {
  display: grid;
  gap: 10px;
}

.login-social-btn {
  height: 48px;
  border: 1px solid #ded7ca;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--hz-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 750;
  text-decoration: none;
}

.login-social-btn:hover,
.login-social-btn:focus {
  color: var(--hz-text);
  text-decoration: none;
  background: #fff;
}

.login-social-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.login-trust-strip {
  margin-top: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(125, 143, 79, 0.18);
  border-radius: 15px;
  background: rgba(237, 241, 228, 0.66);
}

.login-trust-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
}

.login-trust-item i {
  margin-top: 2px;
  color: var(--hz-green);
  font-size: 18px;
}

.login-trust-title {
  color: var(--hz-text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.login-trust-copy {
  margin-top: 3px;
  color: var(--hz-muted);
  font-size: 11px;
  line-height: 1.35;
}

.login-footer-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--hz-muted);
}

#ui_lang {
  width: auto;
  min-width: 76px;
  height: 36px;
  border-radius: 9px;
  border-color: var(--hz-border);
  color: var(--hz-text);
}

.is-valid {
  border-color: #28a745 !important;
}

.is-invalid {
  border-color: #dc3545 !important;
}

#pwdChecklist li,
#forcePwdChecklist li {
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

@media (max-width: 1100px) {
  .login-page-shell {
    width: min(1180px, calc(100vw - 48px));
    grid-template-columns: minmax(340px, 1fr) 500px;
    gap: 42px;
  }

  .login-card {
    padding: 46px 42px;
  }

  .login-trust-strip {
    grid-template-columns: 1fr;
  }

  .login-features {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  body.hunterz-login-page {
    background-image:
      linear-gradient(
        180deg,
        rgba(10, 18, 13, 0.78) 0%,
        rgba(19, 42, 29, 0.5) 48%,
        rgba(250, 244, 236, 0.64) 100%
      ),
      var(--login-bg-image);
  }

  .login-page-shell {
    width: calc(100vw - 32px);
    min-height: 100vh;
    padding: 28px 0;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .login-copy {
    max-width: 100%;
  }

  .login-brand {
    font-size: 36px;
  }

  .login-brand-icon {
    width: 50px;
    height: 50px;
  }

  .login-copy-main {
    margin-top: 42px;
  }

  .login-copy h1 {
    font-size: clamp(52px, 15vw, 70px);
  }

  .login-copy p {
    font-size: 16px;
  }

  .login-features {
    margin-top: 38px;
  }

  .login-feature {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .login-app-badges {
    margin-top: 24px;
  }

  .login-card {
    max-width: none;
    justify-self: stretch;
    padding: 34px 24px;
    border-radius: 22px;
  }

  .login-card-title {
    font-size: 34px;
  }

  .login-options-row,
  .login-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .login-feature {
    display: block;
  }

  .login-feature-icon {
    margin-bottom: 10px;
  }

  .login-app-badges-row {
    flex-direction: column;
    gap: 8px;
  }

  .login-app-badge {
    min-width: 0;
    width: 100%;
  }
}
