:root {
  --login-bg: #050816;
  --login-surface: #0b1026;
  --login-surface-2: #111735;
  --login-border: rgba(166, 178, 228, .18);
  --login-text: #f8f9ff;
  --login-muted: #aeb8d1;
  --login-purple: #8b6cff;
  --login-pink: #d96de8;
  --login-green: #8df0b0;
}

.public-mode {
  background: var(--login-bg);
  color: var(--login-text);
}

.public-mode .public-header {
  position: relative;
  z-index: 50;
  height: 78px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,8,22,.96);
  backdrop-filter: blur(18px);
}

.public-mode .public-header-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0 32px;
}

.public-mode .system-brand {
  color: #fff;
}

.public-mode .system-brand strong,
.public-mode .system-brand small {
  color: #fff;
}

.public-mode .system-brand strong {
  font-size: 20px;
}

.public-mode .system-brand small {
  opacity: .72;
  font-size: 9px;
  letter-spacing: .11em;
}

.public-mode .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7767ff, #9259ff);
  box-shadow: 0 14px 30px rgba(111,81,255,.34);
}

.public-mode .secure-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(141,240,176,.28);
  border-radius: 999px;
  color: var(--login-green);
  background: rgba(69,181,111,.08);
  font-size: 12px;
  font-weight: 700;
}

.public-mode .public-content {
  min-height: calc(100svh - 78px);
  padding: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(106,68,255,.14), transparent 30%),
    linear-gradient(145deg, #050816, #070b1c 50%, #090e25);
}

.lh-login-page,
.lh-login-container,
.lh-login-row {
  min-height: calc(100svh - 78px);
}

.lh-hero-column {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 38%, rgba(125,79,255,.21), transparent 27%),
    radial-gradient(circle at 10% 15%, rgba(59,65,184,.20), transparent 26%),
    linear-gradient(145deg, #050816 0%, #080c21 45%, #0c1230 100%);
}

.lh-hero-column::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.lh-hero-layout {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(22px, 3vw, 54px);
  padding: clamp(34px, 4vw, 68px) clamp(28px, 4vw, 70px) 34px;
}

.lh-hero-copy {
  min-width: 0;
}

.lh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(139,108,255,.35);
  border-radius: 999px;
  color: #d8d1ff;
  background: rgba(110,79,230,.10);
  font-size: 11px;
  font-weight: 700;
}

.lh-kicker i {
  color: #9d83ff;
}

.lh-hero-copy h1 {
  max-width: 680px;
  margin: 22px 0 14px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 4.1vw, 64px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.lh-hero-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, #987cff 0%, #d676ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lh-hero-subtitle {
  max-width: 650px;
  margin: 0;
  color: #c8d0e4;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.65;
}

.lh-benefit-row {
  margin-top: 28px;
}

.lh-benefit-card {
  padding: 17px;
  border: 1px solid var(--login-border);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
}

.lh-benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #715cff, #a46bff);
  box-shadow: 0 12px 24px rgba(112,84,255,.30);
  font-size: 18px;
}

.lh-benefit-card h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.lh-benefit-card p {
  margin: 0;
  color: #adb7cd;
  font-size: 11px;
  line-height: 1.55;
}

.lh-category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 7px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid var(--login-border);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
}

.lh-category-strip > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 7px 3px;
  text-align: center;
}

.lh-category-strip i {
  color: #b277ff;
  font-size: 20px;
}

.lh-category-strip span {
  color: #e7ebf8;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.lh-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}

.lh-trust-strip > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}

.lh-trust-strip i {
  flex: 0 0 auto;
  color: var(--login-green);
  font-size: 18px;
}

.lh-trust-strip span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lh-trust-strip strong {
  overflow: hidden;
  color: #f2f4fb;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lh-trust-strip small {
  color: #8f9ab3;
  font-size: 9px;
}

.lh-poster-stage {
  position: relative;
  min-height: 625px;
  align-self: stretch;
  isolation: isolate;
}

.lh-poster-glow {
  position: absolute;
  z-index: -1;
  inset: 18% 4% 12% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128,77,255,.42), rgba(84,38,210,.14) 38%, transparent 70%);
  filter: blur(18px);
}

.lh-poster-stage::before,
.lh-poster-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 3%;
  right: 2%;
  height: 180px;
  border: 2px solid rgba(119,79,255,.30);
  border-radius: 50%;
  filter: blur(1px);
  transform: rotate(-8deg);
}

.lh-poster-stage::before {
  top: 27%;
}

