/* Landing Page & Authentication Styles */

:root {
  --border: var(--line, #E2E8F0);
  --border-strong: var(--line-strong, #CBD5E1);
  --text-1: var(--ink, #1E293B);
  --text-2: var(--ink-2, #334155);
  --text-3: var(--muted, #64748B);
  --emerald: var(--green, #10B981);
  --emerald-dark: var(--green-d, #059669);
}

/* 1. Public Navbar (index.html & login.html) */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
}

.lp-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.lp-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-bottom: 4px solid #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.lp-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-brand-sub {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--emerald-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-2);
  transition: background 0.15s ease, color 0.15s ease;
}

.lp-link:hover {
  background: var(--bg-soft);
  color: var(--text-1);
}

.lp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 2. Hero Section & Interactive Mountain Checkpoint Card */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 64px;
  background:
    radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.10), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(14, 165, 233, 0.10), transparent 40%),
    radial-gradient(circle at 60% 85%, rgba(245, 158, 11, 0.08), transparent 36%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F6F9 100%);
  border-bottom: 2px solid var(--border);
}

.lp-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 2px solid #A7F3D0;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.lp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  font-weight: 900;
  color: var(--text-1);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.lp-hero-title .hl-emerald {
  color: #059669;
  background: linear-gradient(180deg, transparent 62%, #D1FAE5 62%);
  padding: 0 4px;
}

.lp-hero-title .hl-sky {
  color: #0284C7;
  background: linear-gradient(180deg, transparent 62%, #E0F2FE 62%);
  padding: 0 4px;
}

.lp-hero-desc {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 26px;
  max-width: 600px;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.lp-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 2px dashed var(--border);
}

.lp-trust-item {
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  border-radius: 14px;
  padding: 12px 14px;
}

.lp-trust-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-1);
  line-height: 1.1;
}

.lp-trust-lbl {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-3);
  margin-top: 3px;
}

/* Interactive Hero Preview Card */
.lp-preview-card {
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  border-bottom: 6px solid #CBD5E1;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.12);
  position: relative;
}

.lp-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.lp-mini-trail {
  background: linear-gradient(180deg, #E0F2FE 0%, #ECFDF5 55%, #FEF3C7 100%);
  border: 2px solid #BAE6FD;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.lp-mini-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.lp-mini-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 0.14s ease;
  user-select: none;
}

.lp-mini-node:hover {
  transform: translateY(-3px);
}

.lp-mini-node.done {
  background: #10B981;
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  border-bottom: 5px solid #047857;
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.28);
}

.lp-mini-node.current {
  background: #F59E0B;
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  border-bottom: 5px solid #B45309;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.35);
  transform: scale(1.08);
}

.lp-mini-node.locked {
  background: #E2E8F0;
  color: #64748B;
  border: 3px solid #FFFFFF;
  border-bottom: 5px solid #94A3B8;
}

.lp-mini-quiz {
  background: #F8FAFC;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.lp-mini-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-top: 8px;
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  border-bottom-width: 4px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.12s ease;
}

.lp-mini-opt:hover {
  border-color: var(--sky);
  background: #F0F9FF;
}

.lp-mini-opt.correct {
  background: #ECFDF5;
  border-color: #10B981;
  border-bottom-color: #059669;
  color: #065F46;
}

.lp-mini-opt.wrong {
  background: #FEF2F2;
  border-color: #EF4444;
  border-bottom-color: #B91C1C;
  color: #991B1B;
}

.lp-mini-key {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* 3. Section Containers, Bento Grid & Curriculum Tabs */
.lp-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px;
}

.lp-sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.lp-sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.lp-sec-sub {
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.6;
}

.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.lp-bento-card {
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-bottom: 5px solid var(--border-strong);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.lp-bento-card:hover {
  transform: translateY(-3px);
}

.lp-col-7 { grid-column: span 7; }
.lp-col-5 { grid-column: span 5; }
.lp-col-6 { grid-column: span 6; }
.lp-col-4 { grid-column: span 4; }

.lp-grade-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.lp-grade-tab {
  padding: 12px 22px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  border-bottom-width: 4px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.12s ease;
}

.lp-grade-tab.active-10 {
  background: #E0F2FE;
  border-color: #0EA5E9;
  border-bottom-color: #0284C7;
  color: #0369A1;
}

.lp-grade-tab.active-11 {
  background: #EEF2FF;
  border-color: #6366F1;
  border-bottom-color: #4F46E5;
  color: #4338CA;
}

.lp-grade-tab.active-12 {
  background: #ECFDF5;
  border-color: #10B981;
  border-bottom-color: #059669;
  color: #047857;
}

.lp-curr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.lp-curr-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  padding: 20px;
  overflow: hidden;
  box-sizing: border-box;
  background: #FFFFFF;
}

.lp-curr-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lp-curr-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 10px;
}

.lp-curr-pos-badge,
.lp-curr-vid-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-curr-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px dashed var(--border);
  width: 100%;
}

.lp-curr-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
}

.lp-curr-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-curr-meta-right {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
  color: var(--gold-d, #D97706);
}

.lp-curr-btn {
  justify-content: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .lp-curr-grid[data-count="10"] > .lp-curr-card:last-child {
    grid-column: 2;
  }
}

@media (max-width: 1023px) {
  .lp-curr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 639px) {
  .lp-curr-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.lp-faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-faq-item {
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  border-radius: 16px;
  overflow: hidden;
}

.lp-faq-q {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-1);
  cursor: pointer;
}

.lp-faq-a {
  padding: 0 22px 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-2);
  display: none;
}

.lp-faq-item.open .lp-faq-a {
  display: block;
}

.lp-footer {
  background: #FFFFFF;
  border-top: 2px solid var(--border);
  padding: 40px 24px;
  margin-top: 40px;
}

