/* SND guest home: premium landing (irheb_landing_premium) scoped for layout */
.guest-topbar,
.guest-footer {
  display: none !important;
}

.guest-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

:root {
  --lp-bg: #041013;
  --lp-bg2: #071b20;
  --lp-card: #092329cc;
  --lp-line: #1bc7c1;
  --lp-gold: #d8a94a;
  --lp-gold2: #fff0b8;
  --lp-text: #f5f7f7;
  --lp-muted: #b8c8c9;
  --lp-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --lp-radius: 24px;

  /* Irheb brand identity (bridged for auth modal) */
  --ir-primary: #106971;      /* Deep teal (primary) */
  --ir-primary-2: #5cada4;    /* Soft teal (secondary) */
  --ir-primary-3: #0d565d;    /* Deeper teal for hover */
  --ir-accent: #e8b86d;       /* Warm gold accent */
  --ir-accent-2: #fbae20;     /* Vibrant gold for highlights */
}

.landing-premium,
.landing-premium * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.guest-shell {
  margin: 0;
  font-family: Tajawal, system-ui, sans-serif;
  background: radial-gradient(circle at 50% 0%, #103138 0%, #041013 45%, #010405 100%);
  color: var(--lp-text);
  overflow-x: hidden;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 20;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 5vw;
  background: rgba(3, 12, 15, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 169, 74, 0.24);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 13px;
}

.brand img {
  width: 128px;
  height: auto;
  display: block;
}

.brand__tagline {
  max-width: 220px;
  line-height: 1.35;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 30px);
  flex-wrap: wrap;
}

.nav a {
  color: #e8eeee;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  opacity: 0.82;
}

.nav a:hover {
  color: var(--lp-line);
  opacity: 1;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-login {
  color: var(--lp-muted);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.nav-login:hover {
  color: var(--lp-line);
}

.nav-user {
  color: #e8eeee;
  font-weight: 800;
  font-size: 14px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
  font-family: inherit;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lp-gold2), var(--lp-gold));
  color: #1c1403;
  box-shadow: 0 14px 40px rgba(216, 169, 74, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(216, 169, 74, 0.34);
}

.btn-outline {
  border-color: rgba(216, 169, 74, 0.65);
  color: #f3dc9f;
  background: rgba(255, 255, 255, 0.02);
}

.btn-soft {
  border-color: rgba(27, 199, 193, 0.38);
  color: #dffffd;
  background: rgba(27, 199, 193, 0.09);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 169, 74, 0.24);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(4, 16, 19, 0.25), rgba(4, 16, 19, 0.2) 44%, #041013 96%),
    url("../../images/landing/hero-education-future.png") center / cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 220, 130, 0.12), transparent 20%),
    radial-gradient(circle at 50% 12%, rgba(27, 199, 193, 0.18), transparent 32%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 920px;
  padding: 120px 20px 88px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-animate,
[data-reveal-seq] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-animate.is-visible,
[data-reveal-seq].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate,
  [data-reveal-seq],
  .reveal {
    transition: none !important;
  }

  .hero-animate,
  [data-reveal-seq],
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.story-section {
  border-top: 1px solid rgba(216, 169, 74, 0.12);
}

.story-section--core {
  background: linear-gradient(180deg, transparent, rgba(27, 199, 193, 0.04) 40%, transparent);
}

.story-section--peak {
  padding-top: clamp(64px, 12vw, 96px);
  padding-bottom: clamp(64px, 12vw, 96px);
}

.story-section--closing {
  padding-bottom: clamp(72px, 14vw, 110px);
}

.story-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.story-line {
  margin: 0 0 1.15rem;
  font-size: clamp(1.2rem, 2.75vw, 1.7rem);
  line-height: 1.72;
  color: #d6e5e5;
  font-weight: 700;
}

.story-line:last-child {
  margin-bottom: 0;
}

.story-line--accent {
  color: var(--lp-gold);
  font-weight: 800;
}

.story-line--closing-lead {
  font-size: clamp(1.35rem, 3.1vw, 1.95rem);
}

.story-line--peak {
  font-size: clamp(1.28rem, 3vw, 1.85rem);
  line-height: 1.55;
}

.story-line--brand {
  color: #8df3ed;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin-bottom: 1.35rem;
}

.story-line--verb {
  margin-bottom: 0.65rem;
  color: #e4f4f3;
  font-weight: 800;
}

.story-line--hush {
  color: var(--lp-muted);
  font-weight: 600;
}

.story-divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lp-line), transparent);
  margin: 1.65rem auto;
}