.lh-poster-stage::after {
  top: 53%;
  transform: rotate(11deg);
  opacity: .55;
}

.lh-poster-card {
  position: absolute;
  width: clamp(112px, 9vw, 158px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 16px;
  background: #0c1128;
  box-shadow: 0 24px 42px rgba(0,0,0,.42), 0 0 28px rgba(104,69,255,.16);
  transform-origin: center;
  transition: transform .35s ease, filter .35s ease;
}

.lh-poster-card:hover {
  z-index: 20;
  filter: brightness(1.08);
  transform: translateY(-8px) rotate(0deg) scale(1.05);
}

.lh-poster-card img {
  width: 100%;
  aspect-ratio: .68;
  display: block;
  object-fit: cover;
}

.poster-nebula { top: 4%; left: 9%; transform: rotate(-5deg); }
.poster-shadow { top: 0; left: 37%; transform: rotate(4deg); }
.poster-horizon { top: 7%; right: 0; transform: rotate(9deg); }
.poster-action { top: 35%; left: 3%; transform: rotate(-7deg); }
.poster-live { top: 32%; left: 35%; transform: rotate(2deg); }
.poster-sports { top: 35%; right: 0; transform: rotate(8deg); }
.poster-kids { bottom: 1%; left: 17%; transform: rotate(-3deg); }
.poster-nature { bottom: 0; right: 10%; transform: rotate(7deg); }

.lh-login-column {
  position: relative;
  display: flex;
  min-height: calc(100svh - 78px);
  border-left: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 62% 30%, rgba(105,70,233,.10), transparent 35%),
    linear-gradient(180deg, #070b1c 0%, #090e23 100%);
}

.lh-login-panel-wrap {
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(26px, 3.5vw, 58px);
}

.lh-login-panel {
  width: min(100%, 535px);
  padding: clamp(26px, 3vw, 44px);
  border: 1px solid rgba(163,175,229,.20);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15,21,48,.88), rgba(10,15,36,.92));
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}

.lh-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b68bff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.lh-login-panel h2 {
  margin: 14px 0 8px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lh-panel-copy {
  margin-bottom: 25px;
  color: #b8c1d7;
  font-size: 14px;
  line-height: 1.65;
}

.lh-login-form .form-label {
  margin-bottom: 8px;
  color: #f2f4fb;
  font-size: 12px;
  font-weight: 700;
}

.lh-form-control-wrap {
  position: relative;
}

.lh-form-control-wrap > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  color: #8d98b5;
  font-size: 16px;
}

.lh-form-control-wrap .form-control {
  height: 55px;
  padding: 0 48px;
  border: 1px solid rgba(170,181,228,.18);
  border-radius: 13px;
  color: #fff;
  background: rgba(5,9,25,.42);
  box-shadow: none;
  font-size: 14px;
}

.lh-form-control-wrap .form-control::placeholder {
  color: #78839f;
}

.lh-form-control-wrap .form-control:focus {
  border-color: rgba(140,108,255,.76);
  background: rgba(8,12,30,.66);
  box-shadow: 0 0 0 4px rgba(139,108,255,.10);
}

.lh-password-wrap .form-control {
  padding-right: 54px;
}

.lh-password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  color: #98a4c1;
  background: transparent;
}

.lh-password-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.lh-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 21px;
}

.lh-login-options .form-check-label {
  color: #b7c0d7;
  font-size: 11px;
}

.lh-login-options .form-check-input {
  border-color: #59627a;
  background-color: transparent;
}

.lh-login-options .form-check-input:checked {
  border-color: #8067ff;
  background-color: #8067ff;
}

.lh-login-options > a {
  color: #aa83ff;
  font-size: 11px;
  text-decoration: none;
}

.lh-login-options > a:hover {
  color: #d5bcff;
}

.lh-login-submit {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(90deg, #6658f5 0%, #8a60ff 48%, #d367e5 100%);
  box-shadow: 0 18px 34px rgba(108,79,235,.30);
  font-size: 14px;
  font-weight: 800;
}

.lh-login-submit i:last-child {
  margin-left: auto;
}

.lh-login-submit:hover,
.lh-login-submit:focus {
  color: #fff;
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.lh-login-divider {
  position: relative;
  margin: 24px 0 20px;
  text-align: center;
}

.lh-login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,.09);
}

.lh-login-divider span {
  position: relative;
  padding: 0 13px;
  color: #7f8aa6;
  background: #0d1330;
  font-size: 10px;
  text-transform: uppercase;
}

