:root {
  color-scheme: dark;
  --font-main: "Outfit", "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --lgf-bg: #05070b;
  --lgf-bg-accent: rgba(255, 205, 102, 0.05);
  --lgf-panel: rgba(8, 12, 20, 0.92);
  --lgf-panel-deep: rgba(6, 8, 12, 0.98);
  --lgf-border: rgba(255, 255, 255, 0.12);
  --lgf-border-soft: rgba(255, 255, 255, 0.08);
  --lgf-text: #f5f7fa;
  --lgf-muted: #a6afbb;
  --lgf-muted-2: rgba(166, 175, 187, 0.72);
  --lgf-gold: #d9a441;
  --lgf-gold-soft: #dda538;
  --lgf-gold-deep: #b98322;
  --lgf-gold-bright: #ffe2a2;
  --lgf-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
  --lgf-radius: 30px;
  --lgf-radius-sm: 16px;
  --lgf-radius-xs: 12px;
  --lgf-font-body: var(--font-main);
  --lgf-font-display: "Geologica", var(--font-main);
}

html,
body {
  min-height: 100%;
}

body.lgf-login-body {
  margin: 0;
  color: var(--lgf-text);
  font-family: var(--lgf-font-body);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 208, 95, 0.06), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255, 190, 70, 0.08), transparent 20%),
    linear-gradient(180deg, #040507 0%, #07080b 100%);
  overflow-x: hidden;
}

body.lgf-login-body a {
  color: inherit;
}

.phpdebugbar,
#debugbar,
#toolbarContainer,
#debug-bar,
#debugbar_loader,
#debugbar_dynamic_script,
#debugbar_dynamic_style {
  display: none !important;
}

.lgf-auth-shell {
  min-height: 100vh;
  padding: 18px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 195, 95, 0.05), transparent 44%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.24), transparent 40%);
  position: relative;
  isolation: isolate;
}

.lgf-auth-shell > :not(.lgf-space-field) {
  position: relative;
  z-index: 1;
}

.lgf-space-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lgf-space-orb,
.lgf-space-star,
.lgf-space-comet {
  position: absolute;
  border-radius: 999px;
  will-change: transform, opacity;
}

.lgf-space-orb {
  width: var(--orb-size, 180px);
  height: var(--orb-size, 180px);
  left: var(--orb-left, 50%);
  top: var(--orb-top, 50%);
  background: radial-gradient(circle, rgba(255, 205, 102, 0.26) 0%, rgba(255, 182, 74, 0.10) 22%, rgba(255, 182, 74, 0) 68%);
  filter: blur(12px);
  opacity: 0.28;
  transform: translate3d(0, 0, 0);
  animation: lgf-orb-drift var(--orb-duration, 22s) ease-in-out infinite;
}

.lgf-space-star {
  width: var(--star-size, 2px);
  height: var(--star-size, 2px);
  left: var(--star-left, 50%);
  top: var(--star-top, 50%);
  background:
    radial-gradient(circle, rgba(255, 244, 215, 0.98) 0%, rgba(255, 227, 162, 0.76) 32%, rgba(255, 208, 95, 0) 72%);
  box-shadow: 0 0 10px rgba(255, 211, 110, 0.34);
  opacity: 0.72;
  animation:
    lgf-star-twinkle var(--star-duration, 8s) ease-in-out infinite,
    lgf-star-drift var(--star-drift-duration, 30s) linear infinite;
  animation-delay: var(--star-delay, 0s);
}

.lgf-space-star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240%;
  height: 240%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 227, 162, 0.42) 0%, rgba(255, 227, 162, 0) 70%);
  opacity: 0.18;
}