.story-divider--gold {
  background: linear-gradient(90deg, transparent, rgba(216, 169, 74, 0.55), transparent);
  margin-top: 1.85rem;
  margin-bottom: 1.85rem;
}

.hero-title {
  margin: 0 0 2.25rem;
  padding: 0;
}

.hero-title__main {
  display: block;
  font-size: clamp(38px, 6.5vw, 88px);
  font-weight: 900;
  line-height: 1.06;
  color: #f8fbfb;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-title__epic {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 800;
  color: var(--lp-gold);
  line-height: 1.38;
  letter-spacing: 0.01em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.25rem;
  justify-content: flex-start;
}

.cta .cta-row {
  justify-content: center;
}

@media (min-width: 761px) {
  .cta > div:first-child {
    text-align: start;
  }

  .cta .cta-row {
    justify-content: flex-start;
  }
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: #8df3ed;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.fracture {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24vw;
  z-index: 2;
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgba(216, 169, 74, 0.18));
}

.fracture-right {
  right: 0;
  background:
    linear-gradient(90deg, transparent, #071015 42%, #020405),
    radial-gradient(circle at 0 50%, rgba(216, 169, 74, 0.25), transparent 38%);
  clip-path: polygon(
    100% 0,
    48% 0,
    62% 8%,
    42% 18%,
    59% 29%,
    37% 40%,
    58% 55%,
    31% 70%,
    52% 83%,
    38% 100%,
    100% 100%
  );
}

.fracture-left {
  left: 0;
  background:
    linear-gradient(-90deg, transparent, #071015 42%, #020405),
    radial-gradient(circle at 100% 50%, rgba(216, 169, 74, 0.25), transparent 38%);
  clip-path: polygon(
    0 0,
    52% 0,
    38% 8%,
    58% 18%,
    41% 29%,
    63% 40%,
    42% 55%,
    69% 70%,
    48% 83%,
    62% 100%,
    0 100%
  );
}

.section {
  padding: 76px 5vw;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
  text-align: center;
}

.section-head h2,
.impact h2,
.why h2,
.cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.35;
}

.line {
  width: 88px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lp-line), transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: auto;
}

.feature-card {
  min-height: 210px;
  padding: 28px 20px;
  border: 1px solid rgba(27, 199, 193, 0.28);
  border-radius: var(--lp-radius);
  background: linear-gradient(180deg, rgba(10, 45, 51, 0.82), rgba(5, 20, 24, 0.72));
  box-shadow: var(--lp-shadow);
  text-align: center;
}

.feature-card h3 {
  margin: 18px 0 10px;
  color: #fff;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.7;
}

.icon {
  width: 58px;
  height: 58px;
  display: inline-block;
  border: 1px solid rgba(216, 169, 74, 0.45);
  border-radius: 18px;
  background:
    radial-gradient(circle, var(--lp-gold) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(216, 169, 74, 0.08), rgba(27, 199, 193, 0.12));
  position: relative;
}

.icon::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 3px solid var(--lp-line);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(27, 199, 193, 0.65);
}

.play::after {
  border-radius: 4px;
  clip-path: polygon(20% 0, 100% 50%, 20% 100%);
}

.target::after {
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px #092329, 0 0 18px rgba(27, 199, 193, 0.65);
}

.users::after {
  border-radius: 12px 12px 50% 50%;
}

.shield::after {
  border-radius: 16px 16px 24px 24px;
}

.path::after {
  border-radius: 6px;
  transform: rotate(45deg);
}

.impact {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 20px auto 0;
  border: 1px solid rgba(216, 169, 74, 0.24);
  border-radius: 28px;
  text-align: center;
  background: #07181c;
  box-shadow: var(--lp-shadow);
}

.impact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(4, 16, 19, 0.76), rgba(4, 16, 19, 0.92)),
    url("../../images/landing/stats-map-bg.png") center / cover no-repeat;
  opacity: 0.9;
}

.impact h2,
.stats {
  position: relative;
  z-index: 2;
}

.impact h2 {
  margin-bottom: 34px;
  padding: 0 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats div {
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stats strong {
  display: block;
  font-size: 38px;
  color: var(--lp-gold);
}

.stats span {
  color: #d8e6e6;
}

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  max-width: 1280px;
  margin: auto;
}

.visual-card {
  padding: 12px;
  border: 1px solid rgba(216, 169, 74, 0.35);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--lp-shadow);
}

.visual-card img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.why-content p,
.cta p {
  font-size: 20px;
  line-height: 1.9;
  color: #c7d8d8;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.mini-grid span {
  padding: 16px;
  border: 1px solid rgba(27, 199, 193, 0.26);
  border-radius: 18px;
  background: rgba(27, 199, 193, 0.07);
  font-weight: 800;
  color: #e9ffff;
}