.lh-register-link {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(166,178,228,.18);
  border-radius: 13px;
  color: #b9c2d8;
  background: rgba(255,255,255,.02);
  font-size: 11px;
  text-align: center;
  text-decoration: none;
}

.lh-register-link strong {
  color: #b58aff;
}

.lh-register-link:hover {
  border-color: rgba(181,138,255,.48);
  color: #fff;
}

.lh-panel-security {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #8994ae;
  font-size: 9px;
  line-height: 1.45;
}

.lh-panel-security i {
  color: var(--login-green);
  font-size: 16px;
}

.public-mode .flash-stack {
  top: 90px;
}

@media (max-width: 1439.98px) {
  .lh-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    padding-left: 34px;
    padding-right: 34px;
  }

  .lh-poster-stage {
    min-height: 560px;
  }

  .lh-poster-card {
    width: clamp(100px, 9vw, 136px);
  }

  .lh-category-strip span {
    font-size: 8px;
  }
}

@media (max-width: 1199.98px) {
  .lh-hero-column,
  .lh-login-column {
    min-height: auto;
  }

  .lh-hero-layout {
    min-height: auto;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .lh-poster-stage {
    min-height: 530px;
  }

  .lh-login-panel-wrap {
    padding: 42px 22px;
  }

  .lh-login-panel {
    width: min(100%, 650px);
  }
}

@media (max-width: 991.98px) {
  .public-mode .public-header-inner {
    padding: 0 20px;
  }

  .lh-hero-layout {
    grid-template-columns: 1fr;
    padding: 38px 24px 30px;
  }

  .lh-poster-stage {
    width: min(100%, 650px);
    min-height: 520px;
    margin: 0 auto;
  }

  .lh-hero-copy h1 {
    max-width: 760px;
  }

  .lh-category-strip {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .lh-category-strip span {
    font-size: 10px;
  }

  .lh-trust-strip {
    margin-bottom: 6px;
  }
}

@media (max-width: 767.98px) {
  .public-mode .public-header {
    height: 68px;
  }

  .public-mode .public-content,
  .lh-login-page,
  .lh-login-container,
  .lh-login-row {
    min-height: calc(100svh - 68px);
  }

  .public-mode .system-brand strong {
    font-size: 17px;
  }

  .public-mode .secure-label {
    padding: 7px 10px;
    font-size: 10px;
  }

  .lh-hero-column {
    order: 2;
  }

  .lh-login-column {
    order: 1;
  }

  .lh-login-panel-wrap {
    padding: 24px 16px;
  }

  .lh-login-panel {
    padding: 24px 19px;
    border-radius: 19px;
  }

  .lh-login-panel h2 {
    font-size: 31px;
  }

  .lh-hero-layout {
    padding: 31px 17px 26px;
  }

  .lh-hero-copy h1 {
    font-size: 37px;
  }

  .lh-benefit-row > [class*="col-"] {
    width: 100%;
  }

  .lh-benefit-card {
    display: grid;
    grid-template-columns: 43px 1fr;
    column-gap: 13px;
    align-items: start;
  }

  .lh-benefit-icon {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .lh-benefit-card h2,
  .lh-benefit-card p {
    grid-column: 2;
  }

  .lh-poster-stage {
    min-height: 420px;
  }

  .lh-poster-card {
    width: 104px;
    border-radius: 13px;
  }

  .poster-nebula { left: 4%; }
  .poster-shadow { left: 35%; }
  .poster-horizon { right: 2%; }
  .poster-action { left: 1%; }
  .poster-live { left: 35%; }
  .poster-sports { right: 2%; }
  .poster-kids { left: 17%; }
  .poster-nature { right: 12%; }

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

  .lh-login-options {
    align-items: flex-start;
  }
}

@media (max-width: 479.98px) {
  .public-mode .public-header-inner {
    padding: 0 12px;
  }

  .public-mode .secure-label span,
  .secure-label {
    max-width: 120px;
  }

  .lh-category-strip {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .lh-poster-stage {
    min-height: 365px;
  }

  .lh-poster-card {
    width: 88px;
  }

  .lh-login-options {
    flex-direction: column;
  }

  .lh-register-link {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .poster-nebula,
  .poster-horizon,
  .poster-live,
  .poster-kids {
    animation: posterFloatA 7s ease-in-out infinite;
  }

  .poster-shadow,
  .poster-action,
  .poster-sports,
  .poster-nature {
    animation: posterFloatB 8s ease-in-out infinite;
  }
}

@keyframes posterFloatA {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

@keyframes posterFloatB {
  0%, 100% { margin-top: 0; }
  50% { margin-top: 7px; }
}