.lgf-space-comet {
  width: var(--comet-size, 6px);
  height: var(--comet-size, 6px);
  left: var(--comet-left, 50%);
  top: var(--comet-top, 50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 231, 180, 0.94) 18%, rgba(255, 201, 97, 0.72) 42%, rgba(255, 176, 61, 0.12) 72%, rgba(255, 176, 61, 0) 100%);
  filter: drop-shadow(0 0 10px rgba(255, 207, 97, 0.52)) drop-shadow(0 0 20px rgba(255, 177, 64, 0.18));
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(var(--comet-angle, 35deg));
  transform-origin: center center;
  animation: lgf-comet-glide var(--comet-duration, 16s) linear infinite;
  animation-delay: var(--comet-delay, 0s);
}

.lgf-space-comet::before {
  content: "";
  position: absolute;
  right: 46%;
  top: 50%;
  width: var(--comet-tail, 160px);
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 238, 205, 0.08) 18%, rgba(255, 226, 161, 0.86) 62%, rgba(255, 186, 72, 0.08) 88%, rgba(255, 186, 72, 0) 100%);
  box-shadow: 0 0 14px rgba(255, 206, 103, 0.26);
  opacity: 0.94;
}

.lgf-space-comet::after {
  content: "";
  position: absolute;
  right: calc(46% + var(--comet-tail, 160px) - 18px);
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 232, 178, 0.52) 34%, rgba(255, 232, 178, 0) 72%);
  filter: blur(3px);
  opacity: 0.72;
}

.lgf-auth-shell::before,
.lgf-auth-shell::after {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
  z-index: 0;
}

.lgf-auth-shell::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 209, 99, 0.14), transparent 14%),
    radial-gradient(circle at 84% 28%, rgba(255, 170, 65, 0.10), transparent 18%),
    radial-gradient(circle at 48% 82%, rgba(255, 201, 105, 0.08), transparent 20%);
  filter: blur(12px);
  opacity: 0.62;
  transform: translate3d(0, 0, 0);
}

.lgf-auth-shell::after {
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.02) 48%, transparent 52%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 62%),
    radial-gradient(circle at 22% 24%, rgba(255, 219, 145, 0.08), transparent 14%),
    radial-gradient(circle at 82% 66%, rgba(255, 198, 98, 0.07), transparent 13%);
  mix-blend-mode: screen;
  opacity: 0.16;
  filter: blur(1px);
}

.lgf-auth-stage {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: minmax(418px, 34.2%) minmax(0, 65.8%);
  gap: 14px;
  position: relative;
  z-index: 1;
}

.lgf-panel {
  min-height: calc(100vh - 36px);
  border-radius: var(--lgf-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--lgf-shadow);
}

.lgf-card-panel {
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.99) 0%, rgba(6, 7, 10, 0.98) 100%);
  border: 1px solid var(--lgf-border);
  --lgf-card-tilt-x: 0deg;
  --lgf-card-tilt-y: 0deg;
  --lgf-card-lift: 0px;
  --lgf-card-glow-x: 50%;
  --lgf-card-glow-y: 50%;
  transform: translate3d(0, 0, 0) perspective(1800px) rotateX(var(--lgf-card-tilt-y)) rotateY(var(--lgf-card-tilt-x));
  transform-style: preserve-3d;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.lgf-card-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 205, 100, 0.03), transparent 24%),
    radial-gradient(circle at var(--lgf-card-glow-x, 50%) var(--lgf-card-glow-y, 50%), rgba(255, 231, 170, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
  pointer-events: none;
}

.lgf-card-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 214, 128, 0.10), transparent 9%),
    radial-gradient(circle at 72% 10%, rgba(255, 180, 74, 0.08), transparent 10%),
    radial-gradient(circle at 84% 74%, rgba(255, 214, 128, 0.08), transparent 8%),
    radial-gradient(circle at 38% 78%, rgba(255, 255, 255, 0.05), transparent 7%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.015) 48%, transparent 52%);
  opacity: 0.14;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: lgf-card-field 20s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
}

.lgf-hero-space-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.lgf-hero-space-field .lgf-space-orb {
  opacity: 0.12;
  filter: blur(12px);
}

.lgf-hero-space-field .lgf-space-star {
  opacity: 0.42;
  box-shadow: 0 0 8px rgba(255, 215, 130, 0.18);
}