.lp-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* 4. Authentication Split Page (login.html) & 60 FPS Motion Layer */
.auth-shell {
  min-height: calc(100vh - 76px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 34px;
  align-items: start;
}

.auth-showcase {
  background: linear-gradient(160deg, #ECFDF5 0%, #E0F2FE 55%, #EEF2FF 100%);
  border: 2px solid #A7F3D0;
  border-bottom: 6px solid #10B981;
  border-radius: 24px;
  padding: 30px;
  position: sticky;
  top: 96px;
}

.auth-showcase-title {
  font-size: clamp(1.65rem, 2.3vw, 1.98rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

/* Hover Lift & Icon Bounce on 3 Left Feature Cards */
.auth-feature-card {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.2s ease;
  will-change: transform;
}

.auth-feature-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.16);
  border-color: #94A3B8;
}

.auth-feature-card .ico-box {
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-feature-card:hover .ico-box {
  transform: scale(1.12) rotate(-5deg) translateY(-1px);
}

/* Mini Mountain Summit Illustration (Left Card Bottom) */
.auth-mountain-scene {
  position: relative;
  border-radius: 18px;
  border: 2px solid #6EE7B7;
  border-bottom: 4px solid #10B981;
  background: #ECFDF5;
  overflow: hidden;
  box-shadow: 0 10px 24px -10px rgba(5, 150, 105, 0.28);
}

.auth-mountain-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Continuous SVG Motion: Clouds, Flowing Dash Trail, Pulsing Checkpoints, Waving Flag */
.auth-cloud {
  will-change: transform;
}

.auth-cloud-1 {
  animation: cloudDrift 34s linear infinite;
  animation-delay: -9s;
}

.auth-cloud-2 {
  animation: cloudDrift 44s linear infinite;
  animation-delay: -26s;
}

.auth-cloud-3 {
  animation: cloudDrift 38s linear infinite;
  animation-delay: -17s;
}

@keyframes cloudDrift {
  0% {
    transform: translateX(-85px);
  }
  100% {
    transform: translateX(550px);
  }
}

.auth-trail-flow {
  animation: dashFlow 1.15s linear infinite;
}

@keyframes dashFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -26;
  }
}

.auth-pos-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseRing 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.auth-pos-pulse.pulse-2 {
  animation-delay: 0.75s;
}

.auth-pos-pulse.pulse-summit {
  animation-delay: 1.45s;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  75%, 100% {
    transform: scale(2.15);
    opacity: 0;
  }
}

.auth-summit-flag {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  animation: waveFlag 2.4s ease-in-out infinite;
}

@keyframes waveFlag {
  0%, 100% {
    transform: rotate(0deg) skewY(0deg) scaleX(1);
  }
  25% {
    transform: rotate(-4deg) skewY(5deg) scaleX(0.95);
  }
  50% {
    transform: rotate(2deg) skewY(-3deg) scaleX(1.03);
  }
  75% {
    transform: rotate(-2deg) skewY(4deg) scaleX(0.97);
  }
}

/* Floating Badges (Async 3s Up & Down Bob) */
.auth-float-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 900;
  color: #0F172A;
  border: 1.5px solid #CBD5E1;
  border-bottom-width: 3px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  will-change: transform;
  animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.auth-float-badge.badge-streak {
  top: 12px;
  left: 12px;
  border-color: #FDBA74;
  border-bottom-color: #F97316;
  color: #9A3412;
  background: #FFF7ED;
  animation-delay: 0s;
}

.auth-float-badge.badge-league {
  bottom: 12px;
  right: 12px;
  border-color: #6EE7B7;
  border-bottom-color: #10B981;
  color: #065F46;
  background: #ECFDF5;
  animation-delay: -1.5s;
}

/* Right Auth Card */
.auth-card {
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  border-bottom: 6px solid #CBD5E1;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px -15px rgba(15, 23, 42, 0.1);
  overflow: visible;
  will-change: transform, opacity;
}

.auth-card.is-departing {
  animation: authCardDepart 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes authCardDepart {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  30% {
    opacity: 1;
    transform: scale(0.988) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.94) translateY(-8px);
  }
}

/* Sliding Tab Pill */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-soft);
  padding: 6px;
  border-radius: 14px;
  border: 2px solid var(--border);
  margin-bottom: 20px;
}

.auth-tab-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 10px);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.09);
  border-bottom: 3px solid var(--emerald);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.auth-tabs.no-anim .auth-tab-indicator {
  transition: none !important;
}