.cta {
  max-width: 1280px;
  margin: 20px auto 70px;
  border: 1px solid rgba(216, 169, 74, 0.34);
  border-radius: 30px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(7, 35, 39, 0.88), rgba(4, 16, 19, 0.88));
  box-shadow: var(--lp-shadow);
  padding: 8px 0;
}

.cta > div:first-child {
  padding-inline: 8px;
}

.cta-card {
  display: grid;
  gap: 10px;
  padding-inline: 12px;
  color: #e9ffff;
}

.cta-card strong {
  color: var(--lp-gold2);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
}

.cta-card span {
  color: var(--lp-muted);
  font-size: 17px;
  line-height: 1.8;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  color: var(--lp-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  text-align: center;
}

.footer img {
  width: 92px;
  height: auto;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav {
    display: none;
  }

  .fracture {
    width: 18vw;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 14px 18px;
  }

  .btn-outline--nav {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .feature-grid,
  .stats,
  .why,
  .cta,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 18px;
  }

  .stats div {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .fracture {
    display: none;
  }

  .brand img {
    width: 106px;
  }

  .brand__tagline {
    display: none;
  }
}
/* ================================================================
   Authentication Modal — Irheb × Sand fusion
   Premium glass surface, brand-aligned, accessibility-first
   ================================================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(16, 105, 113, 0.35), transparent 60%),
    radial-gradient(700px 500px at 85% 90%, rgba(216, 169, 74, 0.18), transparent 60%),
    rgba(2, 8, 10, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-glass {
  background:
    linear-gradient(160deg, rgba(14, 50, 56, 0.92) 0%, rgba(8, 32, 36, 0.88) 100%);
  border: 1px solid rgba(92, 173, 164, 0.28);
  border-radius: 28px;
  width: 100%;
  max-width: 460px;
  padding: 44px 40px 36px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transform: translateY(30px) scale(0.98);
  opacity: 0;
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glow orbs behind glass (Irheb teal + gold) */
.auth-modal-glass::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(92, 173, 164, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.auth-modal-glass::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(closest-side, rgba(216, 169, 74, 0.22), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.auth-modal-glass > * { position: relative; z-index: 1; }

.auth-modal-overlay.is-active .auth-modal-glass {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
.auth-modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.2s ease,
              border-color 0.2s ease;
  z-index: 2;
}
.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(216, 169, 74, 0.45);
  transform: rotate(90deg);
}
.auth-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 169, 74, 0.4);
}

/* Brand mark above tabs */
.auth-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.auth-modal-header::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(135deg, var(--ir-primary) 0%, var(--ir-primary-2) 100%);
  box-shadow:
    0 10px 30px rgba(16, 105, 113, 0.45),
    inset 0 0 0 3px rgba(255, 255, 255, 0.12);
  position: relative;
  animation: auth-logo-pulse 2.6s ease-in-out infinite;
}
@keyframes auth-logo-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(16, 105, 113, 0.45), inset 0 0 0 3px rgba(255,255,255,.12); }
  50%      { box-shadow: 0 14px 38px rgba(92, 173, 164, 0.55), inset 0 0 0 3px rgba(255,255,255,.18); }
}

/* Tabs (pill segmented control) */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px;
  width: 100%;
  position: relative;
}

.auth-tab {
  flex: 1;
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--lp-muted);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: color 0.25s ease;
  font-family: inherit;
  position: relative;
  z-index: 1;
}
.auth-tab:hover { color: #fff; }

.auth-tab.active {
  color: #072428;
  background: linear-gradient(135deg, var(--lp-gold2) 0%, var(--ir-accent) 55%, var(--lp-gold) 100%);
  box-shadow:
    0 8px 22px rgba(216, 169, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.auth-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 169, 74, 0.45);
}

/* Forms */
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
  animation: authFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Intro */
.auth-intro {
  text-align: center;
  margin-bottom: 26px;
}
.auth-intro h3 {
  font-size: 22px;
  margin: 0 0 6px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #cfeae6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-intro p {
  color: var(--lp-muted);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
}

/* Form groups */
.auth-form .form-group {
  margin-bottom: 18px;
  position: relative;
}
.auth-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #e6efef;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.auth-form .form-group input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 18px 0 18px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease,
              background 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.2s ease;
  font-family: inherit;
}