.lgf-hero-space-field .lgf-space-comet {
  opacity: 0.52;
  filter: drop-shadow(0 0 8px rgba(255, 220, 143, 0.34)) drop-shadow(0 0 18px rgba(255, 188, 67, 0.10));
}

.lgf-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px 28px 22px;
  box-sizing: border-box;
  display: grid;
  flex-direction: column;
  transform: translate3d(0, calc(var(--lgf-card-lift, 0px) * -0.20), 12px);
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lgf-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 54px;
}

.lgf-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.lgf-brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.lgf-brand-name {
  color: #f6f2ea;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lgf-flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.lgf-flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(246, 242, 235, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lgf-flash--success {
  border-color: rgba(90, 179, 96, 0.22);
  background: rgba(90, 179, 96, 0.08);
}

.lgf-flash--warning {
  border-color: rgba(255, 198, 69, 0.22);
  background: rgba(255, 198, 69, 0.08);
}

.lgf-flash--error {
  border-color: rgba(216, 84, 84, 0.22);
  background: rgba(216, 84, 84, 0.08);
}

.lgf-flash__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  color: var(--lgf-gold-soft);
}

.lgf-flash__icon .lgf-svg-icon {
  width: 18px;
  height: 18px;
}

.lgf-flash__icon .fa {
  font-size: 18px;
  line-height: 1;
}

.lgf-flash__icon .ki-outline,
.lgf-flash__icon .ki-filled,
.lgf-flash__icon .ki-duotone {
  font-size: 18px;
  line-height: 1;
}

.lgf-flash__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.lgf-flash__text {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(246, 242, 235, 0.76);
}

.lgf-login-copy {
  margin-top: 0;
  margin-bottom: 30px;
  max-width: 29ch;
}

.lgf-title {
  margin: 0 0 12px;
  color: #fbfaf7;
  font-size: clamp(32px, 2.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-family: var(--lgf-font-display);
  font-weight: 700;
}

.lgf-subtitle {
  margin: 0;
  color: rgba(242, 235, 225, 0.75);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
}

.lgf-form {
  margin-top: 20px;
  position: relative;
}

.lgf-field {
  margin-bottom: 20px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.lgf-field.is-focused,
.lgf-field.is-filled {
  transform: translateY(-1px);
}

.lgf-field-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(249, 245, 237, 0.96);
  font-size: 14px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.lgf-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lgf-row-label .lgf-field-label {
  margin-bottom: 0;
}

.lgf-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  position: relative;
}

.lgf-input-wrap::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 225, 159, 0.16) 48%, transparent 52%);
  transform: translateX(-120%);
}

.lgf-input-wrap:focus-within {
  border-color: rgba(243, 195, 95, 0.42);
  box-shadow: 0 0 0 0.14rem rgba(243, 195, 95, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.lgf-input-wrap.is-focused {
  border-color: rgba(255, 219, 141, 0.54);
  box-shadow: 0 0 0 0.16rem rgba(243, 195, 95, 0.12), 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px) scale(1.005);
}

.lgf-input-wrap.is-focused::after {
  animation: lgf-input-sheen 1.15s ease-out 1;
}

.lgf-input-wrap.is-filled {
  border-color: rgba(255, 214, 131, 0.30);
}

.lgf-input-wrap.is-invalid {
  border-color: rgba(228, 95, 95, 0.48);
  box-shadow: 0 0 0 0.15rem rgba(228, 95, 95, 0.12);
  animation: lgf-shake 420ms ease-in-out 1;
}

.lgf-input-icon {
  width: 52px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 222, 146, 0.95);
  font-size: 1rem;
}

.lgf-input-icon .lgf-svg-icon {
  width: 18px;
  height: 18px;
}

.lgf-input-icon .fa {
  font-size: 18px;
  line-height: 1;
}

.lgf-input-icon .ki-outline,
.lgf-input-icon .ki-filled,
.lgf-input-icon .ki-duotone {
  font-size: 18px;
  line-height: 1;
}

.lgf-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #f8f5ef;
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--lgf-font-body);
}