.auth-tabs.is-register .auth-tab-indicator {
  transform: translateX(calc(100% + 8px));
  border-bottom-color: var(--indigo, #6366F1);
}

.auth-tab {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.22s ease, transform 0.18s ease;
}

.auth-tab:hover:not(.active) {
  color: var(--text-1);
}

.auth-tab.active {
  color: var(--emerald-dark);
}

.auth-tabs.is-register .auth-tab.active {
  color: var(--indigo-d, #4F46E5);
}

/* Form Switch Transition */
@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form-panel.is-entering {
  animation: formSlideIn 0.28s ease-out;
}

/* Welcome Header & Waving Hand in Login Form */
.auth-welcome-head {
  margin-bottom: 18px;
}

.auth-welcome-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-wave-hand {
  display: inline-block;
  transform-origin: 70% 75%;
}

.auth-wave-hand.is-waving,
.auth-welcome-title:hover .auth-wave-hand {
  animation: waveHand 1.05s ease-in-out 2;
}

@keyframes waveHand {
  0%, 100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(18deg);
  }
  30% {
    transform: rotate(-10deg);
  }
  45% {
    transform: rotate(15deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(9deg);
  }
}

.auth-welcome-sub {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 4px;
}

/* Input Focus Glow, Left Icon & Password Eye Button */
.auth-card .input {
  transition: border-color 0.2s ease,
              background-color 0.2s ease,
              box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-card .input:focus {
  border-color: var(--emerald);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16),
              0 4px 12px -2px rgba(16, 185, 129, 0.14);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-input-wrap:focus-within .auth-input-ico {
  color: #047857;
  transform: translateY(-50%) scale(1.1);
}

/* Searchable Autocomplete Sekolah SMA / MA Indonesia (Clutter-Free) */
.school-autocomplete-wrap {
  position: relative;
  width: 100%;
}

.school-autocomplete-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.school-input-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.school-autocomplete-wrap:focus-within .school-input-ico,
.school-autocomplete-wrap.is-open .school-input-ico,
.school-autocomplete-wrap.has-value .school-input-ico {
  color: #059669;
  transform: translateY(-50%) scale(1.08);
}

.school-autocomplete-input-box > input.input {
  padding-left: 40px !important;
  padding-right: 36px !important;
}

.school-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: none;
  background: #E2E8F0;
  color: #475569;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.school-clear-btn:hover {
  background: #CBD5E1;
  color: #0F172A;
  transform: translateY(-50%) scale(1.08);
}

.school-autocomplete-wrap.has-value .school-clear-btn {
  display: inline-flex;
}

.school-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 30;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  pointer-events: auto;
  transform-origin: top center;
}

.school-autocomplete-dropdown.is-visible {
  display: flex;
  pointer-events: auto;
  animation: fadeScaleIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.school-autocomplete-dropdown.is-closing {
  display: flex;
  pointer-events: none;
  animation: fadeScaleOut 0.16s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeScaleOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-5px) scale(0.96);
  }
}

.school-autocomplete-hint {
  flex-shrink: 0;
  padding: 10px 14px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #F1F5F9;
  background: #FAFCFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-dropdown-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 240px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.school-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.school-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.school-dropdown-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 99px;
  border: none;
}

.school-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.school-option-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.school-option-item + .school-option-item {
  margin-top: 2px;
}

.school-option-item:hover,
.school-option-item.is-active {
  background: rgba(16, 185, 129, 0.08);
}

.school-option-item:active {
  transform: scale(0.99);
}

.school-option-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease;
}

.school-option-item:hover .school-option-icon,
.school-option-item.is-active .school-option-icon {
  color: #059669;
  transform: scale(1.08);
}

.school-option-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.school-option-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-option-name mark {
  background: #FEF08A;
  color: #0F172A;
  padding: 0 2px;
  border-radius: 4px;
  font-weight: 900;
}

.school-option-location {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-option-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.school-option-item:hover .school-option-badge,
.school-option-item.is-active .school-option-badge {
  background: #D1FAE5;
  color: #047857;
}

.school-autocomplete-empty {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  text-align: center;
}

.school-add-option {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  border-top: 1.5px dashed #E2E8F0;
  background: #F8FAFC;
  color: #0F172A;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease;
}

.school-add-option:hover,
.school-add-option.is-active {
  background: rgba(14, 165, 233, 0.1);
  color: #0369A1;
}

.auth-input-with-ico {
  padding-left: 40px !important;
}

.auth-input-with-eye {
  padding-right: 44px !important;
}

.auth-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-eye-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-50%) scale(1.08);
}

.auth-eye-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.auth-eye-btn.is-showing {
  background: #ECFDF5;
  border-color: #6EE7B7;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-2);
  margin-bottom: 6px;
}

/* 3 Visual Grade Cards (Kelas 10 / 11 / 12) with Spring Physics */
.auth-grade-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-grade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 12px 11px;
  border-radius: 15px;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-bottom: 4px solid #CBD5E1;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.25s ease;
}

.auth-grade-card:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
}

.auth-grade-card:active {
  transform: translateY(1px) scale(0.97);
}

.auth-grade-card.is-popping {
  animation: cardPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPop {
  0% {
    transform: scale(0.94);
  }
  55% {
    transform: scale(1.045) translateY(-2px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.auth-grade-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.18s ease,
              transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s ease;
}

.auth-grade-card.active .auth-grade-check {
  opacity: 1;
  transform: scale(1);
}

.auth-grade-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-grade-card:hover .auth-grade-ico,
.auth-grade-card.active .auth-grade-ico {
  transform: scale(1.08);
}

.auth-grade-ico.sky {
  background: #E0F2FE;
  color: #0284C7;
}

.auth-grade-ico.violet {
  background: #EDE9FE;
  color: #6D28D9;
}

.auth-grade-ico.emerald {
  background: #D1FAE5;
  color: #047857;
}

.auth-grade-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text-1);
  line-height: 1.15;
}

.auth-grade-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  line-height: 1.2;
}

.auth-grade-card.grade-10.active {
  background: #F0F9FF;
  border-color: #0EA5E9;
  border-bottom-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16),
              0 10px 22px -6px rgba(14, 165, 233, 0.38);
}
.auth-grade-card.grade-10.active .auth-grade-check {
  background: #0EA5E9;
}

.auth-grade-card.grade-11.active {
  background: #F5F3FF;
  border-color: #7C3AED;
  border-bottom-color: #5B21B6;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16),
              0 10px 22px -6px rgba(124, 58, 237, 0.38);
}
.auth-grade-card.grade-11.active .auth-grade-check {
  background: #7C3AED;
}

.auth-grade-card.grade-12.active {
  background: #ECFDF5;
  border-color: #10B981;
  border-bottom-color: #047857;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16),
              0 10px 22px -6px rgba(16, 185, 129, 0.38);
}
.auth-grade-card.grade-12.active .auth-grade-check {
  background: #10B981;
}

/* 4 Daily Target Pill Buttons (2x2 balanced grid) */
.auth-target-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-target-pill {
  padding: 9px 10px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-bottom: 4px solid #CBD5E1;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.22s ease,
              border-color 0.22s ease,
              color 0.22s ease,
              box-shadow 0.25s ease,
              border-bottom-width 0.1s ease;
}

