.fortex-product-logo {
  object-fit: contain;
}

#fortex-auth-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

#fortex-auth-logo img {
  display: block;
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.fortex-auth-page,
.fortex-auth-page body,
.fortex-auth-page #root {
  min-height: 100%;
}

.fortex-auth-page body {
  background: #f4f1ea;
}

.fortex-auth-page #root > div {
  background: #f4f1ea !important;
}

.fortex-auth-page #root > div > .mt-6.h-10 {
  display: none;
}

.fortex-auth-page main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(25rem, 0.88fr);
  align-items: stretch !important;
  gap: 0;
  min-height: calc(100vh - 7rem);
  margin: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(37, 32, 24, 0.1);
  border-radius: 1.5rem;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(48, 38, 20, 0.08);
}

.fortex-auth-page main > div:not(#fortex-landing-story) {
  box-sizing: border-box;
  align-self: center;
  width: min(100%, 29rem) !important;
  max-width: none !important;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem) !important;
  background: transparent !important;
}

.fortex-auth-page main > div:not(#fortex-landing-story) > h1 {
  margin-bottom: 0.5rem !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  letter-spacing: -0.04em;
}

.fortex-auth-page #fortex-auth-logo {
  margin-bottom: 1rem;
}

.fortex-auth-page #fortex-auth-logo img {
  width: 3.75rem;
  height: 3.75rem;
}

#fortex-landing-story {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(216, 197, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #17150f 0%, #232016 58%, #17150f 100%);
  color: #f8f4ea;
}

#fortex-landing-story::after {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(245, 165, 36, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(245, 165, 36, 0.025), 0 0 0 8rem rgba(245, 165, 36, 0.02);
  content: '';
  pointer-events: none;
}

.fortex-landing-story__nav,
.fortex-landing-story__brand,
.fortex-landing-story__status,
.fortex-landing-story__benefits li,
.fortex-landing-story__terminal-bar,
.fortex-landing-story__terminal-body > div {
  display: flex;
  align-items: center;
}

.fortex-landing-story__nav {
  position: relative;
  z-index: 1;
  justify-content: space-between;
}

.fortex-landing-story__brand {
  gap: 0.65rem;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.fortex-landing-story__brand img {
  width: 2rem;
  height: 2rem;
}

.fortex-landing-story__status {
  gap: 0.45rem;
  color: rgba(248, 244, 234, 0.66);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fortex-landing-story__status > span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #f5a524;
  box-shadow: 0 0 0 0.25rem rgba(245, 165, 36, 0.12);
}

.fortex-landing-story__content {
  position: relative;
  z-index: 1;
  width: min(100%, 43rem);
  margin: clamp(3rem, 8vh, 6.5rem) auto;
}

.fortex-landing-story__eyebrow {
  margin: 0 0 1rem;
  color: #f5a524;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fortex-landing-story__content h1 {
  max-width: 10ch;
  margin: 0;
  color: #fffdf8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.1rem, 6vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.fortex-landing-story__content h1 em {
  color: #d8c5ff;
  font-weight: 400;
}

.fortex-landing-story__lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: rgba(248, 244, 234, 0.7);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.fortex-landing-story__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.fortex-landing-story__benefits li {
  align-items: flex-start;
  gap: 0.7rem;
}

.fortex-landing-story__benefits li > span {
  padding-top: 0.1rem;
  color: #f5a524;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

.fortex-landing-story__benefits strong,
.fortex-landing-story__benefits small {
  display: block;
}

.fortex-landing-story__benefits strong {
  margin-bottom: 0.35rem;
  font-size: 0.83rem;
}

.fortex-landing-story__benefits small {
  color: rgba(248, 244, 234, 0.52);
  font-size: 0.72rem;
  line-height: 1.45;
}

.fortex-landing-story__terminal {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.fortex-landing-story__terminal-bar {
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fortex-landing-story__terminal-bar > span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.fortex-landing-story__terminal-bar code {
  margin-left: auto;
  color: rgba(248, 244, 234, 0.4);
  font-size: 0.63rem;
}

.fortex-landing-story__terminal-body {
  padding: 1rem 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.6;
}

.fortex-landing-story__terminal-body p {
  margin: 0 0 0.65rem;
  color: rgba(248, 244, 234, 0.74);
}

.fortex-landing-story__terminal-body b {
  display: inline-block;
  width: 2.5rem;
  color: #d8c5ff;
  font-weight: 650;
}

.fortex-landing-story__terminal-body > div {
  gap: 0.28rem;
  padding-left: 2.5rem;
  color: rgba(248, 244, 234, 0.38);
}

.fortex-landing-story__terminal-body > div span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #f5a524;
  animation: fortex-pulse 1.4s infinite ease-in-out;
}

.fortex-landing-story__terminal-body > div span:nth-child(2) { animation-delay: 0.16s; }
.fortex-landing-story__terminal-body > div span:nth-child(3) { animation-delay: 0.32s; }
.fortex-landing-story__terminal-body i { margin-left: 0.35rem; font-style: normal; }

.fortex-landing-story__footnote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(248, 244, 234, 0.36);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes fortex-pulse {
  0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-color-scheme: dark) {
  .fortex-auth-page body,
  .fortex-auth-page #root > div { background: #0f0f0d !important; }
  .fortex-auth-page main { border-color: rgba(255, 255, 255, 0.08); background: #171714; }
}

@media (prefers-reduced-motion: reduce) {
  .fortex-landing-story__terminal-body > div span { animation: none; opacity: 0.7; }
}

@media (max-width: 960px) {
  .fortex-auth-page main { grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.85fr); }
  .fortex-landing-story__benefits { grid-template-columns: 1fr; }
  .fortex-landing-story__benefits small { display: none; }
}

@media (max-width: 767px) {
  .fortex-auth-page main {
    display: flex !important;
    min-height: calc(100vh - 5.5rem);
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  #fortex-landing-story { display: none; }
  .fortex-auth-page main > div:not(#fortex-landing-story) { padding: 2rem 1.25rem !important; }
}