.lgf-input::placeholder {
  color: rgba(255, 255, 255, 0.50);
}

.lgf-password-toggle {
  width: 52px;
  min-width: 52px;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(248, 246, 240, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, opacity 160ms ease, color 160ms ease;
}

.lgf-password-toggle .lgf-svg-icon {
  width: 18px;
  height: 18px;
}

.lgf-password-toggle .fa {
  font-size: 18px;
  line-height: 1;
}

.lgf-password-toggle .ki-outline,
.lgf-password-toggle .ki-filled,
.lgf-password-toggle .ki-duotone {
  font-size: 18px;
  line-height: 1;
}

.lgf-password-toggle:hover {
  color: #ffdca0;
  opacity: 1;
}

.lgf-password-toggle:active {
  transform: scale(0.94);
}

.lgf-link {
  color: #d9a441;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, transform 160ms ease;
}

.lgf-link:hover {
  color: #ffe29a;
  transform: translateX(1px);
}

.lgf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lgf-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.lgf-check input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--lgf-gold-soft);
}

.lgf-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  font-family: var(--lgf-font-body);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.lgf-btn-primary {
  margin-top: 5px;
  background: linear-gradient(135deg, #f8db90 0%, #dda538 52%, #dda538 100%);
  color: #171006;
  box-shadow: 0 16px 30px rgba(199, 145, 43, 0.30);
  font-size: 17px;
}

.lgf-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 50%, transparent 100%);
  transform: translateX(-130%);
  opacity: 0;
}

.lgf-btn-primary:hover {
  background: linear-gradient(135deg, #ffe2a3 0%, #ecc062 52%, #c99435 100%);
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(199, 145, 43, 0.34);
}

.lgf-btn-primary:hover::before {
  opacity: 1;
  animation: lgf-button-sheen 1.35s ease-out 1;
}

.lgf-btn-primary:active,
.lgf-btn.is-pressed {
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 12px 24px rgba(199, 145, 43, 0.22);
}

.lgf-form.is-submitting .lgf-btn-primary {
  pointer-events: none;
  filter: saturate(0.92);
}

.lgf-form.is-submitting .lgf-btn-primary::before {
  opacity: 1;
  animation: lgf-button-sheen 1s ease-out infinite;
}

.lgf-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 14px;
  color: rgba(245, 240, 231, 0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lgf-divider::before,
.lgf-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.11);
}

.lgf-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8f5ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lgf-btn-ghost:hover {
  border-color: rgba(243, 195, 95, 0.30);
}

.lgf-footnote {
  margin-top: 0px;
  padding-top: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(241, 235, 226, 0.62);
  font-size: 14px;
}

.lgf-footnote__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lgf-footnote__icon .lgf-svg-icon {
  width: 16px;
  height: 16px;
  color: #f0c75d;
}

.lgf-footnote__icon .fa {
  font-size: 16px;
  color: #f0c75d;
  line-height: 1;
}

.lgf-footnote__icon .ki-outline,
.lgf-footnote__icon .ki-filled,
.lgf-footnote__icon .ki-duotone {
  font-size: 16px;
  color: #f0c75d;
  line-height: 1;
}

.lgf-hero {
  position: relative;
  border: 1px solid var(--lgf-border-soft);
  background:
    linear-gradient(135deg, rgba(2, 3, 5, 0.95) 0%, rgba(5, 6, 9, 0.74) 45%, rgba(3, 3, 5, 0.96) 100%),
    url('../../bg1.png');
  background-size: cover, cover, cover, cover, cover;
  background-position: center center, center center, center center, center center, center center;
  overflow: hidden;
}

@supports (background-image: image-set(url('../../bg1.webp') type('image/webp'))) {
  .lgf-hero {
    background:
      linear-gradient(135deg, rgba(2, 3, 5, 0.95) 0%, rgba(5, 6, 9, 0.74) 45%, rgba(3, 3, 5, 0.96) 100%),
      image-set(url('../../bg1.webp') type('image/webp'), url('../../bg1.png') type('image/png'));
  }
}