/* Optional: input with leading icon — use .auth-field wrapper */
.auth-form .auth-field {
  position: relative;
}
.auth-form .auth-field input {
  padding-right: 46px;
}
.auth-form .auth-field .auth-field-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--ir-primary-2);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.auth-form .auth-field input:focus ~ .auth-field-icon,
.auth-form .auth-field:focus-within .auth-field-icon {
  color: var(--ir-accent);
  opacity: 1;
}

/* Optional: password field with toggle (add <button class="auth-field-toggle">) */
.auth-form .auth-field .auth-field-toggle {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--lp-muted);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-form .auth-field .auth-field-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ir-accent);
}
.auth-form .form-group input::placeholder {
  color: rgba(184, 200, 201, 0.55);
  font-size: 14px;
}
.auth-form .form-group input:hover {
  border-color: rgba(92, 173, 164, 0.35);
  background: rgba(255, 255, 255, 0.07);
}
.auth-form .form-group input:focus {
  border-color: var(--ir-primary-2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 4px rgba(92, 173, 164, 0.18),
    0 8px 22px rgba(16, 105, 113, 0.22);
  transform: translateY(-1px);
}
.auth-form .form-group input:focus::placeholder {
  color: rgba(184, 200, 201, 0.4);
}

/* Autofill — keep dark look */
.auth-form .form-group input:-webkit-autofill,
.auth-form .form-group input:-webkit-autofill:hover,
.auth-form .form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(14, 50, 56, 0.98) inset;
  caret-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
}

/* Primary auth submit button (overrides generic .btn-primary inside modal) */
.auth-form .btn.btn-primary,
.auth-form .btn-primary {
  background: linear-gradient(135deg, var(--ir-primary) 0%, var(--ir-primary-2) 100%);
  color: #fff;
  border: none;
  height: 54px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 26px rgba(16, 105, 113, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  font-family: inherit;
  isolation: isolate;
}
.auth-form .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.auth-form .btn-primary:hover::before { transform: translateX(-110%); }
.auth-form .btn-primary:hover {
  background: linear-gradient(135deg, var(--ir-primary-2) 0%, var(--ir-primary) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 16px 38px rgba(16, 105, 113, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.auth-form .btn-primary:active {
  transform: translateY(0);
}
.auth-form .btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(216, 169, 74, 0.55),
    0 10px 26px rgba(16, 105, 113, 0.38);
}

.btn-block { width: 100%; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  color: rgba(184, 200, 201, 0.72);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 173, 164, 0.28), transparent);
}

/* Social buttons */
.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-btn {
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
  font-family: inherit;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(92, 173, 164, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.social-btn:focus-visible {
  outline: none;
  border-color: var(--ir-accent);
  box-shadow: 0 0 0 3px rgba(216, 169, 74, 0.35);
}
.social-btn img {
  width: 20px;
  height: 20px;
}

/* Footer note */
.auth-note {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(184, 200, 201, 0.78);
  line-height: 1.75;
}
.auth-note--compact {
  margin: -4px 0 18px;
  text-align: left;
}
.auth-note a {
  color: var(--ir-accent);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed rgba(232, 184, 109, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-handoff-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(92, 173, 164, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(92, 173, 164, 0.12), rgba(216, 169, 74, 0.08)),
    rgba(255, 255, 255, 0.04);
  color: #eaf7f6;
  line-height: 1.7;
}

.auth-handoff-card strong {
  color: var(--lp-gold2);
  font-size: 15px;
}

.auth-handoff-card span {
  color: rgba(232, 238, 238, 0.82);
  font-size: 13.5px;
}
.auth-note a:hover {
  color: var(--lp-gold2);
  border-bottom-color: rgba(255, 240, 184, 0.6);
}

/* Topbar login link */
.nav-login {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: color 0.2s ease;
}
.nav-login:hover { color: var(--ir-accent); }

/* Responsive */
@media (max-width: 540px) {
  .auth-modal-glass {
    padding: 36px 22px 28px;
    border-radius: 22px;
    max-width: 100%;
  }
  .auth-modal-header {
    gap: 14px;
    margin-bottom: 22px;
  }
  .auth-modal-header::before {
    width: 56px;
    height: 56px;
  }
  .auth-intro h3 { font-size: 20px; }
  .auth-form .form-group input { height: 48px; }
  .auth-form .btn-primary { height: 50px; }
  .social-auth { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal-overlay,
  .auth-modal-glass,
  .auth-modal-close,
  .auth-form .btn-primary,
  .auth-form .btn-primary::before,
  .auth-modal-header::before {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Logo styles for guest topbar */
.guest-topbar__logo-img {
    height: 42px;
    width: auto;
    display: block;
}