.auth-target-pill:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  border-color: #94A3B8;
}

.auth-target-pill:active {
  transform: translateY(2px) scale(0.96);
  border-bottom-width: 2px;
}

.auth-target-pill.is-popping {
  animation: pillBounce 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pillBounce {
  0% {
    transform: scale(0.94);
  }
  55% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.auth-target-pill.active {
  background: #EEF2FF;
  border-color: #6366F1;
  border-bottom-color: #4338CA;
  color: #3730A3;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14),
              0 8px 16px -6px rgba(99, 102, 241, 0.35);
}

/* Gradient Avatar Circles Row with Pop-Bounce */
.avatar-circle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 2px;
}

.avatar-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease;
}

.avatar-circle-btn:hover {
  transform: translateY(-2px) scale(1.06);
}

.avatar-circle-btn.grad-emerald {
  background: linear-gradient(135deg, #10B981, #047857);
}
.avatar-circle-btn.grad-sky {
  background: linear-gradient(135deg, #0EA5E9, #0369A1);
}
.avatar-circle-btn.grad-indigo {
  background: linear-gradient(135deg, #6366F1, #4338CA);
}
.avatar-circle-btn.grad-amber {
  background: linear-gradient(135deg, #F59E0B, #B45309);
}
.avatar-circle-btn.grad-rose {
  background: linear-gradient(135deg, #EC4899, #BE185D);
}

.avatar-circle-btn.active {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px #1E293B, 0 8px 16px rgba(15, 23, 42, 0.22);
}

.avatar-circle-btn.is-bouncing {
  animation: popBounce 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popBounce {
  0% {
    transform: scale(0.94);
  }
  45% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Primary 3D Buttons Shimmer & Tactile 3px Press */
.auth-btn-shimmer {
  position: relative;
  overflow: hidden;
  border-bottom-width: 5px;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-bottom-width 0.1s ease,
              margin-bottom 0.1s ease,
              filter 0.15s ease,
              box-shadow 0.2s ease;
}

.auth-btn-shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.36) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  animation: buttonShimmer 3.5s ease-in-out infinite;
}

@keyframes buttonShimmer {
  0% {
    left: -75%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  34% {
    left: 135%;
    opacity: 1;
  }
  38%, 100% {
    left: 135%;
    opacity: 0;
  }
}

.auth-btn-shimmer:disabled::after,
.auth-btn-shimmer.auth-btn-launching::after {
  display: none;
}

.auth-btn-shimmer:active:not(:disabled):not(.auth-btn-launching),
.auth-demo-btn:active:not(:disabled):not(.auth-btn-launching) {
  transform: translateY(3px);
  border-bottom-width: 2px;
  margin-bottom: 0;
}

.auth-btn-launching {
  pointer-events: none;
  filter: saturate(1.06);
}

.auth-btn-spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  display: inline-block;
  flex-shrink: 0;
  animation: authSpin 0.65s linear infinite;
}

.auth-demo-btn .auth-btn-spinner {
  border-color: rgba(16, 185, 129, 0.25);
  border-top-color: #059669;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Single Demo Divider & Button at Bottom of Right Card */
.auth-demo-footer {
  margin-top: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

.auth-demo-btn {
  justify-content: center;
  font-weight: 800;
  color: #0F172A;
  background: #F8FAFC;
  border-color: #CBD5E1;
  border-bottom-width: 5px;
  border-bottom-color: #94A3B8;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-bottom-width 0.1s ease,
              margin-bottom 0.1s ease,
              background-color 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease;
}

.auth-demo-btn:hover:not(:disabled):not(.auth-btn-launching) {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  border-bottom-color: #059669 !important;
  color: #065F46 !important;
}

.lp-back-short {
  display: none;
}

.auth-mobile-hero {
  display: none;
}

.auth-shell > *,
.auth-form-grid > * {
  min-width: 0;
}

@media (max-width: 1120px) and (min-width: 961px) {
  .auth-shell {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px 20px 48px;
  }
  .auth-showcase {
    padding: 24px;
    top: 86px;
  }
  .auth-card {
    padding: 24px;
  }
}

@media (max-width: 960px) {
  .lp-hero-inner,
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .auth-shell {
    padding: 20px 16px 44px;
  }
  .auth-mobile-hero {
    display: block;
    order: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ECFDF5 0%, #E0F2FE 100%);
    border: 2px solid #A7F3D0;
    border-bottom: 4px solid #10B981;
    border-radius: 18px;
    padding: 12px 14px;
  }
  .auth-mobile-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .auth-card {
    order: 2;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .auth-showcase {
    order: 3;
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 18px;
  }
  .auth-showcase-intro {
    display: none;
  }
  .auth-feature-list {
    margin-top: 0 !important;
  }
  .lp-col-7,
  .lp-col-5,
  .lp-col-6,
  .lp-col-4 {
    grid-column: span 12;
  }
  .lp-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .hide-xs {
    display: none !important;
  }
  html, body, .auth-shell, .lp-hero, .lp-section {
    overflow-x: clip;
    max-width: 100%;
  }
  .lp-nav-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .lp-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .lp-brand-name {
    font-size: 1.12rem;
  }
  .lp-brand-sub {
    display: none;
  }
  .lp-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .lp-actions .btn-sm {
    padding: 6px 11px;
    min-height: 38px;
    font-size: 12.5px;
  }
  .lp-hero {
    padding: 28px 14px 36px;
  }
  .lp-hero-title {
    font-size: 1.75rem;
  }
  .lp-section {
    padding: 36px 14px;
  }
  .lp-trust-strip {
    grid-template-columns: 1fr;
  }
  .lp-mini-node {
    width: 44px;
    height: 44px;
    font-size: 0.7rem;
  }
  .auth-shell {
    padding: 16px 12px 36px;
    gap: 14px;
  }
  .auth-card, .auth-showcase-card {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .auth-tabs {
    gap: 6px;
    padding: 5px;
    margin-bottom: 16px;
  }
  .auth-tab {
    padding: 10px 8px;
    min-height: 44px;
    font-size: 0.85rem;
    line-height: 1.2;
  }
  .auth-form-grid {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .auth-card .input,
  .school-autocomplete-input-box > input.input {
    font-size: 16px !important;
    min-height: 46px;
  }
  .auth-input-with-eye {
    padding-right: 46px !important;
  }
  .auth-eye-btn {
    width: 36px;
    height: 36px;
    right: 6px;
  }
  .school-autocomplete-wrap,
  .school-autocomplete-dropdown {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }
  .school-dropdown-list {
    max-height: 220px !important;
    -webkit-overflow-scrolling: touch;
  }
  .auth-grade-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .auth-grade-card {
    min-height: 44px;
    padding: 10px 8px;
  }
  .auth-grade-title {
    font-size: 0.84rem;
  }
  .auth-grade-sub {
    font-size: 0.68rem;
  }
  .auth-target-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .auth-target-pill {
    min-height: 44px;
    padding: 8px 6px;
    white-space: normal;
    line-height: 1.2;
    font-size: 0.74rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .auth-teacher-switch-btn {
    min-height: 44px;
  }
  .auth-float-badge {
    font-size: 0.68rem;
    padding: 4px 8px;
  }
}

@media (max-width: 560px) {
  .lp-cta-row {
    flex-direction: column;
  }
  .lp-cta-row .btn {
    width: 100%;
  }
  .auth-grade-cards {
    gap: 6px;
  }
  .auth-target-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .lp-back-full {
    display: none;
  }
  .lp-back-short {
    display: inline;
  }
  .lp-back-landing-btn {
    padding: 6px 11px !important;
    font-size: 12px !important;
    min-height: 38px !important;
    white-space: nowrap !important;
  }
  .auth-welcome-title {
    font-size: 1.24rem;
  }
  .auth-avatar-box {
    flex-wrap: wrap;
    padding: 12px !important;
  }
  .auth-grade-card {
    padding: 10px 6px;
    align-items: center;
    text-align: center;
  }
  .auth-grade-ico {
    width: 30px;
    height: 30px;
  }
  .auth-grade-check {
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
  }
  .auth-grade-title {
    font-size: 0.8rem;
  }
  .auth-grade-sub {
    font-size: 0.66rem;
  }
  .auth-divider {
    text-align: center;
    line-height: 1.45;
  }
}

/* FIRST-TIME INTERACTIVE ONBOARDING WIZARD (Mode Web App Mobile + ?onboarding=1) */
html.ob-booting .lp-nav,
html.ob-booting .auth-shell,
body.ob-wizard-active .lp-nav,
body.ob-wizard-active .auth-shell {
  display: none !important;
}

.ob-wizard-shell[hidden] {
  display: none !important;
}

.ob-wizard-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
}

.ob-stage {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
  animation: obStageEnter 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes obStageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tahap 0: Welcome */
.ob-welcome {
  padding: 18px 20px 26px;
  justify-content: space-between;
  gap: 16px;
}

.ob-top-pill {
  align-self: center;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  color: #047857;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 99px;
  text-align: center;
}

.ob-welcome-hero {
  position: relative;
  width: 100%;
  padding-bottom: 12px;
}

.ob-mountain-svg {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 25px -8px rgba(15, 23, 42, 0.1);
  border-radius: 22px;
}

.ob-cloud-drift {
  animation: obCloudFloat 5s ease-in-out infinite alternate;
}

@keyframes obCloudFloat {
  from { transform: translateX(-6px); }
  to { transform: translateX(8px); }
}

.ob-welcome-mascot {
  position: absolute;
  right: 10px;
  bottom: -6px;
}

.ob-welcome-copy {
  text-align: center;
}

.ob-welcome-title {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 2.15rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.ob-welcome-sub {
  margin: 8px auto 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.5;
  max-width: 340px;
}

.ob-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.ob-chip-row span {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #0F172A;
}

.ob-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Header Progress */
.ob-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1.5px solid #E2E8F0;
  flex-shrink: 0;
}

.ob-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #F1F5F9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}

.ob-progress-track {
  flex: 1;
  height: 14px;
  border-radius: 99px;
  background: #E2E8F0;
  overflow: hidden;
}

.ob-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10B981, #059669);
  transition: width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.ob-step-tag {
  font-size: 0.74rem;
  font-weight: 900;
  color: #475569;
  min-width: 56px;
  text-align: right;
  white-space: nowrap;
}

/* Mascot Raka SVG Animations */
.ob-raka-svg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: obRakaBob 1.7s ease-in-out infinite alternate;
}

.ob-raka-excited,
.ob-raka-celebrate {
  animation-duration: 0.95s;
}

@keyframes obRakaBob {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.ob-raka-wave-hand {
  position: absolute;
  right: 0;
  top: 38%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FFFBEB;
  border: 2px solid #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
  transform-origin: bottom left;
  animation: obWaveHand 0.68s ease-in-out infinite alternate;
}

.ob-raka-svg.is-compact .ob-raka-wave-hand {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

@keyframes obWaveHand {
  from { transform: rotate(-16deg); }
  to { transform: rotate(22deg); }
}

.ob-raka-sparkle {
  position: absolute;
  right: 2px;
  top: 2px;
  font-size: 16px;
  animation: obSparkle 1.2s ease-in-out infinite alternate;
}

@keyframes obSparkle {
  from { opacity: 0.35; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

/* Stage 1A/1B Intro */
.ob-intro-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  text-align: center;
}

.ob-big-bubble {
  position: relative;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 22px;
  padding: 18px 20px;
  max-width: 340px;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.08);
  margin-bottom: 22px;
}

.ob-big-bubble p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.5;
}

.ob-big-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-right: 2px solid #E2E8F0;
  border-bottom: 2px solid #E2E8F0;
  transform: translateX(-50%) rotate(45deg);
}

.ob-intro-hint {
  margin: 18px 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748B;
  max-width: 290px;
  line-height: 1.5;
}

/* Questions Scroll Body */
.ob-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.ob-speech-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ob-inline-bubble {
  flex: 1;
  position: relative;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 12px 14px;
}

.ob-inline-bubble p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.42;
}

.ob-inline-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-left: 2px solid #E2E8F0;
  border-bottom: 2px solid #E2E8F0;
  transform: rotate(45deg);
}

.ob-prompt-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 10px;
}

.ob-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-opt-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-bottom-width: 4px;
  border-radius: 18px;
  padding: 13px 14px;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s ease, background-color 0.18s ease;
}

.ob-opt-card:active {
  transform: scale(0.97);
}

.ob-opt-card.is-selected {
  border-color: #10B981;
  background: #F0FDF4;
}

.ob-opt-card.ob-opt-indigo.is-selected {
  border-color: #4F46E5;
  background: #EEF2FF;
}

.ob-opt-emoji,
.ob-color-ico,
.ob-ritme-emoji {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}

.ob-opt-emoji.tone-sky { background: #F0F9FF; }
.ob-opt-emoji.tone-indigo { background: #EEF2FF; }
.ob-opt-emoji.tone-emerald { background: #ECFDF5; }
.ob-opt-emoji.tone-amber { background: #FFFBEB; }
.ob-ritme-emoji { background: #F1F5F9; }

.ob-ico-green { background: #DCFCE7; color: #15803D; }
.ob-ico-sky { background: #E0F2FE; color: #0369A1; }
.ob-ico-violet { background: #EDE9FE; color: #6D28D9; }
.ob-ico-amber { background: #FEF3C7; color: #B45309; }
.ob-ico-rose { background: #FCE7F3; color: #BE185D; }

.ob-opt-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ob-opt-copy strong {
  font-size: 0.9rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.32;
}

.ob-opt-copy small {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.35;
}

.ob-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.ob-radio.is-on {
  background: #10B981;
  border-color: #059669;
}

.ob-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.ob-checkbox.is-on {
  background: #4F46E5;
  border-color: #3730A3;
}

/* Signal Bars (Tahap 3) */
.ob-signal-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 10px;
  flex-shrink: 0;
}

.ob-signal-box.is-active {
  background: #ECFDF5;
  border-color: #10B981;
}

.ob-sig-bar {
  width: 5px;
  border-radius: 3px;
  background: #CBD5E1;
}

.ob-sig-bar.is-lit {
  background: #10B981;
}

/* Ritme Right */
.ob-ritme-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.ob-ritme-tag {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.ob-ritme-tag.is-rec {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

.ob-ritme-tag.is-on {
  background: #10B981;
  color: #FFFFFF;
}

.ob-ritme-right b {
  font-size: 0.72rem;
  font-weight: 900;
  color: #4F46E5;
}

/* Tahap 6 Gauge Card */
.ob-gauge-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.08);
}

.ob-gauge-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ob-gb-start {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 99px;
}

.ob-gb-end {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  color: #4F46E5;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 99px;
}

.ob-gauge-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.ob-gauge-readout {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.ob-gauge-readout strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
}

.ob-gauge-readout span {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #047857;
  margin-top: 2px;
}

.ob-gauge-readout small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
}

.ob-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ob-sum-item {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 9px 11px;
}

.ob-sum-item span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.04em;
}

.ob-sum-item b {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  color: #0F172A;
  margin-top: 2px;
}

.ob-route-note {
  margin-top: 12px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.45;
}

/* Bottom Dock */
.ob-dock {
  padding: 12px 16px 18px;
  background: #FFFFFF;
  border-top: 1.5px solid #E2E8F0;
  flex-shrink: 0;
}

.ob-login-inline {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 8px 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
}

.ob-login-inline b {
  color: #4F46E5;
  font-weight: 900;
}

/* Banner Rute Siap di Form Sign Up + Reopen Link */
.ob-auth-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 12px;
}

.ob-auth-banner[hidden] {
  display: none;
}

.ob-auth-banner strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  color: #047857;
}

.ob-auth-banner small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin-top: 2px;
}

.ob-auth-reopen-wrap {
  margin-top: 14px;
  text-align: center;
}

.ob-reopen-link {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4F46E5;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

.ob-reopen-link:hover {
  background: #EEF2FF;
}

/* 8. Real-Time Password Strength, Confirm Password Validation & 6-Digit OTP */

/* Inline Validation Feedback & Borders */
.auth-field-feedback {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.auth-field-feedback:empty {
  display: none;
}

.auth-field-feedback.is-err {
  color: #DC2626;
}

.auth-field-feedback.is-ok {
  color: #059669;
}

.auth-card .input.is-invalid {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
}

.auth-card .input.is-valid {
  border-color: #10B981 !important;
  background-color: #ECFDF5 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14) !important;
}

@keyframes authFieldShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-6px); }
  36% { transform: translateX(6px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(4px); }
  88% { transform: translateX(-2px); }
}

.is-shaking {
  animation: authFieldShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Password Strength Meter */
.pw-strength-wrap {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pw-strength-wrap[hidden] {
  display: none;
}

.pw-strength-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.pw-strength-fill.is-weak {
  width: 34%;
  background: #EF4444;
}

.pw-strength-fill.is-medium {
  width: 68%;
  background: #F59E0B;
}

.pw-strength-fill.is-strong {
  width: 100%;
  background: #10B981;
}

.pw-strength-label {
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 48px;
  text-align: right;
  letter-spacing: 0.01em;
}

.pw-strength-label.is-weak { color: #DC2626; }
.pw-strength-label.is-medium { color: #D97706; }
.pw-strength-label.is-strong { color: #059669; }

/* Unverified Account Alert Banner in Login Tab */
.auth-unverified-box {
  margin: 12px 0 6px;
  padding: 14px;
  border-radius: 16px;
  background: #FFFBEB;
  border: 2px solid #FCD34D;
  border-bottom-width: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: formSlideIn 0.25s ease-out;
}

.auth-unverified-box[hidden] {
  display: none;
}

.auth-unverified-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-unverified-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #B45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.auth-unverified-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  color: #92400E;
  line-height: 1.25;
}

.auth-unverified-desc {
  font-size: 0.78rem;
  font-weight: 700;
  color: #78350F;
  margin-top: 2px;
  line-height: 1.45;
}

/* 6-Digit Email OTP Verification Panel */
.otp-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px 4px;
  animation: formSlideIn 0.28s ease-out;
}

.otp-panel[hidden] {
  display: none;
}

.otp-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 2px solid #6EE7B7;
  border-bottom: 5px solid #10B981;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 12px 24px -10px rgba(16, 185, 129, 0.35);
}

.otp-icon-badge svg {
  width: 30px;
  height: 30px;
}

.otp-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.otp-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 400px;
  margin-bottom: 10px;
}

.otp-subtitle strong {
  color: var(--text-1);
  font-weight: 900;
  word-break: break-all;
}

.otp-edit-link {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: #4F46E5;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.otp-edit-link:hover {
  background: #EEF2FF;
  color: #4338CA;
}

.otp-inputs-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 390px;
  margin: 0 auto 16px;
}

.otp-box {
  width: 100%;
  height: 58px;
  border-radius: 14px;
  border: 2px solid var(--border-strong);
  border-bottom-width: 4px;
  background: #F8FAFC;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-1);
  caret-color: #10B981;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}

.otp-box:focus {
  border-color: #6366F1 !important;
  border-bottom-color: #4F46E5 !important;
  background: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.otp-box.is-filled {
  border-color: #10B981 !important;
  border-bottom-color: #059669 !important;
  background: #ECFDF5 !important;
  color: #065F46 !important;
}

.otp-box.is-error {
  border-color: #EF4444 !important;
  border-bottom-color: #DC2626 !important;
  background: #FEF2F2 !important;
  color: #991B1B !important;
}

.otp-error-box {
  width: 100%;
  max-width: 390px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  color: #B91C1C;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
}

.otp-error-box[hidden] {
  display: none;
}

.otp-success-box {
  width: 100%;
  max-width: 390px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ECFDF5;
  border: 2px solid #6EE7B7;
  color: #047857;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.45;
  animation: formSlideIn 0.25s ease-out;
}

.otp-success-box[hidden] {
  display: none;
}

.otp-resend-row {
  margin-top: 14px;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.otp-timer-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-3);
}

.otp-timer-text strong {
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
  font-weight: 900;
}

.otp-resend-btn {
  border: 2px solid #C7D2FE;
  border-bottom-width: 4px;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #4F46E5;
  background: #EEF2FF;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.otp-resend-btn:hover:not(:disabled) {
  background: #E0E7FF;
  transform: translateY(-1px);
}

.otp-resend-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.otp-resend-btn[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .otp-inputs-row {
    gap: 7px;
  }
  .otp-box {
    height: 50px;
    font-size: 1.3rem;
    border-radius: 12px;
  }
}

/* Avatar Preview Container inside Sign Up (theme-safe class) */
.auth-avatar-box {
  background: #F8FAFC;
  border: 2px solid var(--border);
}

/* 9. Dark Mode Harmonization for Auth, Validation & 6-Digit OTP */
[data-theme="dark"] .auth-showcase {
  background: linear-gradient(160deg, #0F1E2E 0%, #132238 55%, #1A1F38 100%) !important;
  border-color: #2A3D58 !important;
  border-bottom-color: #10B981 !important;
}

[data-theme="dark"] .auth-tabs {
  background: #0F172A !important;
  border-color: #2A374F !important;
}

[data-theme="dark"] .auth-tab-indicator {
  background: #1E293B !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .auth-tab {
  color: #94A3B8;
}

[data-theme="dark"] .auth-tab.active {
  color: #34D399;
}

[data-theme="dark"] .auth-tabs.is-register .auth-tab.active {
  color: #A5B4FC;
}

[data-theme="dark"] .auth-grade-card,
[data-theme="dark"] .auth-target-pill,
[data-theme="dark"] .auth-avatar-box {
  background: #1E293B !important;
  border-color: #2A374F !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .auth-grade-card.active {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #34D399 !important;
}

[data-theme="dark"] .auth-target-pill.active {
  background: rgba(99, 102, 241, 0.22) !important;
  border-color: #818CF8 !important;
  color: #E0E7FF !important;
}

[data-theme="dark"] .school-autocomplete-dropdown {
  background: #162032 !important;
  border-color: #2A374F !important;
}

[data-theme="dark"] .school-autocomplete-hint,
[data-theme="dark"] .school-add-option {
  background: #1E293B !important;
  border-color: #2A374F !important;
  color: #CBD5E1 !important;
}

[data-theme="dark"] .school-option-name {
  color: #F8FAFC !important;
}

[data-theme="dark"] .school-option-badge {
  background: #0F172A !important;
  color: #CBD5E1 !important;
}

[data-theme="dark"] .pw-strength-track {
  background: #2A374F;
}

[data-theme="dark"] .auth-field-feedback.is-err { color: #FCA5A5; }
[data-theme="dark"] .auth-field-feedback.is-ok { color: #6EE7B7; }

[data-theme="dark"] .auth-card .input.is-invalid {
  border-color: #F87171 !important;
  background-color: rgba(239, 68, 68, 0.14) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2) !important;
}

[data-theme="dark"] .auth-card .input.is-valid {
  border-color: #34D399 !important;
  background-color: rgba(16, 185, 129, 0.14) !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18) !important;
}

[data-theme="dark"] .auth-unverified-box {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
}

[data-theme="dark"] .auth-unverified-ico {
  background: rgba(245, 158, 11, 0.22);
  color: #FDE68A;
}

[data-theme="dark"] .auth-unverified-title { color: #FDE68A; }
[data-theme="dark"] .auth-unverified-desc { color: #FEF3C7; }

[data-theme="dark"] .otp-icon-badge {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
  border-bottom-color: #10B981;
  color: #6EE7B7;
}

[data-theme="dark"] .otp-edit-link,
[data-theme="dark"] .ob-reopen-link {
  color: #A5B4FC;
}

[data-theme="dark"] .otp-edit-link:hover,
[data-theme="dark"] .ob-reopen-link:hover {
  background: rgba(99, 102, 241, 0.18);
}

[data-theme="dark"] .otp-panel .otp-box {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .otp-panel .otp-box:focus {
  border-color: #818CF8 !important;
  border-bottom-color: #6366F1 !important;
  background: #162032 !important;
}

[data-theme="dark"] .otp-panel .otp-box.is-filled {
  border-color: #34D399 !important;
  border-bottom-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  color: #6EE7B7 !important;
}

[data-theme="dark"] .otp-panel .otp-box.is-error {
  border-color: #F87171 !important;
  border-bottom-color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.16) !important;
  color: #FCA5A5 !important;
}

[data-theme="dark"] .otp-error-box {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
  color: #FCA5A5;
}

[data-theme="dark"] .otp-success-box {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6EE7B7;
}

[data-theme="dark"] .otp-resend-btn {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.45);
  color: #C7D2FE;
}

[data-theme="dark"] .ob-auth-banner {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
}
[data-theme="dark"] .ob-auth-banner strong { color: #6EE7B7; }
[data-theme="dark"] .ob-auth-banner small { color: #CBD5E1; }


/* Portal Guru — Login/Daftar Switch Link & Pas Foto Biru/Merah Selector */
.auth-card [hidden],
.auth-teacher-badge[hidden],
.auth-teacher-switch-btn[hidden] {
  display: none !important;
}

.auth-teacher-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.auth-teacher-switch-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: center;
}

.auth-teacher-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.auth-teacher-switch-btn:hover {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

.auth-teacher-switch-btn strong {
  color: #059669;
  font-weight: 800;
}

.auth-teacher-switch-btn.is-back {
  background: #FFFFFF;
}

.auth-pasfoto-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.auth-pasfoto-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ta-bg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ta-bg-pill:hover {
  border-color: #94A3B8;
}

.ta-bg-pill.active[data-treg-bg="blue"],
.ta-bg-pill.active[data-ta-bg="blue"] {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #1D4ED8;
}

.ta-bg-pill.active[data-treg-bg="red"],
.ta-bg-pill.active[data-ta-bg="red"] {
  border-color: #DC2626;
  background: #FEF2F2;
  color: #B91C1C;
}

.ta-bg-swatch {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

@media (max-width: 520px) {
  .auth-pasfoto-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 10. Auth Page Theme Toggle & Complete Deep Navy Slate Dark Mode Coverage */
.auth-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1.5px solid var(--border, #E2E8F0);
  background: var(--bg-card, #FFFFFF);
  color: var(--ink, #0F172A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.auth-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: #10B981;
  color: #059669;
}
.auth-theme-toggle .auth-theme-ic-sun { display: none; }
.auth-theme-toggle .auth-theme-ic-moon { display: block; }
html[data-theme="dark"] .auth-theme-toggle .auth-theme-ic-sun { display: block; color: #FBBF24; }
html[data-theme="dark"] .auth-theme-toggle .auth-theme-ic-moon { display: none; }

html[data-theme="dark"] .auth-theme-toggle {
  background: #162032;
  border-color: #2A374F;
  color: #F8FAFC;
}
html[data-theme="dark"] .lp-nav {
  background: rgba(11, 17, 32, 0.88) !important;
  border-bottom-color: #1E293B !important;
}
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-mobile-hero,
html[data-theme="dark"] .auth-feature-card {
  background: #162032 !important;
  border-color: #2A374F !important;
  color: #F8FAFC !important;
}
html[data-theme="dark"] .auth-welcome-title,
html[data-theme="dark"] .auth-label,
html[data-theme="dark"] .auth-showcase-title {
  color: #F8FAFC !important;
}
html[data-theme="dark"] .auth-welcome-sub {
  color: #CBD5E1 !important;
}
html[data-theme="dark"] .auth-card .input {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}
html[data-theme="dark"] .auth-card .input::placeholder {
  color: #94A3B8 !important;
}
html[data-theme="dark"] .auth-teacher-badge {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #6EE7B7 !important;
}
html[data-theme="dark"] .auth-teacher-switch-bar {
  border-top-color: #2A374F !important;
}
html[data-theme="dark"] .auth-teacher-switch-btn,
html[data-theme="dark"] .auth-teacher-switch-btn.is-back {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .auth-teacher-switch-btn strong {
  color: #34D399 !important;
}
html[data-theme="dark"] .auth-pasfoto-box {
  background: #0F172A !important;
  border-color: #2A374F !important;
}
html[data-theme="dark"] .ta-bg-pill {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .auth-float-badge {
  background: #162032 !important;
  border-color: #2A374F !important;
  color: #F8FAFC !important;
}
html[data-theme="dark"] .auth-demo-btn {
  background: #1E293B !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
  border-bottom-color: #0F172A !important;
}
html[data-theme="dark"] .auth-demo-btn:hover:not(:disabled):not(.auth-btn-launching) {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #10B981 !important;
  border-bottom-color: #059669 !important;
  color: #6EE7B7 !important;
}