.lgf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 207, 93, 0.11), transparent 18%),
    radial-gradient(circle at 78% 26%, rgba(255, 166, 58, 0.10), transparent 16%),
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.04) 50%, transparent 80%);
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: lgf-bg-drift 18s ease-in-out infinite;
}

.lgf-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 9%;
  width: 84%;
  height: 74%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 210, 113, 0.20) 0%, rgba(255, 210, 113, 0.08) 18%, rgba(255, 210, 113, 0.00) 62%);
  filter: blur(0.4px) drop-shadow(0 0 38px rgba(255, 198, 78, 0.28));
  opacity: 0.52;
  pointer-events: none;
  animation: lgf-orbit 14s ease-in-out infinite;
}

.lgf-hero-space-field::before {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 231, 170, 0.14), transparent 10%),
    radial-gradient(circle at 72% 18%, rgba(255, 204, 98, 0.16), transparent 14%),
    linear-gradient(132deg, transparent 32%, rgba(255, 226, 164, 0.12) 48%, rgba(255, 255, 255, 0.02) 50%, transparent 56%);
  mix-blend-mode: screen;
  opacity: 0.26;
  filter: blur(2px);
  animation: lgf-hero-sweep 28s linear infinite;
}

.lgf-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px 28px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transform: translate3d(var(--lgf-parallax-x, 0px), var(--lgf-parallax-y, 0px), 0) rotate(var(--lgf-parallax-tilt, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.lgf-hero-logo {
  width: 210px;
  height: auto;
  position: absolute;
  right: 28px;
  top: 26px;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.34));
}

.lgf-hero-copy {
  max-width: 920px;
  margin-left: 38px;
  margin-top: 116px;
}

.lgf-hero-kicker {
  color: var(--lgf-gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.lgf-hero-title {
  color: #f8f7f4;
  font-family: var(--lgf-font-display);
  font-size: clamp(52px, 5.8vw, 74px);
  line-height: 0.98;
  font-weight: 300;
  margin-top: 22px;
  margin-bottom: 15px;
  letter-spacing: 0.1px;
}

.lgf-hero-title span {
  display: block;
}

.lgf-hero-rule {
  width: 58px;
  height: 4px;
  margin: 18px 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5ca66 0%, #e3a93e 100%);
  box-shadow: 0 0 18px rgba(255, 197, 68, 0.24);
  position: relative;
  overflow: hidden;
}

.lgf-hero-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.42) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: lgf-shimmer 5.8s ease-in-out infinite;
}

.lgf-hero-highlight {
  color: #dda538;
  font-family: var(--lgf-font-display);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.lgf-hero-subtitle {
  margin-top: 6px;
  color: rgba(246, 242, 235, 0.68);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.lgf-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding: 0 20px 0 0;
}

.lgf-feature {
  min-height: 170px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(5, 7, 10, 0.62);
  backdrop-filter: blur(12px);
  padding: 16px 16px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.lgf-feature-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd36e;
  font-size: 1.3rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px rgba(255, 206, 103, 0.28));
}

.lgf-feature-icon .lgf-svg-icon {
  width: 52px;
  height: 52px;
}

.lgf-feature-title {
  color: #dda538;
  font-family: var(--lgf-font-display);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.lgf-feature-text {
  color: rgba(242, 237, 229, 0.78);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  max-width: 18ch;
}

.lgf-verse {
  margin-top: 16px;
  padding: 0 16px 0 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lgf-verse-mark {
  width: 52px;
  height: 52px;
  color: #f1c24f;
  font-size: 3.6rem;
  line-height: 0.6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 18px rgba(255, 198, 78, 0.18);
  animation: lgf-pulse 3.8s ease-in-out infinite;
}

.lgf-verse-mark .lgf-svg-icon {
  width: 30px;
  height: 30px;
}

.lgf-verse-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.18);
}

