/* Title Module & Integrated In-Flow Real Login Gateway Stylesheet */

/* VISUALLY HIDE PROGRESS HUD & BADGES FOR CLEAN PRODUCTION UI */
.title-module-root .scene-hud,
.title-module-root .global-hud {
  display: none !important;
}

/* EXTENDED WRAPPER HEIGHT (450vh ensures solid pin distance before unpinning) */
.title-module-root .scene-wrapper {
  height: 450vh;
  position: relative;
  background: #060608;
}

/* STICKY CONTAINER (Position: sticky; top: 0; height: 100vh) */
.title-module-root .sticky-stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #060608;
  box-sizing: border-box;
  z-index: 20;
}

/* CLEAN MINIMAL DARK SPACER SECTION */
.title-module-root .dark-spacer-section {
  min-height: 60vh;
  background: #060608 !important;
  position: relative;
  z-index: 30;
}

/* SCENE 01: HERO PIN WITH HACKER SCRAMBLE TEXT */
.title-module-root .hero-tag {
  font-family: monospace;
  font-size: 13px;
  color: #007aff;
  margin-bottom: 24px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.title-module-root .hero-title {
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  will-change: transform, opacity;
  font-family: monospace, system-ui, sans-serif;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(0, 122, 255, 0.3);
}

.title-module-root .hero-title.decoded {
  color: #ffffff;
  text-shadow: 0 0 60px rgba(52, 199, 89, 0.5);
}

.title-module-root .hero-sub {
  font-family: monospace;
  font-size: 14px;
  color: #888;
  letter-spacing: 0.3em;
  margin-top: 24px;
  text-transform: uppercase;
}

/* SCENE 02: HORIZONTAL RAIL */
.title-module-root .rail-track {
  display: flex;
  gap: 40px;
  padding: 0 10vw;
  will-change: transform;
}

.title-module-root .brand-card {
  width: 68vw;
  max-width: 600px;
  height: 65vh;
  background: #0f1017;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-align: left;
}

.title-module-root .card-img-wrap {
  width: 100%;
  height: 55%;
  overflow: hidden;
  position: relative;
}

.title-module-root .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
  transition: transform 0.6s ease;
}

.title-module-root .brand-card:hover .card-img {
  transform: scale(1.05);
}

.title-module-root .card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.title-module-root .card-num {
  font-family: monospace;
  font-size: 12px;
  color: #007aff;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.title-module-root .card-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.title-module-root .card-desc {
  font-size: 15px;
  color: #888;
  line-height: 1.5;
  margin-top: 8px;
}

/* SCENE 03: MASK REVEAL */
.title-module-root .mask-bg-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  color: #161722;
  letter-spacing: -0.04em;
}

.title-module-root .mask-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #0c0e18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  clip-path: circle(0% at 50% 50%);
}

.title-module-root .mask-fg-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.title-module-root .mask-fg-tag {
  font-family: monospace;
  font-size: 14px;
  color: #34c759;
  margin-bottom: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* REAL IN-FLOW LOGIN GATEWAY SECTION AT BOTTOM OF CONTINUOUS SCROLL */
.title-module-root .login-gateway-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020203;
  position: relative;
  z-index: 40;
  padding: 40px 24px;
  box-sizing: border-box;
}

.title-module-root .auth-card {
  background: #0c0d14;
  border: 1px solid #1f2233;
  padding: 48px 36px;
  border-radius: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
  backdrop-filter: blur(16px);
  box-sizing: border-box;
}

.title-module-root .auth-tag {
  font-family: monospace;
  font-size: 12px;
  color: #007aff;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.title-module-root .auth-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.title-module-root .auth-desc {
  font-size: 14px;
  color: #8e8e93;
  margin-bottom: 28px;
  line-height: 1.5;
}

.title-module-root .auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.title-module-root .auth-input {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #282c42;
  background: #06070b;
  color: #ffffff;
  font-size: 15px;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.title-module-root .auth-input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
}

.title-module-root .auth-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: #007aff;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.title-module-root .auth-submit-btn:hover {
  background: #0062cc;
}

.title-module-root .auth-submit-btn:active {
  transform: scale(0.98);
}

.title-module-root .auth-error {
  color: #ff3b30;
  font-size: 13px;
  font-family: monospace;
  margin-top: 14px;
  display: none;
}

.title-module-root .login-version-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #7d8299;
  font-family: monospace;
  text-align: center;
  letter-spacing: 0.05em;
}

.title-module-root .login-version-footer .version-tag {
  color: #007aff;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
}
