:root {
  --ogx-bg: #000000;
  --ogx-button: #f33f46;
  --ogx-button-text: #ffffff;
  --ogx-speed: 28s;
  --ogx-logo-width: 430px;
  --ogx-flag-width: 92px;
  --ogx-brand-height: 46px;
  --ogx-brand-gap: 72px;
  --ogx-content-max: 1180px;
}

body.ogx-no-scroll {
  overflow: hidden;
}

.ogx-landing {
  min-height: 100vh;
  background: var(--ogx-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px) 24px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  font-family: var(--ogx-font-family, Arial, Helvetica, sans-serif);
}

.ogx-stage {
  width: min(100%, var(--ogx-content-max));
  min-height: 72vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
}

.ogx-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding-bottom: 6vh;
}

.ogx-logo-line {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.ogx-main-logo,
.ogx-main-logo figure,
.ogx-main-logo img {
  margin: 0;
}

.ogx-main-logo img {
  width: var(--ogx-logo-width);
  max-width: min(76vw, var(--ogx-logo-width));
  height: auto;
  display: block;
}

.ogx-flag,
.ogx-flag figure,
.ogx-flag img {
  margin: 0;
}

.ogx-flag img {
  width: var(--ogx-flag-width);
  max-width: 18vw;
  height: auto;
  display: block;
  transform: translateY(-18px);
}

.ogx-actions,
.ogx-actions .wp-block-buttons {
  display: flex;
  justify-content: center;
}

.ogx-login-button .wp-block-button__link,
.wp-block-button.ogx-login-button .wp-block-button__link {
  background: var(--ogx-button) !important;
  color: var(--ogx-button-text) !important;
  border: none;
  border-radius: 12px;
  min-width: 300px;
  padding: 17px 42px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  text-align: center;
  box-shadow: none;
  text-decoration: none;
}

.ogx-login-button .wp-block-button__link:hover,
.wp-block-button.ogx-login-button .wp-block-button__link:hover {
  filter: brightness(1.05);
}

.ogx-brands {
  width: 100%;
  align-self: end;
}

.ogx-brand-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  margin-bottom: 28px;
  white-space: nowrap;
}

.ogx-brand-label::before,
.ogx-brand-label::after {
  content: "";
  width: 46px;
  height: 1px;
  background: rgba(255,255,255,.55);
  display: block;
}

.ogx-carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2px 0 8px;
}

.ogx-carousel-viewport::before,
.ogx-carousel-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(120px, 14vw);
  z-index: 2;
  pointer-events: none;
}

.ogx-carousel-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--ogx-bg) 0%, rgba(0,0,0,0) 100%);
}

.ogx-carousel-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--ogx-bg) 0%, rgba(0,0,0,0) 100%);
}

.ogx-brand-track {
  width: max-content;
  display: flex !important;
  align-items: center;
  gap: var(--ogx-brand-gap);
  animation-name: ogx-marquee-ltr;
  animation-duration: var(--ogx-speed);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.ogx-direction-right .ogx-brand-track {
  animation-name: ogx-marquee-rtl;
}

.ogx-brand-track figure,
.ogx-brand-track .wp-block-image {
  margin: 0 !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ogx-brand-track img {
  width: auto;
  max-width: 180px;
  max-height: var(--ogx-brand-height);
  object-fit: contain;
  display: block;
}

.ogx-brand-track.ogx-white-logos img,
.ogx-white-logos .ogx-brand-track img {
  filter: brightness(0) invert(1);
}

.ogx-brand-track:hover {
  animation-play-state: paused;
}

.ogx-clone {
  pointer-events: none;
}

@keyframes ogx-marquee-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes ogx-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ogx-login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.76);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.ogx-login-modal.is-open {
  display: flex;
}

.ogx-login-card {
  width: min(100%, 420px);
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  position: relative;
  font-family: var(--ogx-font-family, Arial, Helvetica, sans-serif);
}

.ogx-login-card h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

.ogx-login-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.ogx-login-card label {
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.ogx-login-card input[type="text"],
.ogx-login-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: #000;
  color: #fff;
  box-sizing: border-box;
}

.ogx-login-card input[type="submit"] {
  width: 100%;
  background: var(--ogx-button);
  color: var(--ogx-button-text);
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
}

.ogx-login-card .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Editor support */
.block-editor-block-list__layout .ogx-landing {
  min-height: 620px;
  border-radius: 8px;
}
.block-editor-block-list__layout .ogx-brand-track {
  animation-play-state: paused;
}
.block-editor-block-list__layout .ogx-carousel-viewport {
  overflow-x: auto;
}
.block-editor-block-list__layout .ogx-carousel-viewport::before,
.block-editor-block-list__layout .ogx-carousel-viewport::after {
  display: none;
}

@media (max-width: 700px) {
  .ogx-stage {
    min-height: 78vh;
  }
  .ogx-hero {
    gap: 34px;
    padding-bottom: 4vh;
  }
  .ogx-logo-line {
    gap: 4px;
  }
  .ogx-main-logo img {
    max-width: 72vw;
  }
  .ogx-flag img {
    width: 62px;
    transform: translateY(-10px);
  }
  .ogx-login-button .wp-block-button__link,
  .wp-block-button.ogx-login-button .wp-block-button__link {
    min-width: 230px;
    font-size: 15px;
  }
  .ogx-brand-track {
    gap: 42px;
  }
  .ogx-brand-track img {
    max-width: 132px;
    max-height: 38px;
  }
}