.lgf-verse-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lgf-verse-cross {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 197, 92, 0.22);
  color: #f9c95b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 22px rgba(249, 201, 91, 0.12);
  flex: 0 0 56px;
  animation: lgf-float 4.6s ease-in-out infinite;
}

.lgf-verse-cross .ki-outline,
.lgf-verse-cross .ki-filled,
.lgf-verse-cross .ki-duotone {
  font-size: 2rem;
  line-height: 1;
}

.lgf-verse-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.lgf-verse-line {
  color: #f6f3ee;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lgf-verse-ref {
  color: #dda538;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
}

.lgf-world-map {
  margin-left: auto;
  width: 280px;
  height: 92px;
  opacity: 0.82;
  border-radius: 999px;
  background:
    url('../img/world-map-dots.svg') center / cover no-repeat;
  filter: drop-shadow(0 0 18px rgba(255, 199, 78, 0.14));
  animation: lgf-drift 10s ease-in-out infinite;
}

.lgf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lgf-svg-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}

.lgf-svg-icon--small {
  width: 18px;
  height: 18px;
}

.lgf-svg-icon--gold {
  color: var(--lgf-gold-soft);
}

.lgf-svg-icon--muted {
  color: rgba(248, 246, 240, 0.92);
}

body.lgf-login-ready .lgf-card-panel {
  animation: lgf-enter-left 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.lgf-login-ready .lgf-card-panel:hover,
body.lgf-login-ready .lgf-card-panel:focus-within {
  border-color: rgba(255, 224, 155, 0.14);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 220, 150, 0.03) inset,
    0 0 18px rgba(255, 193, 70, 0.03);
}

body.lgf-login-ready .lgf-card-panel:hover .lgf-card-inner,
body.lgf-login-ready .lgf-card-panel:focus-within .lgf-card-inner {
  transform: translate3d(0, calc(var(--lgf-card-lift, 0px) * -1), 18px);
}

body.lgf-login-ready .lgf-hero {
  animation: lgf-enter-right 900ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

body.lgf-login-ready .lgf-brand-row {
  animation: lgf-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) 90ms both;
}

body.lgf-login-ready .lgf-login-copy {
  animation: lgf-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) 130ms both;
}

body.lgf-login-ready .lgf-form {
  animation: lgf-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 170ms both;
}

body.lgf-login-ready .lgf-footnote {
  animation: lgf-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) 230ms both;
}

body.lgf-login-ready .lgf-hero-logo {
  animation: lgf-float 6.6s ease-in-out infinite, lgf-pop 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

body.lgf-login-ready .lgf-hero-kicker,
body.lgf-login-ready .lgf-hero-title,
body.lgf-login-ready .lgf-hero-rule,
body.lgf-login-ready .lgf-hero-highlight,
body.lgf-login-ready .lgf-hero-subtitle,
body.lgf-login-ready .lgf-verse {
  animation: lgf-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.lgf-login-ready .lgf-hero-kicker { animation-delay: 140ms; }
body.lgf-login-ready .lgf-hero-title { animation-delay: 180ms; }
body.lgf-login-ready .lgf-hero-rule { animation-delay: 240ms; }
body.lgf-login-ready .lgf-hero-highlight { animation-delay: 300ms; }
body.lgf-login-ready .lgf-hero-subtitle { animation-delay: 360ms; }
body.lgf-login-ready .lgf-feature-grid { animation: lgf-rise 760ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both; }
body.lgf-login-ready .lgf-verse { animation-delay: 500ms; }

body.lgf-login-ready .lgf-feature:nth-child(1) { animation: lgf-card-pop 760ms cubic-bezier(0.22, 1, 0.36, 1) 470ms both; }
body.lgf-login-ready .lgf-feature:nth-child(2) { animation: lgf-card-pop 760ms cubic-bezier(0.22, 1, 0.36, 1) 560ms both; }
body.lgf-login-ready .lgf-feature:nth-child(3) { animation: lgf-card-pop 760ms cubic-bezier(0.22, 1, 0.36, 1) 650ms both; }
body.lgf-login-ready .lgf-feature:nth-child(4) { animation: lgf-card-pop 760ms cubic-bezier(0.22, 1, 0.36, 1) 740ms both; }
body.lgf-login-ready .lgf-auth-shell::before { animation: lgf-orbit 24s ease-in-out infinite; }
body.lgf-login-ready .lgf-auth-shell::after { animation: lgf-scanline 14s linear infinite; }

@keyframes lgf-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lgf-enter-left {
  from {
    opacity: 0;
    transform: translate3d(-20px, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes lgf-enter-right {
  from {
    opacity: 0;
    transform: translate3d(24px, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes lgf-pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lgf-card-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lgf-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes lgf-drift {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-8px) translateY(-5px);
  }
}

@keyframes lgf-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.88;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes lgf-shimmer {
  0% {
    transform: translateX(-120%);
  }

  45% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes lgf-input-sheen {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes lgf-button-sheen {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes lgf-shake {
  0%, 100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-3px);
  }

  40% {
    transform: translateX(3px);
  }

  60% {
    transform: translateX(-2px);
  }

  80% {
    transform: translateX(2px);
  }
}

@keyframes lgf-bg-drift {
  0%, 100% {
    opacity: 0.42;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.72;
    transform: translate3d(2.5%, -1.5%, 0) scale(1.04);
  }
}

@keyframes lgf-orbit {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  25% {
    transform: translate3d(1.8%, -1.2%, 0) scale(1.02);
  }

  50% {
    transform: translate3d(-1.2%, 1.6%, 0) scale(1.04);
  }

  75% {
    transform: translate3d(1%, 0.8%, 0) scale(1.01);
  }
}

@keyframes lgf-scanline {
  0% {
    transform: translateX(-8%);
  }

  100% {
    transform: translateX(8%);
  }
}

@keyframes lgf-comet-glide {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--comet-angle, 35deg));
  }

  8% {
    opacity: 1;
  }

  58% {
    opacity: 0.96;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--comet-dx, 340px), var(--comet-dy, -140px), 0) rotate(var(--comet-angle, 35deg));
  }
}

@keyframes lgf-hero-sweep {
  0% {
    transform: translate3d(-8%, 6%, 0);
    opacity: 0.35;
  }

  50% {
    transform: translate3d(8%, -4%, 0);
    opacity: 0.9;
  }

  100% {
    transform: translate3d(22%, -8%, 0);
    opacity: 0.42;
  }
}

@keyframes lgf-card-field {
  0%, 100% {
    opacity: 0.22;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.34;
    transform: translate3d(1.5%, -1%, 0) scale(1.03);
  }
}

@keyframes lgf-orb-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(14px, -18px, 0) scale(1.08);
  }
}

@keyframes lgf-star-twinkle {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes lgf-star-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(var(--star-drift-x, 18px), var(--star-drift-y, -28px), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.lgf-login-ready .lgf-card-panel,
  body.lgf-login-ready .lgf-hero,
  body.lgf-login-ready .lgf-brand-row,
  body.lgf-login-ready .lgf-login-copy,
  body.lgf-login-ready .lgf-form,
  body.lgf-login-ready .lgf-footnote,
  body.lgf-login-ready .lgf-hero-logo,
  body.lgf-login-ready .lgf-hero-kicker,
  body.lgf-login-ready .lgf-hero-title,
  body.lgf-login-ready .lgf-hero-rule,
  body.lgf-login-ready .lgf-hero-highlight,
  body.lgf-login-ready .lgf-hero-subtitle,
  body.lgf-login-ready .lgf-verse,
  body.lgf-login-ready .lgf-feature,
  .lgf-verse-mark,
  .lgf-verse-cross,
  .lgf-world-map,
  .lgf-hero-rule::after,
  .lgf-auth-shell::before,
  .lgf-auth-shell::after,
  .lgf-card-panel::after,
  .lgf-card-panel,
  .lgf-card-inner,
  .lgf-space-orb,
  .lgf-space-star,
  .lgf-space-comet,
  .lgf-input-wrap::after,
  .lgf-btn-primary::before,
  .lgf-hero::before,
  .lgf-hero::after,
  .lgf-hero-space-field::before {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 1439.98px) {
  .lgf-hero-copy {
    margin-left: 28px;
  }

  .lgf-feature-grid {
    gap: 12px;
  }
}

@media (max-width: 1199.98px) {
  body.lgf-login-body {
    overflow: auto;
  }

  .lgf-auth-stage {
    grid-template-columns: 1fr;
  }

  .lgf-panel {
    min-height: auto;
  }

  .lgf-hero {
    min-height: 920px;
     display: none !important;
  }

  .lgf-hero-logo {
    right: 22px;
  }

  .lgf-verse {
    flex-wrap: wrap;
  }

  .lgf-verse-divider {
    display: none;
  }

  .lgf-verse-footer {
    width: 100%;
  }

  .lgf-world-map {
    margin-left: 0;
    width: 100%;
    height: 88px;
  }
}

@media (min-width: 1200px) {
  body.lgf-login-body {
    overflow: hidden;
  }

  .lgf-auth-shell {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .lgf-auth-stage {
    height: 100%;
    min-height: 0;
  }

  .lgf-panel {
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 1200px) and (max-height: 860px) {
  .lgf-card-inner {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .lgf-brand-row {
    margin-bottom: 28px;
  }

  .lgf-login-copy {
    margin-bottom: 20px;
  }

  .lgf-form {
    margin-top: 16px;
  }

  .lgf-field {
    margin-bottom: 16px;
  }

  .lgf-input-wrap {
    height: 50px;
  }

  .lgf-btn {
    min-height: 48px;
  }

  .lgf-hero-inner {
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .lgf-hero-logo {
    width: 176px;
    top: 18px;
    right: 22px;
  }

  .lgf-hero-copy {
    margin-top: 118px;
  }

  .lgf-feature {
    min-height: 146px;
  }

  .lgf-feature-grid {
    margin-top: 35px;
  }

  .lgf-verse {
    margin-top: 15px;
  }
}

@media (max-width: 991.98px) {
  .lgf-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lgf-hero-copy {
    margin-top: 54px;
   
  }
}

@media (max-width: 767.98px) {
  .lgf-auth-shell {
    padding: 12px;
  }

  .lgf-auth-stage {
    gap: 12px;
  }

  .lgf-card-inner,
  .lgf-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lgf-brand-row {
    margin-bottom: 28px;
  }

  .lgf-login-copy {
    margin-bottom: 24px;
  }

  .lgf-hero {
    min-height: 840px;
    display: none !important;
  }

  .lgf-hero-logo {
    width: 172px;
    right: 18px;
    top: 24px;
  }

  .lgf-hero-copy {
    margin-left: 0;
    margin-top: 36px;
  }

  .lgf-hero-title {
    font-size: clamp(42px, 14vw, 58px);
  }

  .lgf-hero-highlight {
    font-size: clamp(24px, 8vw, 30px);
  }

  .lgf-feature-grid {
    grid-template-columns: 1fr;
    margin-top: 44px;
    padding-right: 0;
  }

  .lgf-verse {
    padding-left: 0;
    gap: 14px;
    flex-wrap: wrap;
  }

  .lgf-world-map {
    width: 210px;
    height: 70px;
  }

  .lgf-space-field {
    inset: -2%;
  }

  .lgf-space-orb {
    filter: blur(14px);
    opacity: 0.16;
  }

  .lgf-space-star {
    opacity: 0.48;
  }

  .lgf-space-comet {
    opacity: 0.56;
  }

  .lgf-card-panel::after {
    opacity: 0.14;
  }

  .lgf-hero-space-field::before {
    opacity: 0.34;
  }
}

@media (hover: hover) and (pointer: fine) {
  .lgf-card-panel:hover {
    transform: translate3d(0, -1px, 0) perspective(1800px) rotateX(var(--lgf-card-tilt-y)) rotateY(var(--lgf-card-tilt-x));
  }
}
