/* ==========================================================================
   Telehealth Africa — selected public-page blue UI
   Presentation only. All selectors are scoped to .blue-ui-page.
   ========================================================================== */

body.blue-ui-page {
  --th-blue-950: #071d49;
  --th-blue-900: #0a2558;
  --th-blue-800: #103a7a;
  --th-blue-700: #155eef;
  --th-blue-600: #1f6fff;
  --th-blue-500: #3b82f6;
  --th-blue-300: #93c5fd;
  --th-blue-200: #bfdbfe;
  --th-blue-100: #dbeafe;
  --th-blue-50: #eff6ff;
  --th-ice: #f7fbff;
  --th-white: #ffffff;
  --th-ink: #0b1f44;
  --th-copy: #52627d;
  --th-muted: #75839a;
  --th-line: #dce7f6;
  --th-shadow-sm: 0 10px 30px rgba(11, 52, 112, 0.08);
  --th-shadow-md: 0 22px 60px rgba(11, 52, 112, 0.12);
  --th-radius-sm: 12px;
  --th-radius: 20px;
  --th-radius-lg: 30px;
  color: var(--th-ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(147, 197, 253, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff 0%, var(--th-ice) 46rem, #fff 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.blue-ui-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(21, 94, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 239, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

body.blue-ui-page a {
  text-underline-offset: 3px;
}

body.blue-ui-page .site-header {
  z-index: 1040;
}

body.blue-ui-page.homepage-nav .site-header .navbar {
  min-height: 82px;
  padding: 4px 0 !important;
  color: var(--th-ink);
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(202, 218, 240, 0.82);
  box-shadow: 0 8px 28px rgba(11, 45, 96, 0.06) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body.blue-ui-page .site-header .navbar .container {
  width: min(100% - 40px, 1460px) !important;
  max-width: 1460px !important;
  padding-inline: 0 !important;
}

body.blue-ui-page .site-header .navbar-brand {
  min-width: 86px;
  margin-right: clamp(24px, 4vw, 70px) !important;
}

body.blue-ui-page .site-header .brand-logo {
  width: 72px;
  margin-block: -5px;
  filter: drop-shadow(0 9px 20px rgba(21, 94, 239, 0.16)) !important;
}

body.blue-ui-page .site-header .navbar-nav.me-auto {
  align-items: center;
  gap: clamp(2px, 0.7vw, 12px);
}

body.blue-ui-page.homepage-nav .site-header .nav-link {
  position: relative;
  padding: 13px 14px !important;
  color: var(--th-ink) !important;
  border-radius: 10px;
  font-size: 0.91rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

body.blue-ui-page.homepage-nav .site-header .nav-link:hover,
body.blue-ui-page.homepage-nav .site-header .nav-link:focus-visible {
  color: var(--th-blue-700) !important;
  background: var(--th-blue-50);
  transform: translateY(-1px);
}

body.blue-ui-page .site-header .navbar-nav.me-auto .nav-link.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 99px;
  background: var(--th-blue-700);
  box-shadow: 0 2px 10px rgba(21, 94, 239, 0.4);
}

body.blue-ui-page .site-header .lang-globe-btn {
  color: var(--th-blue-800);
  background: var(--th-blue-50);
  border-color: var(--th-blue-200);
}

body.blue-ui-page .site-header .lang-globe-btn:hover {
  color: var(--th-blue-700);
  background: #fff;
  border-color: var(--th-blue-500);
}

body.blue-ui-page .site-header .navbar-nav.align-items-center > .btn.btn-primary {
  min-height: 44px;
  padding: 10px 22px;
  color: #fff;
  background: var(--th-blue-700);
  border: 1px solid var(--th-blue-700);
  border-radius: 12px;
  box-shadow: 0 9px 22px rgba(21, 94, 239, 0.2);
  font-weight: 700;
}

body.blue-ui-page .site-header .navbar-nav.align-items-center > .btn.btn-primary:hover {
  background: var(--th-blue-800);
  border-color: var(--th-blue-800);
  transform: translateY(-1px);
}

body.blue-ui-page .site-header .navbar-nav.align-items-center > a.nav-link:last-child {
  margin-left: 4px;
  padding: 10px 17px !important;
  border: 1px solid #aabbd4;
  border-radius: 12px;
}

body.blue-ui-page .site-header .navbar-toggler {
  padding: 8px 10px;
  border: 1px solid var(--th-blue-200);
  border-radius: 10px;
  box-shadow: none;
}

body.blue-ui-page .site-header .navbar-toggler-icon {
  filter: invert(16%) sepia(31%) saturate(2471%) hue-rotate(184deg) brightness(80%);
}

body.blue-ui-page .site-header + div[style*="padding-top"] {
  padding-top: 82px !important;
}

body.blue-ui-page main > .container:first-child {
  position: relative;
  z-index: 5;
}

body.blue-ui-page .main-container {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------- Home ---------- */

body.home-blue-page .bg-elements {
  display: none;
}

body.home-blue-page .hero {
  position: relative;
  min-height: auto;
  padding: clamp(42px, 5vw, 78px) 0 0;
  overflow: hidden;
  color: var(--th-ink);
  background:
    radial-gradient(circle at 86% 14%, rgba(96, 165, 250, 0.18), transparent 25rem),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  isolation: isolate;
}

body.home-blue-page .hero::before {
  content: "";
  position: absolute;
  top: 20px;
  right: max(20px, calc((100vw - 1460px) / 2));
  width: min(28vw, 430px);
  aspect-ratio: 1;
  opacity: 0.42;
  z-index: -1;
  background-image: radial-gradient(circle, var(--th-blue-300) 1.4px, transparent 1.5px);
  background-size: 11px 11px;
  clip-path: polygon(48% 0, 69% 8%, 86% 26%, 98% 50%, 87% 72%, 64% 84%, 48% 100%, 36% 80%, 17% 68%, 4% 49%, 13% 28%, 31% 14%);
}

body.home-blue-page .hero-container {
  width: min(100% - 48px, 1460px);
  max-width: 1460px;
  margin-inline: auto;
  padding: 0 !important;
}

body.home-blue-page .hero-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(520px, 1.09fr);
  gap: clamp(28px, 4vw, 78px);
  align-items: center;
}

body.home-blue-page .hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 2vw, 36px) 0 clamp(80px, 8vw, 124px);
}

body.home-blue-page .hero-badge,
body.home-blue-page .section-badge,
body.home-blue-page .cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 24px;
  padding: 8px 14px;
  color: var(--th-blue-800);
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-200);
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

body.home-blue-page .hero-badge i,
body.home-blue-page .section-badge i,
body.home-blue-page .cta-badge i {
  color: var(--th-blue-700);
}

body.home-blue-page .hero-title {
  max-width: 760px;
  margin: 0 0 24px !important;
  color: var(--th-blue-950);
  font-size: clamp(3.2rem, 5.35vw, 6.05rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.066em;
  text-align: left !important;
  text-wrap: balance;
}

body.home-blue-page .hero-title br {
  display: block;
}

body.home-blue-page .hero-title .gradient-text,
body.home-blue-page .hero-title .highlight {
  color: var(--th-blue-700) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.home-blue-page .hero-title .highlight {
  display: inline-block;
  margin-top: 18px;
  color: var(--th-blue-950) !important;
  font-size: 0.39em;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

body.home-blue-page .hero-subtitle {
  max-width: 610px;
  margin: 0 !important;
  color: var(--th-copy);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.78;
  text-align: left !important;
}

body.home-blue-page .hero-visual {
  position: relative;
  min-width: 0;
}

body.home-blue-page .hero-visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.5;
  border: 1px solid rgba(165, 196, 237, 0.75);
  border-radius: 34px 34px 16px 34px;
  background: #fff;
  box-shadow: var(--th-shadow-md);
}

body.home-blue-page .hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 8px solid rgba(255, 255, 255, 0.68);
  border-radius: inherit;
}

body.home-blue-page .hero-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

body.home-blue-page .hero-visual-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(21, 94, 239, 0.28);
  border-radius: 42px;
  animation: thOrbit 9s ease-in-out infinite;
}

body.home-blue-page .hero-visual-orbit.orbit-one {
  top: -28px;
  left: -28px;
  width: 120px;
  height: 120px;
}

body.home-blue-page .hero-visual-orbit.orbit-two {
  right: -36px;
  bottom: -34px;
  width: 180px;
  height: 180px;
  animation-delay: -4s;
}

body.home-blue-page .hero .search-container {
  position: relative;
  z-index: 4;
  width: min(100%, 1120px);
  margin: clamp(-78px, -5vw, -46px) 0 0 auto !important;
  padding: 22px 24px 24px !important;
  color: var(--th-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--th-line);
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(8, 41, 94, 0.14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body.home-blue-page .hero .search-header {
  margin-bottom: 16px;
  text-align: left;
}

body.home-blue-page .hero .search-header h3 {
  margin-bottom: 3px;
  color: var(--th-blue-950);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.home-blue-page .hero .search-header p {
  margin: 0;
  color: var(--th-muted);
  font-size: 0.82rem;
}

body.home-blue-page .hero .search-form {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.82fr auto;
  gap: 12px;
  align-items: end;
}

body.home-blue-page .hero .search-field {
  min-width: 0;
}

body.home-blue-page .hero .search-field label {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 7px;
  color: var(--th-blue-900);
  font-size: 0.72rem;
  font-weight: 750;
}

body.home-blue-page .hero .search-field label i {
  color: var(--th-blue-700);
}

body.home-blue-page .hero .input-wrapper input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--th-ink);
  background: #fff;
  border: 1px solid #cbd9ec;
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  font-size: 0.82rem;
}

body.home-blue-page .hero .input-wrapper input:focus {
  border-color: var(--th-blue-600);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

body.home-blue-page .hero .input-glow {
  display: none;
}

body.home-blue-page .hero .search-btn {
  min-width: 154px;
  min-height: 48px;
  padding: 12px 22px;
  color: #fff;
  background: var(--th-blue-700) !important;
  border: 1px solid var(--th-blue-700);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(21, 94, 239, 0.2);
  font-weight: 750;
}

body.home-blue-page .hero .search-btn:hover {
  background: var(--th-blue-800) !important;
  transform: translateY(-2px);
}

body.home-blue-page .hero .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  margin: 34px 0 0 !important;
  padding: 22px 0;
  background: #fff;
  border-top: 1px solid var(--th-line);
  border-bottom: 1px solid var(--th-line);
  border-radius: 0;
  box-shadow: none;
}

body.home-blue-page .hero .stat-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 4px clamp(14px, 2.3vw, 34px);
  border-right: 1px solid var(--th-line);
}

body.home-blue-page .hero .stat-item:last-child {
  border-right: 0;
}

body.home-blue-page .hero .stat-icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0;
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border-radius: 50%;
  font-size: 1.2rem;
}

body.home-blue-page .hero .stat-number {
  color: var(--th-blue-950);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

body.home-blue-page .hero .stat-label {
  color: var(--th-copy);
  font-size: 0.78rem;
}

body.home-blue-page .section-container,
body.home-blue-page .doctors-header,
body.home-blue-page .doctors-container {
  width: min(100% - 48px, 1400px);
  max-width: 1400px;
  margin-inline: auto;
}

body.home-blue-page .specialties,
body.home-blue-page .how-it-works,
body.home-blue-page .why-choose-us,
body.home-blue-page .testimonials,
body.home-blue-page .apps-section {
  padding: clamp(72px, 8vw, 118px) 0;
  background: #fff;
}

body.home-blue-page .specialties,
body.home-blue-page .why-choose-us,
body.home-blue-page .apps-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(147, 197, 253, 0.16), transparent 22rem),
    var(--th-ice);
}

body.home-blue-page .section-header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

body.home-blue-page .section-header .section-badge {
  margin-inline: auto;
}

body.home-blue-page .section-title {
  color: var(--th-blue-950);
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

body.home-blue-page .section-subtitle {
  color: var(--th-copy);
  line-height: 1.75;
}

body.home-blue-page .specialties-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.home-blue-page .specialty-card,
body.home-blue-page .doctor-card,
body.home-blue-page .choose-card,
body.home-blue-page .testimonial-card {
  color: var(--th-ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow-sm);
}

body.home-blue-page .specialty-card:hover,
body.home-blue-page .doctor-card:hover,
body.home-blue-page .choose-card:hover {
  border-color: var(--th-blue-300);
  box-shadow: var(--th-shadow-md);
  transform: translateY(-5px);
}

body.home-blue-page .specialty-icon-wrapper,
body.home-blue-page .choose-icon,
body.home-blue-page .step-icon {
  color: var(--th-blue-700) !important;
  background: var(--th-blue-50) !important;
}

body.home-blue-page .specialty-name,
body.home-blue-page .doctor-name,
body.home-blue-page .step-title,
body.home-blue-page .choose-card h4 {
  color: var(--th-blue-950);
}

body.home-blue-page .specialty-desc,
body.home-blue-page .step-description,
body.home-blue-page .choose-card p {
  color: var(--th-copy);
}

body.home-blue-page .specialty-rating,
body.home-blue-page .verification-badge,
body.home-blue-page .availability-tag {
  color: var(--th-blue-700) !important;
}

body.home-blue-page .doctors-header {
  padding-top: clamp(72px, 8vw, 112px);
}

body.home-blue-page .doctors-container {
  padding-bottom: clamp(72px, 8vw, 112px);
}

body.home-blue-page .view-all-btn,
body.home-blue-page .book-btn.primary {
  color: #fff;
  background: var(--th-blue-700) !important;
  border-color: var(--th-blue-700) !important;
}

body.home-blue-page .book-btn.secondary {
  color: var(--th-blue-700);
  background: #fff;
  border-color: var(--th-blue-300);
}

body.home-blue-page .how-it-works .steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

body.home-blue-page .how-it-works .step-card {
  position: relative;
  min-width: 0;
  padding: 22px 30px;
  background: transparent;
  border: 0;
  border-right: 1px dashed var(--th-blue-200);
  border-radius: 0;
  box-shadow: none;
}

body.home-blue-page .how-it-works .step-card:last-child {
  border-right: 0;
}

body.home-blue-page .how-it-works .step-number {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 0 22px;
  color: #fff;
  background: var(--th-blue-700);
  border-radius: 17px;
  box-shadow: 0 12px 26px rgba(21, 94, 239, 0.18);
}

body.home-blue-page .how-it-works .step-number span {
  color: inherit;
}

body.home-blue-page .how-it-works .step-pulse,
body.home-blue-page .how-it-works .step-glow,
body.home-blue-page .process-flow {
  display: none;
}

body.home-blue-page .why-choose-grid,
body.home-blue-page .testimonial-grid {
  gap: 18px;
}

body.home-blue-page .testimonials {
  overflow: hidden;
}

body.home-blue-page .emergency-banner {
  background: linear-gradient(100deg, #0b3274, #155eef);
}

body.home-blue-page .emergency-btn.urgent {
  color: var(--th-blue-900);
  background: #fff;
}

body.home-blue-page .emergency-btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
}

body.home-blue-page .apps-section .phone-frame {
  border-color: var(--th-blue-900);
  box-shadow: var(--th-shadow-md);
}

body.home-blue-page .app-feature i,
body.home-blue-page .quick-action i {
  color: var(--th-blue-700);
}

body.home-blue-page .cta-section {
  padding: clamp(72px, 8vw, 118px) 0;
  background: #fff;
}

body.home-blue-page .cta-content {
  padding: clamp(38px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(147, 197, 253, 0.34), transparent 19rem),
    linear-gradient(135deg, #f4f9ff, #fff);
  border: 1px solid var(--th-blue-200);
  border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow-md);
}

body.home-blue-page .cta-title {
  color: var(--th-blue-950);
}

body.home-blue-page .cta-title .gradient-text {
  color: var(--th-blue-700);
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.home-blue-page .cta-subtitle {
  color: var(--th-copy);
}

body.home-blue-page .cta-btn.primary {
  color: #fff;
  background: var(--th-blue-700);
  border-color: var(--th-blue-700);
}

body.home-blue-page .cta-btn.secondary {
  color: var(--th-blue-700);
  background: #fff;
  border-color: var(--th-blue-300);
}

body.home-blue-page .cta-features .feature-item i {
  color: var(--th-blue-700);
}

/* ---------- Blog / Health Guide ---------- */

body.blue-ui-page.blog-page {
  color: var(--th-ink) !important;
  background: var(--th-ice) !important;
}

body.blue-ui-page.blog-page .breadcrumb-bar {
  color: var(--th-copy) !important;
  background: #fff !important;
  border-color: var(--th-line) !important;
}

body.blue-ui-page.blog-page .breadcrumb-bar a {
  color: var(--th-blue-700) !important;
}

body.blue-ui-page.blog-page .blog-hero {
  padding: clamp(72px, 8vw, 120px) 0 100px !important;
  background:
    radial-gradient(circle at 82% 22%, rgba(59, 130, 246, 0.24), transparent 20rem),
    linear-gradient(145deg, #071d49, #0f4da8 68%, #155eef) !important;
}

body.blue-ui-page.blog-page .blog-hero::before {
  background-image: radial-gradient(circle, rgba(191, 219, 254, 0.28) 1.3px, transparent 1.4px) !important;
  background-size: 18px 18px !important;
}

body.blue-ui-page.blog-page .blog-hero::after {
  background: var(--th-ice) !important;
}

body.blue-ui-page.blog-page .hero-tag {
  color: #fff !important;
  background: var(--th-blue-600) !important;
}

body.blue-ui-page.blog-page .blog-hero h1 {
  color: #fff !important;
  font-family: inherit !important;
  font-weight: 800;
  letter-spacing: -0.05em;
}

body.blue-ui-page.blog-page .blog-hero h1 em,
body.blue-ui-page.blog-page .blog-hero p {
  color: var(--th-blue-100) !important;
}

body.blue-ui-page.blog-page .category-bar {
  top: 82px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--th-line) !important;
  box-shadow: 0 10px 24px rgba(11, 52, 112, 0.06) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body.blue-ui-page.blog-page .cat-btn {
  color: var(--th-copy) !important;
  background: #fff !important;
  border-color: var(--th-line) !important;
}

body.blue-ui-page.blog-page .cat-btn:hover,
body.blue-ui-page.blog-page .cat-btn.active {
  color: #fff !important;
  background: var(--th-blue-700) !important;
  border-color: var(--th-blue-700) !important;
}

body.blue-ui-page.blog-page .featured-card {
  background: linear-gradient(135deg, #09275d, #155eef) !important;
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: var(--th-shadow-md) !important;
}

body.blue-ui-page.blog-page .featured-body h2,
body.blue-ui-page.blog-page .section-header h3,
body.blue-ui-page.blog-page .card-body-content h4 {
  font-family: inherit !important;
}

body.blue-ui-page.blog-page .featured-body > p {
  color: var(--th-blue-100) !important;
}

body.blue-ui-page.blog-page .featured-badge,
body.blue-ui-page.blog-page .btn-read,
body.blue-ui-page.blog-page .btn-subscribe {
  color: #fff !important;
  background: var(--th-blue-600) !important;
  border-color: var(--th-blue-600) !important;
}

body.blue-ui-page.blog-page .featured-visual {
  background: linear-gradient(135deg, #0d3c88, #2878ff) !important;
}

body.blue-ui-page.blog-page .featured-visual .center-icon {
  color: #fff !important;
}

body.blue-ui-page.blog-page .article-card,
body.blue-ui-page.blog-page .form-card {
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius) !important;
  box-shadow: var(--th-shadow-sm) !important;
}

body.blue-ui-page.blog-page .article-card:hover {
  border-color: var(--th-blue-300);
  box-shadow: var(--th-shadow-md) !important;
}

body.blue-ui-page.blog-page .doctors-section {
  background: linear-gradient(135deg, #071d49, #103f8a) !important;
}

body.blue-ui-page.blog-page .doctor-card {
  border-color: rgba(191, 219, 254, 0.25) !important;
}

body.blue-ui-page.blog-page .doctor-card .specialty,
body.blue-ui-page.blog-page .doctors-section .lead {
  color: var(--th-blue-200) !important;
}

body.blue-ui-page.blog-page .btn-write {
  color: var(--th-blue-800) !important;
}

body.blue-ui-page.blog-page .newsletter-section {
  background: var(--th-blue-50) !important;
  border-color: var(--th-blue-100) !important;
}

body.blue-ui-page.blog-page .nl-form input:focus {
  border-color: var(--th-blue-600) !important;
}

/* ---------- About ---------- */

body.about-blue-page main .main-container > .container {
  position: relative;
  width: min(100% - 48px, 1240px);
  max-width: 1240px;
  margin: 0 auto !important;
  padding: clamp(64px, 8vw, 110px) 0 !important;
}

body.about-blue-page main .main-container > .container::before {
  content: "";
  position: absolute;
  top: 34px;
  right: -80px;
  width: 360px;
  height: 360px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 68%);
}

body.about-blue-page .text-center.mb-4 {
  max-width: 760px;
  margin: 0 auto 54px !important;
}

body.about-blue-page h1 {
  color: var(--th-blue-950);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

body.about-blue-page .lead {
  color: var(--th-blue-700);
  font-weight: 650;
}

/* Scoped to `main`: `:first-of-type` matches by ELEMENT type (div), not by
   class, so the footer's own <div class="row g-3"> also satisfied
   `.row:first-of-type`. The img rule below then gave the footer brand
   logo min-height:430px + object-fit:cover, cropping it into a tall
   narrow sliver. The footer sits outside <main>, so this scoping keeps
   these About styles on the About content only. */
body.about-blue-page main .row:first-of-type {
  align-items: stretch;
  padding: clamp(20px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow-md);
}

body.about-blue-page main .row:first-of-type img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 22px !important;
  box-shadow: none !important;
}

body.about-blue-page main .row:first-of-type h3 {
  margin-top: 8px;
  color: var(--th-blue-950);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.about-blue-page main .row:first-of-type h3:not(:first-child) {
  margin-top: 27px;
}

body.about-blue-page main .row:first-of-type p {
  color: var(--th-copy);
  line-height: 1.75;
}

body.about-blue-page hr {
  border-color: var(--th-line);
  opacity: 1;
}

body.about-blue-page .row.text-center {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

body.about-blue-page .row.text-center > div {
  width: auto;
  padding: 28px 18px;
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: 18px;
  box-shadow: var(--th-shadow-sm);
}

body.about-blue-page .row.text-center h2 {
  color: var(--th-blue-700) !important;
  font-weight: 850;
}

body.about-blue-page .btn-outline-primary {
  color: var(--th-blue-700);
  border-color: var(--th-blue-500);
  border-radius: 12px;
  padding: 11px 22px;
  font-weight: 700;
}

/* ---------- Get Started ---------- */

body.get-started-blue-page main .main-container > .container {
  width: min(100% - 48px, 1280px);
  max-width: 1280px;
  margin: 0 auto !important;
  padding: clamp(64px, 8vw, 110px) 0 !important;
}

body.get-started-blue-page .text-center.mb-5:first-child {
  max-width: 760px;
  margin-inline: auto;
}

body.get-started-blue-page h1 {
  color: var(--th-blue-950);
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  font-weight: 850 !important;
  letter-spacing: -0.06em;
}

body.get-started-blue-page .lead {
  color: var(--th-copy) !important;
}

body.get-started-blue-page .card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.64), #fff 34%);
  border: 1px solid var(--th-line) !important;
  border-radius: var(--th-radius) !important;
  box-shadow: var(--th-shadow-sm) !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.get-started-blue-page .card:hover {
  border-color: var(--th-blue-300) !important;
  box-shadow: var(--th-shadow-md) !important;
  transform: translateY(-5px);
}

body.get-started-blue-page .card-body {
  padding: 34px 28px !important;
}

body.get-started-blue-page .card-body > i {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  color: var(--th-blue-700) !important;
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-100);
  border-radius: 20px;
  font-size: 1.8rem;
}

body.get-started-blue-page .card-title {
  color: var(--th-blue-950);
  font-size: 1.18rem;
}

body.get-started-blue-page .card-text,
body.get-started-blue-page .card p {
  color: var(--th-copy) !important;
  line-height: 1.65;
}

body.get-started-blue-page .card .btn {
  min-height: 46px;
  color: #fff !important;
  background: var(--th-blue-700) !important;
  border-color: var(--th-blue-700) !important;
  border-radius: 11px;
  font-weight: 750;
}

body.get-started-blue-page .card .btn:hover {
  background: var(--th-blue-800) !important;
}

body.get-started-blue-page hr {
  border-color: var(--th-line);
  opacity: 1;
}

body.get-started-blue-page a {
  color: var(--th-blue-700);
}

body.get-started-blue-page .btn-outline-secondary,
body.get-started-blue-page .btn-outline-danger {
  color: var(--th-blue-700) !important;
  background: #fff !important;
  border-color: var(--th-blue-300) !important;
  border-radius: 11px;
}

/* ---------- Admin Login ---------- */

body.admin-login-blue-page main {
  display: grid;
  min-height: calc(100vh - 82px);
  place-items: center;
  padding: 64px 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(96, 165, 250, 0.21), transparent 27rem),
    radial-gradient(circle at 85% 75%, rgba(191, 219, 254, 0.32), transparent 28rem),
    #f8fbff;
}

body.admin-login-blue-page main .main-container {
  width: min(100%, 520px);
}

body.admin-login-blue-page .content-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: clamp(32px, 5vw, 52px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--th-line);
  border-radius: 28px;
  box-shadow: var(--th-shadow-md);
}

body.admin-login-blue-page .content-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--th-blue-700), var(--th-blue-300));
}

body.admin-login-blue-page legend {
  margin-bottom: 30px !important;
  padding-bottom: 18px;
  color: var(--th-blue-950);
  border-color: var(--th-line) !important;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.055em;
}

body.admin-login-blue-page .form-group {
  margin-bottom: 20px;
}

body.admin-login-blue-page .form-control-label,
body.admin-login-blue-page .form-check-label {
  margin-bottom: 7px;
  color: var(--th-blue-900);
  font-size: 0.84rem;
  font-weight: 750;
}

body.admin-login-blue-page .form-control {
  min-height: 52px;
  padding: 12px 15px;
  color: var(--th-ink);
  background: #fff;
  border: 1px solid #c8d7eb;
  border-radius: 11px;
  box-shadow: none;
}

body.admin-login-blue-page .form-control:focus {
  border-color: var(--th-blue-600);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

body.admin-login-blue-page .toggle-password {
  color: var(--th-blue-700);
}

body.admin-login-blue-page .form-group .btn-primary {
  width: 100%;
  min-height: 50px;
  color: #fff;
  background: var(--th-blue-700);
  border-color: var(--th-blue-700);
  border-radius: 11px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(21, 94, 239, 0.2);
}

body.admin-login-blue-page .form-group .btn-primary:hover {
  background: var(--th-blue-800);
  border-color: var(--th-blue-800);
}

body.admin-login-blue-page .border-top {
  border-color: var(--th-line) !important;
}

body.admin-login-blue-page .border-top a {
  color: var(--th-blue-700);
  font-weight: 700;
}

/* ---------- Selected-page footer ---------- */

body.blue-ui-page footer.bg-dark {
  color: var(--th-copy) !important;
  background: #f7faff !important;
  border-color: var(--th-line) !important;
}

body.blue-ui-page footer.bg-dark h6 {
  color: var(--th-blue-900) !important;
  letter-spacing: 0.14em;
}

body.blue-ui-page footer.bg-dark .text-secondary {
  color: var(--th-copy) !important;
}

body.blue-ui-page footer.bg-dark a:hover {
  color: var(--th-blue-700) !important;
}

body.blue-ui-page footer.bg-dark .text-info {
  color: var(--th-blue-700) !important;
}

body.blue-ui-page footer.bg-dark .border-top {
  border-color: var(--th-line) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  body.blue-ui-page .site-header .navbar .container {
    width: min(100% - 28px, 1140px) !important;
  }

  body.blue-ui-page.homepage-nav .site-header .nav-link {
    padding-inline: 9px !important;
    font-size: 0.84rem;
  }

  body.home-blue-page .hero-intro-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  }

  body.home-blue-page .hero-title {
    font-size: clamp(3rem, 5.5vw, 4.7rem);
  }

  body.home-blue-page .hero .search-container {
    width: 94%;
  }

  body.home-blue-page .specialties-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body.blue-ui-page.homepage-nav .site-header .navbar {
    min-height: 74px;
  }

  body.blue-ui-page .site-header + div[style*="padding-top"] {
    padding-top: 74px !important;
  }

  body.blue-ui-page .site-header .brand-logo {
    width: 62px;
  }

  body.blue-ui-page .site-header .navbar-collapse {
    max-height: calc(100vh - 88px);
    margin-top: 10px;
    padding: 14px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--th-line);
    border-radius: 16px;
    box-shadow: var(--th-shadow-md);
  }

  body.blue-ui-page .site-header .navbar-nav.me-auto,
  body.blue-ui-page .site-header .navbar-nav.align-items-center {
    align-items: stretch !important;
  }

  body.blue-ui-page .site-header .navbar-nav.align-items-center > a.nav-link:last-child {
    margin: 7px 0 0;
    text-align: center;
  }

  body.home-blue-page .hero {
    padding-top: 34px;
  }

  body.home-blue-page .hero-container,
  body.home-blue-page .section-container,
  body.home-blue-page .doctors-header,
  body.home-blue-page .doctors-container {
    width: min(100% - 32px, 900px);
  }

  body.home-blue-page .hero-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.home-blue-page .hero-copy {
    padding-bottom: 24px;
  }

  body.home-blue-page .hero-title,
  body.home-blue-page .hero-subtitle {
    max-width: 800px;
  }

  body.home-blue-page .hero-visual {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  body.home-blue-page .hero .search-container {
    width: calc(100% - 30px);
    margin: -38px auto 0 !important;
  }

  body.home-blue-page .hero .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-blue-page .hero .search-btn {
    width: 100%;
  }

  body.home-blue-page .hero .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  body.home-blue-page .hero .stat-item:nth-child(2) {
    border-right: 0;
  }

  body.home-blue-page .hero .stat-item:nth-child(-n + 2) {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--th-line);
  }

  body.home-blue-page .hero .stat-item:nth-child(n + 3) {
    padding-top: 20px;
  }

  body.home-blue-page .specialties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-blue-page .how-it-works .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.home-blue-page .how-it-works .step-card {
    padding: 24px;
    border: 1px dashed var(--th-blue-200);
    border-radius: var(--th-radius);
  }

  body.about-blue-page .row.text-center {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  body.blue-ui-page .site-header .navbar .container {
    width: calc(100% - 24px) !important;
    padding: 0 !important;
  }

  body.blue-ui-page .site-header .navbar-toggler {
    margin-right: 0;
  }

  body.home-blue-page .hero-title {
    font-size: clamp(2.75rem, 13.2vw, 4.2rem);
    line-height: 0.98;
  }

  body.home-blue-page .hero-title .highlight {
    margin-top: 13px;
    font-size: 0.37em;
  }

  body.home-blue-page .hero .search-container {
    width: 100%;
    margin-top: 18px !important;
    padding: 20px !important;
  }

  body.home-blue-page .hero .search-form {
    grid-template-columns: 1fr;
  }

  body.home-blue-page .hero .search-btn {
    min-height: 52px;
  }

  body.home-blue-page .specialties-grid,
  body.home-blue-page .how-it-works .steps-grid {
    grid-template-columns: 1fr;
  }

  body.home-blue-page .hero .stats {
    grid-template-columns: 1fr;
  }

  body.home-blue-page .hero .stat-item,
  body.home-blue-page .hero .stat-item:nth-child(2),
  body.home-blue-page .hero .stat-item:nth-child(-n + 2),
  body.home-blue-page .hero .stat-item:nth-child(n + 3) {
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--th-line);
  }

  body.home-blue-page .hero .stat-item:last-child {
    border-bottom: 0;
  }

  body.home-blue-page .emergency-content {
    align-items: flex-start;
  }

  body.about-blue-page main .main-container > .container,
  body.get-started-blue-page main .main-container > .container {
    width: min(100% - 28px, 680px);
  }

  body.about-blue-page main .row:first-of-type {
    padding: 18px;
  }

  body.about-blue-page main .row:first-of-type img {
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  body.blue-ui-page .site-header .navbar-brand {
    margin-right: 0 !important;
  }

  body.home-blue-page .hero-container,
  body.home-blue-page .section-container,
  body.home-blue-page .doctors-header,
  body.home-blue-page .doctors-container {
    width: calc(100% - 24px);
  }

  body.home-blue-page .hero-visual-frame {
    aspect-ratio: 1.18;
    border-radius: 24px;
  }

  body.home-blue-page .hero-visual-frame img {
    object-position: 53% 50%;
  }

  body.home-blue-page .section-title {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  body.about-blue-page .row.text-center {
    grid-template-columns: 1fr;
  }

  body.admin-login-blue-page main {
    padding: 38px 14px;
  }

  body.admin-login-blue-page .content-section {
    padding: 30px 22px;
    border-radius: 22px;
  }
}

@keyframes thOrbit {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  body.blue-ui-page *,
  body.blue-ui-page *::before,
  body.blue-ui-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Get Started + authentication suite — long desktop UI system
   ========================================================================== */

body.get-started-blue-page,
body.auth-blue-page {
  background: #f8fbff;
}

body.auth-blue-page main.flex-fill,
body.auth-blue-page main.flex-grow-1 {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: #f8fbff !important;
}

body.auth-blue-page main .main-container,
body.admin-login-blue-page main .main-container {
  width: 100% !important;
  max-width: none !important;
}

body.get-started-blue-page .main-container,
body.auth-blue-page .main-container {
  overflow: visible;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 26%, rgba(49, 140, 255, 0.24), transparent 29rem),
    linear-gradient(112deg, #061a42 0%, #082b65 58%, #0a3f8c 100%);
  isolation: isolate;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(121, 188, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 188, 255, 0.09) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.auth-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -90px;
  left: 0;
  height: 160px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  background:
    radial-gradient(ellipse at 20% 100%, transparent 52%, rgba(62, 148, 255, 0.34) 53%, transparent 54%),
    radial-gradient(ellipse at 72% 100%, transparent 56%, rgba(62, 148, 255, 0.26) 57%, transparent 58%);
}

.auth-hero.auth-hero-compact {
  min-height: 330px;
}

.auth-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100% - 48px, 1360px);
  min-height: inherit;
  margin-inline: auto;
  padding: 66px 0 92px;
}

.auth-hero-copy {
  position: relative;
  z-index: 2;
  width: min(58%, 760px);
}

.auth-eyebrow,
.section-kicker,
.auth-side-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f1b843;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-eyebrow::before,
.section-kicker::before,
.auth-side-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.auth-hero h1 {
  max-width: 780px;
  margin: 18px 0 14px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.auth-hero.auth-hero-compact h1 {
  font-size: clamp(2.8rem, 4.7vw, 4.9rem);
}

.auth-hero p {
  max-width: 620px;
  margin: 0;
  color: #c9ddff;
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.75;
}

.auth-africa-map {
  position: absolute;
  top: 50%;
  right: clamp(-70px, -2vw, -18px);
  width: min(52vw, 670px);
  height: auto;
  opacity: 0.94;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 28px rgba(41, 137, 255, 0.38));
  animation: authMapDrift 14s ease-in-out infinite;
}

.auth-page-content,
.get-started-content {
  position: relative;
  z-index: 3;
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
}

.auth-page-content {
  padding: 0 0 clamp(58px, 7vw, 96px);
}

.auth-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  align-items: stretch;
  margin-top: -66px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-radius: 30px;
  box-shadow: 0 26px 80px rgba(4, 35, 84, 0.16);
  animation: authWorkspaceEnter 650ms cubic-bezier(.2, .84, .22, 1) both;
}

.auth-side-panel {
  position: relative;
  display: flex;
  min-height: 590px;
  padding: clamp(42px, 5vw, 70px);
  overflow: hidden;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 20% 12%, rgba(44, 126, 255, 0.34), transparent 19rem),
    linear-gradient(150deg, #092b67 0%, #061a42 72%);
}

.auth-side-panel::after {
  content: "";
  position: absolute;
  right: -24%;
  bottom: -19%;
  width: 120%;
  aspect-ratio: 2;
  opacity: 0.32;
  border-radius: 50%;
  background-image: radial-gradient(circle, #4a9cff 1.25px, transparent 1.4px);
  background-size: 12px 12px;
  transform: rotate(-9deg);
  mask-image: linear-gradient(to top, #000, transparent 76%);
}

.auth-side-panel-admin {
  background:
    radial-gradient(circle at 18% 12%, rgba(35, 115, 241, 0.33), transparent 18rem),
    linear-gradient(150deg, #071f4e 0%, #051633 78%);
}

.auth-side-kicker,
.auth-side-panel > * {
  position: relative;
  z-index: 1;
}

.auth-side-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 38px 0 22px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2878ff, #1458d9);
  border: 1px solid rgba(191, 219, 254, 0.42);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(0, 18, 57, 0.25), inset 0 1px rgba(255, 255, 255, 0.28);
  font-size: 1.85rem;
}

.auth-side-panel h2 {
  max-width: 440px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 3.7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.auth-side-links {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 42px;
}

.auth-side-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  align-items: center;
  padding-top: 17px;
  border-top: 1px solid rgba(191, 219, 254, 0.18);
}

.auth-side-link > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #a8d1ff;
  background: rgba(45, 122, 241, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 50%;
}

.auth-side-link p {
  margin: 0;
  color: #d5e6ff;
  font-size: 0.91rem;
  line-height: 1.6;
}

.auth-side-panel a {
  color: #fff;
  font-weight: 750;
}

.auth-side-button {
  width: fit-content;
  min-height: 46px;
  padding: 11px 20px;
  color: #fff !important;
  background: var(--th-blue-700);
  border: 1px solid #4d92ff;
  border-radius: 11px;
  font-weight: 750;
}

.auth-form-card {
  display: flex;
  min-width: 0;
  padding: clamp(42px, 6vw, 82px);
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0, rgba(219, 234, 254, 0.55), transparent 22rem),
    #fff;
}

.auth-form-card form,
.auth-form-card fieldset {
  width: 100%;
  min-width: 0;
}

.auth-form-card fieldset {
  padding: 0;
  border: 0;
}

.auth-form-card legend {
  display: block;
  width: 100%;
  margin: 0 0 34px !important;
  padding: 0;
  color: var(--th-blue-950);
  border: 0 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.auth-form-card .form-group {
  position: relative;
  margin-bottom: 24px;
}

.auth-form-card .form-control-label,
.auth-form-card .form-label,
.auth-form-card .form-check-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--th-blue-950);
  font-size: 0.86rem;
  font-weight: 750;
}

.auth-form-card .form-control {
  width: 100%;
  min-height: 58px;
  padding: 14px 17px;
  color: var(--th-ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #c9d7eb;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(6, 31, 79, 0.02);
  font-size: 0.98rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-form-card .form-control:hover {
  border-color: #9fb9db;
}

.auth-form-card .form-control:focus {
  border-color: var(--th-blue-600);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.11);
  transform: translateY(-1px);
}

.auth-password-toggle {
  position: absolute;
  right: 11px;
  bottom: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--th-blue-800);
  background: #fff;
  border: 0;
  border-radius: 9px;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--th-blue-600);
  background: var(--th-blue-50);
}

.auth-remember-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 25px;
  padding: 14px 16px;
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-100);
  border-radius: 11px;
}

.auth-remember-row .form-check,
.auth-inline-check {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
}

.auth-remember-row .form-check-label,
.auth-inline-check .form-check-label {
  margin: 0;
}

.auth-remember-row small {
  color: var(--th-copy);
  font-size: 0.78rem;
}

.auth-inline-check {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-100);
  border-radius: 11px;
}

.auth-submit,
.auth-form-card .btn.auth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: linear-gradient(135deg, #1f6fff, #0e55d9) !important;
  border: 1px solid #1459df !important;
  border-radius: 11px !important;
  box-shadow: 0 14px 28px rgba(21, 94, 239, 0.21);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, #155eef, #0b43ad) !important;
  box-shadow: 0 18px 34px rgba(21, 94, 239, 0.28);
  transform: translateY(-2px);
}

.auth-submit-row {
  margin-bottom: 0 !important;
}

.auth-forgot-link {
  display: block;
  margin-top: 17px;
  color: var(--th-blue-700);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 750;
}

.auth-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: 20px;
  box-shadow: var(--th-shadow-sm);
}

.auth-trust-strip > div {
  display: flex;
  min-width: 0;
  min-height: 96px;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: var(--th-blue-900);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-trust-strip > div + div {
  border-left: 1px solid var(--th-line);
}

.auth-trust-strip i {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border-radius: 50%;
  font-size: 1.05rem;
}

.auth-trust-strip a {
  color: var(--th-blue-700);
}

/* Two-factor authentication */

.auth-2fa-workspace {
  grid-template-columns: minmax(340px, 0.82fr) minmax(540px, 1.18fr);
}

.auth-help-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: auto 0 0;
  padding: 36px 0 0;
  list-style: none;
}

.auth-help-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  color: #d5e6ff;
  border-top: 1px solid rgba(191, 219, 254, 0.18);
  font-size: 0.88rem;
  line-height: 1.55;
}

.auth-help-list i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #a8d1ff;
  background: rgba(45, 122, 241, 0.18);
  border-radius: 50%;
}

.auth-help-list a {
  color: #fff;
  overflow-wrap: anywhere;
}

.auth-delivery-notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 16px 18px;
  color: var(--th-blue-900);
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-100);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-delivery-notice > i {
  margin-top: 3px;
  color: var(--th-blue-700);
}

.auth-code-group {
  margin-bottom: 26px !important;
}

.auth-form-card .auth-code-input {
  min-height: 78px;
  padding-inline: clamp(14px, 4vw, 42px);
  color: var(--th-blue-950);
  background-color: #fff;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(16.666% - 1px),
    #dce7f6 calc(16.666% - 1px),
    #dce7f6 16.666%
  );
  border-color: var(--th-blue-300);
  font-family: "Courier New", monospace;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: clamp(0.5rem, 2vw, 1.4rem);
  text-align: center;
}

.auth-code-group .form-text {
  display: block;
  margin-top: 10px;
  color: var(--th-copy);
  font-size: 0.82rem;
}

.auth-resend {
  margin-top: 20px;
  text-align: center;
}

.auth-resend p {
  margin: 0 0 10px;
  color: var(--th-copy);
  font-size: 0.86rem;
}

.auth-resend-button,
.auth-cancel-button {
  width: 100%;
  min-height: 48px;
  color: var(--th-blue-700) !important;
  background: #fff !important;
  border: 1px solid var(--th-blue-300) !important;
  border-radius: 11px !important;
  font-weight: 750;
}

.auth-cancel {
  margin-top: 12px;
}

.auth-security-note {
  margin: 22px 0 0;
  padding-top: 20px;
  color: var(--th-copy);
  border-top: 1px solid var(--th-line);
  text-align: center;
  font-size: 0.82rem;
}

.auth-security-note i {
  margin-right: 6px;
  color: var(--th-blue-700);
}

.auth-verification-card .alert-sm {
  margin: 12px 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
}

/* Get Started */

.get-started-hero {
  min-height: 430px;
}

.get-started-content {
  padding: 0 0 clamp(70px, 8vw, 110px);
}

.role-section {
  margin-top: -64px;
  padding: clamp(38px, 5vw, 66px);
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: 30px;
  box-shadow: 0 26px 80px rgba(4, 35, 84, 0.14);
  animation: authWorkspaceEnter 650ms cubic-bezier(.2, .84, .22, 1) both;
}

.role-section-header {
  max-width: 840px;
  margin: 0 auto clamp(36px, 5vw, 58px);
  text-align: center;
}

.section-kicker {
  justify-content: center;
  color: var(--th-blue-700);
}

.section-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.role-section-header h2 {
  margin: 15px 0 0;
  color: var(--th-blue-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 350px;
  padding: 28px 24px 24px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  color: var(--th-ink);
  background:
    radial-gradient(circle at 50% 0, rgba(219, 234, 254, 0.7), transparent 10rem),
    #fff;
  border: 1px solid var(--th-line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(11, 52, 112, 0.055);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20%;
  left: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--th-blue-600), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.role-card:hover {
  z-index: 1;
  border-color: var(--th-blue-300);
  box-shadow: 0 20px 46px rgba(11, 52, 112, 0.12);
  transform: translateY(-6px);
}

.role-card:hover::before {
  opacity: 1;
}

.role-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2878ff, #1458d9);
  border: 6px solid var(--th-blue-50);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(21, 94, 239, 0.2);
  font-size: 1.45rem;
}

.role-card h3 {
  margin: 0 0 10px;
  color: var(--th-blue-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.role-card > p:not(.role-login) {
  margin: 0 0 22px;
  color: var(--th-copy);
  font-size: 0.87rem;
  line-height: 1.65;
}

.role-action {
  width: 100%;
  min-height: 45px;
  margin-top: auto;
  padding: 11px 15px;
  color: #fff !important;
  background: linear-gradient(135deg, #1f6fff, #0e55d9);
  border: 1px solid #1459df;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 800;
}

.role-action:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #155eef, #0b43ad);
}

.role-login {
  min-height: 38px;
  margin: 13px 0 0;
  color: var(--th-copy);
  font-size: 0.75rem;
  line-height: 1.45;
}

.role-login a {
  color: var(--th-blue-700);
  font-weight: 750;
}

.access-panels {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  margin-top: 28px;
}

.access-panel {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 23px;
  align-items: center;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), #fff);
  border: 1px solid var(--th-line);
  border-radius: 20px;
  box-shadow: var(--th-shadow-sm);
}

.access-panel.privacy-panel {
  background:
    linear-gradient(135deg, rgba(255, 250, 235, 0.74), #fff);
}

.access-panel-icon {
  display: grid;
  width: 72px;
  height: 82px;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, #59b1ff, #155eef);
  clip-path: polygon(50% 0, 94% 16%, 88% 74%, 50% 100%, 12% 74%, 6% 16%);
  font-size: 1.55rem;
}

.privacy-panel .access-panel-icon {
  background: linear-gradient(160deg, #f4c24f, #de9511);
}

.access-panel h2,
.access-panel p {
  margin-top: 0;
}

.access-panel h2 {
  margin-bottom: 8px;
  color: var(--th-blue-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.access-panel p {
  margin-bottom: 13px;
  color: var(--th-copy);
  font-size: 0.88rem;
  line-height: 1.6;
}

.access-panel-action {
  min-height: 42px;
  padding: 9px 15px;
  color: var(--th-blue-700) !important;
  background: #fff;
  border: 1px solid var(--th-blue-400, #60a5fa);
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 750;
}

@keyframes authMapDrift {
  0%, 100% { transform: translate3d(0, -50%, 0); }
  50% { transform: translate3d(-9px, calc(-50% - 5px), 0); }
}

@keyframes authWorkspaceEnter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 1199.98px) {
  .auth-hero-inner,
  .auth-page-content,
  .get-started-content {
    width: min(100% - 36px, 1120px);
  }

  .auth-workspace,
  .auth-2fa-workspace {
    grid-template-columns: minmax(290px, 0.72fr) minmax(480px, 1.28fr);
  }

  .auth-side-panel,
  .auth-form-card {
    padding: 46px;
  }

  .role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .auth-hero,
  .auth-hero.auth-hero-compact,
  .get-started-hero {
    min-height: 320px;
  }

  .auth-hero-inner {
    width: min(100% - 32px, 900px);
    padding-block: 52px 82px;
  }

  .auth-hero-copy {
    width: 64%;
  }

  .auth-africa-map {
    right: -90px;
    width: min(60vw, 560px);
    opacity: 0.72;
  }

  .auth-page-content,
  .get-started-content {
    width: min(100% - 32px, 900px);
  }

  .auth-workspace,
  .auth-2fa-workspace {
    grid-template-columns: minmax(260px, 0.68fr) minmax(420px, 1.32fr);
  }

  .auth-side-panel,
  .auth-form-card {
    padding: 38px 34px;
  }

  .auth-side-panel {
    min-height: 560px;
  }

  .role-section {
    padding: 38px 28px;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .auth-hero,
  .auth-hero.auth-hero-compact,
  .get-started-hero {
    min-height: 300px;
  }

  .auth-hero-inner {
    width: calc(100% - 28px);
    padding: 44px 0 76px;
  }

  .auth-hero-copy {
    width: 100%;
  }

  .auth-hero h1,
  .auth-hero.auth-hero-compact h1 {
    max-width: 78%;
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .auth-hero p {
    max-width: 72%;
    font-size: 0.94rem;
  }

  .auth-africa-map {
    right: -142px;
    width: 500px;
    opacity: 0.4;
  }

  .auth-page-content,
  .get-started-content {
    width: calc(100% - 24px);
  }

  .auth-workspace,
  .auth-2fa-workspace {
    grid-template-columns: 1fr;
    margin-top: -48px;
    border-radius: 24px;
  }

  .auth-side-panel {
    min-height: auto;
    padding: 30px 26px;
  }

  .auth-side-panel h2 {
    font-size: 2.25rem;
  }

  .auth-side-icon {
    width: 58px;
    height: 58px;
    margin: 24px 0 16px;
    border-radius: 17px;
    font-size: 1.4rem;
  }

  .auth-side-links,
  .auth-help-list {
    margin-top: 14px;
    padding-top: 10px;
  }

  .auth-help-list {
    grid-template-columns: 1fr;
  }

  .auth-form-card {
    padding: 38px 26px 34px;
  }

  .auth-form-card legend {
    margin-bottom: 26px !important;
    font-size: 2.35rem;
  }

  .auth-trust-strip {
    grid-template-columns: 1fr;
  }

  .auth-trust-strip > div {
    min-height: 74px;
    justify-content: flex-start;
    text-align: left;
  }

  .auth-trust-strip > div + div {
    border-top: 1px solid var(--th-line);
    border-left: 0;
  }

  .role-section {
    margin-top: -48px;
    padding: 34px 20px;
    border-radius: 24px;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: 320px;
  }

  .access-panel {
    grid-template-columns: 62px 1fr;
    padding: 24px 20px;
  }

  .access-panel-icon {
    width: 60px;
    height: 70px;
  }
}

@media (max-width: 479.98px) {
  .auth-hero h1,
  .auth-hero.auth-hero-compact h1 {
    max-width: 92%;
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .auth-eyebrow {
    font-size: 0.67rem;
    letter-spacing: 0.09em;
  }

  .auth-hero p {
    max-width: 88%;
  }

  .auth-form-card {
    padding: 32px 18px 28px;
  }

  .auth-side-panel {
    padding: 27px 20px;
  }

  .auth-remember-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-form-card .auth-code-input {
    min-height: 68px;
    padding-inline: 8px;
    font-size: 1.45rem;
    letter-spacing: 0.45rem;
  }

  .auth-trust-strip > div {
    padding: 17px;
    font-size: 0.8rem;
  }

  .role-section-header h2 {
    font-size: 2rem;
  }

  .access-panel {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Authentication + registration fidelity pass
   Matches the approved long desktop references while remaining responsive.
   ========================================================================== */

body.auth-blue-page,
body.get-started-blue-page,
body.registration-blue-page {
  --auth-navy: #061a42;
  --auth-navy-2: #082b65;
  --auth-blue: #155eef;
  --auth-azure: #2f88ff;
  --auth-ice: #eff6ff;
  --auth-gold: #f1b843;
  --auth-border: #d7e4f5;
  --auth-ease: cubic-bezier(.2, .84, .22, 1);
}

body.auth-blue-page,
body.get-started-blue-page,
body.registration-blue-page {
  margin-top: 0 !important;
}

.auth-hero {
  background: var(--auth-navy);
}

.auth-hero-inner {
  isolation: isolate;
}

.auth-hero-inner::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 32% 0 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 26, 66, 0.96) 0%, rgba(6, 26, 66, 0.86) 44%, rgba(6, 26, 66, 0) 100%);
}

.auth-hero .auth-africa-map {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -2%;
  bottom: auto;
  left: auto;
  width: auto;
  height: 145%;
  max-width: none;
  opacity: 1;
  object-fit: contain;
  object-position: right center;
  transform: translate3d(0, -50%, 0);
  filter: none;
  animation: authArtworkBreathe 18s ease-in-out infinite;
}

.auth-hero-copy {
  position: relative;
  z-index: 2;
}

.auth-hero h1 em,
.auth-side-panel h2 em,
.role-section-header h2 em {
  color: #2f7cff;
  font-style: normal;
}

.auth-hero-assurances {
  display: flex;
  max-width: 650px;
  gap: 0;
  align-items: center;
  margin-top: 28px;
}

.auth-hero-assurances span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  color: #dcecff;
  border-left: 1px solid rgba(191, 219, 254, 0.3);
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
}

.auth-hero-assurances span:first-child {
  padding-left: 0;
  border-left: 0;
}

.auth-hero-assurances i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #dcecff;
  border: 1px solid rgba(191, 219, 254, 0.5);
  border-radius: 50%;
  font-size: 0.7rem;
}

body.user-login-blue-page .auth-hero {
  min-height: 327px;
}

body.user-login-blue-page .auth-workspace {
  grid-template-columns: minmax(340px, 0.8fr) minmax(560px, 1.2fr);
  min-height: 670px;
  margin-top: 0;
}

body.user-login-blue-page .auth-side-panel {
  min-height: 670px;
  padding: 47px 36px;
}

body.user-login-blue-page .auth-form-card {
  justify-content: flex-start;
  padding: 54px 60px;
}

.auth-side-intro {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 20px 0 0;
  color: #d5e6ff;
  font-size: 0.95rem;
  line-height: 1.75;
}

.auth-feature-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 28px;
}

.auth-feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 19px 0;
  border-top: 1px solid rgba(191, 219, 254, 0.18);
}

.auth-feature-item > i {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(47, 136, 255, 0.62), rgba(17, 78, 177, 0.45));
  border: 1px solid rgba(168, 209, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 17, 52, 0.24);
  font-size: 1.15rem;
}

.auth-feature-item h3 {
  margin: 0 0 5px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.auth-feature-item p {
  margin: 0;
  color: #c9ddff;
  font-size: 0.78rem;
  line-height: 1.55;
}

.auth-form-card legend {
  margin-bottom: 7px !important;
}

.auth-form-intro {
  margin: 0 0 28px;
  color: var(--th-copy);
  font-size: 0.88rem;
}

/* ── Account-type label on the shared login page ──────────────────────────
   One login page serves patients, doctors, labs, pharmacies, suppliers,
   hospitals and insurers, so it states which one you arrived from. Driven
   by the ?user_type= parameter on the "Login here" links. */
.auth-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.08);
  color: #0f47c4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-role-badge i {
  font-size: 0.75rem;
}

.auth-form-card .auth-role-badge + .auth-form-intro {
  margin-bottom: 10px;
}

.auth-role-note {
  margin: 0 0 24px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--th-muted, #6b7a95);
}

.auth-role-note a {
  color: #155eef;
  font-weight: 600;
  text-decoration: none;
}

.auth-role-note a:hover {
  text-decoration: underline;
}

.auth-form-card .auth-field-icon ~ .form-control {
  padding-left: 48px;
}

.auth-field-icon {
  position: absolute;
  z-index: 2;
  left: 17px;
  bottom: 19px;
  color: var(--th-blue-900);
  pointer-events: none;
  font-size: 0.92rem;
}

.auth-remember-row {
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.auth-form-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 23px 0 18px;
  color: #73819a;
  font-size: 0.8rem;
}

.auth-form-divider::before,
.auth-form-divider::after {
  content: "";
  height: 1px;
  background: var(--auth-border);
}

.auth-account-options {
  display: grid;
  gap: 10px;
}

.auth-account-options > a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 62px;
  padding: 10px 15px;
  color: var(--auth-blue);
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.auth-account-options > a:hover {
  background: var(--auth-ice);
  border-color: #8fb9f4;
  transform: translateY(-2px);
}

.auth-account-options > a > i:first-child {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--auth-blue);
  background: var(--auth-ice);
  border-radius: 50%;
}

.auth-account-options span {
  display: grid;
}

.auth-account-options small {
  margin-bottom: 2px;
  color: var(--th-copy);
  font-size: 0.72rem;
  font-weight: 600;
}

.auth-trust-strip > div {
  justify-content: flex-start;
  text-align: left;
}

.auth-trust-strip span {
  display: grid;
  gap: 4px;
}

.auth-trust-strip strong {
  color: var(--auth-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.auth-trust-strip small {
  color: var(--th-copy);
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Get Started reference fidelity */

body.get-started-blue-page .get-started-hero {
  min-height: 351px;
}

body.get-started-blue-page .auth-hero h1 {
  font-size: clamp(3rem, 5.1vw, 5.25rem);
  line-height: 1.02;
}

body.get-started-blue-page .role-section {
  margin-top: 0;
  padding: 48px 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.get-started-blue-page .role-section-header {
  margin-bottom: 36px;
}

body.get-started-blue-page .role-card {
  min-height: 325px;
  padding: 24px 19px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(11, 52, 112, 0.045);
}

body.get-started-blue-page .role-icon {
  width: 66px;
  height: 66px;
  color: var(--auth-blue);
  background: var(--auth-ice);
  border: 0;
  box-shadow: none;
  font-size: 1.55rem;
}

body.get-started-blue-page .access-panels {
  grid-template-columns: 1fr 1fr;
}

.get-started-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 25px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  box-shadow: var(--th-shadow-sm);
}

.get-started-trust-strip > div {
  display: flex;
  min-height: 100px;
  gap: 13px;
  align-items: center;
  padding: 19px;
}

.get-started-trust-strip > div + div {
  border-left: 1px solid var(--auth-border);
}

.get-started-trust-strip i {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--auth-blue);
  background: var(--auth-ice);
  border-radius: 50%;
}

.get-started-trust-strip span {
  display: grid;
  gap: 3px;
}

.get-started-trust-strip strong {
  color: var(--auth-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.87rem;
}

.get-started-trust-strip small {
  color: var(--th-copy);
  font-size: 0.69rem;
  line-height: 1.4;
}

/* Registration/application destinations */

body.registration-blue-page main.flex-grow-1 {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: #f8fbff !important;
}

body.registration-blue-page .main-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.registration-blue-page .registration-hero {
  min-height: 370px;
}

body.registration-blue-page .registration-hero h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 4.7vw, 4.9rem);
}

.registration-page-content {
  position: relative;
  z-index: 3;
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
  padding: 0 0 clamp(70px, 8vw, 112px);
}

.registration-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.66fr) minmax(600px, 1.34fr);
  align-items: stretch;
  margin-top: -58px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(191, 219, 254, 0.88);
  border-radius: 30px;
  box-shadow: 0 27px 82px rgba(4, 35, 84, 0.15);
  animation: authWorkspaceEnter 650ms var(--auth-ease) both;
}

.registration-side-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 17% 8%, rgba(47, 136, 255, 0.28), transparent 21rem),
    linear-gradient(154deg, #092b67 0%, #061a42 78%);
}

.registration-side-panel::after {
  content: "";
  position: absolute;
  right: -40%;
  bottom: -3%;
  width: 145%;
  aspect-ratio: 1.8;
  opacity: 0.25;
  background-image: radial-gradient(circle, #4a9cff 1.1px, transparent 1.3px);
  background-size: 12px 12px;
  border-radius: 50%;
  transform: rotate(-9deg);
  mask-image: linear-gradient(to top, #000, transparent 78%);
}

.registration-side-panel-inner {
  position: sticky;
  z-index: 1;
  top: 112px;
  display: flex;
  min-height: 680px;
  padding: 50px 42px;
  flex-direction: column;
}

.registration-side-panel h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 3.55vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.registration-side-panel-inner > p {
  margin: 20px 0 0;
  color: #c9ddff;
  font-size: 0.92rem;
  line-height: 1.72;
}

.registration-benefit-list {
  display: grid;
  gap: 0;
  margin: auto 0 0;
  padding: 34px 0 0;
  list-style: none;
}

.registration-benefit-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(191, 219, 254, 0.18);
}

.registration-benefit-list li > i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: rgba(47, 136, 255, 0.24);
  border: 1px solid rgba(168, 209, 255, 0.34);
  border-radius: 50%;
}

.registration-benefit-list strong,
.registration-benefit-list span {
  display: block;
}

.registration-benefit-list strong {
  margin-bottom: 4px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
}

.registration-benefit-list span {
  color: #c9ddff;
  font-size: 0.75rem;
  line-height: 1.48;
}

.registration-form-card {
  min-width: 0;
  padding: clamp(40px, 5.5vw, 72px);
  background:
    radial-gradient(circle at 100% 0, rgba(219, 234, 254, 0.54), transparent 25rem),
    #fff;
}

.registration-form-header {
  margin-bottom: 34px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--auth-border);
}

.registration-form-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--auth-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.registration-form-kicker::before {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}

.registration-form-header h2 {
  margin: 11px 0 8px;
  color: var(--auth-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.registration-form-header h2 i {
  margin-right: 7px;
  color: var(--auth-blue);
  font-size: 0.76em;
}

.registration-form-header p {
  margin: 0;
  color: var(--th-copy);
  font-size: 0.88rem;
  line-height: 1.6;
}

.registration-form-card fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.registration-form-card legend {
  color: var(--auth-navy);
  border-color: var(--auth-border) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.registration-form-card h5 {
  margin-top: 30px !important;
  padding: 11px 14px !important;
  color: var(--auth-navy) !important;
  background: linear-gradient(90deg, var(--auth-ice), rgba(239, 246, 255, 0));
  border: 0 !important;
  border-left: 3px solid var(--auth-blue) !important;
  border-radius: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.registration-form-card .form-label,
.registration-form-card .form-control-label,
.registration-form-card .form-check-label {
  color: var(--auth-navy);
  font-size: 0.82rem;
  font-weight: 750;
}

.registration-form-card .form-control,
.registration-form-card .form-select {
  min-height: 52px;
  color: var(--th-ink);
  background-color: #fff;
  border: 1px solid #c9d7eb;
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.92rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.registration-form-card textarea.form-control {
  min-height: 112px;
}

.registration-form-card .form-control:focus,
.registration-form-card .form-select:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
  transform: translateY(-1px);
}

.registration-form-card input[type="file"].form-control {
  min-height: 52px;
  padding: 8px;
}

.registration-form-card input[type="file"].form-control::file-selector-button {
  height: 34px;
  margin: -1px 13px -1px -1px;
  color: var(--auth-blue);
  background: var(--auth-ice);
  border: 0;
  border-right: 1px solid var(--auth-border);
  border-radius: 7px 0 0 7px;
  font-weight: 700;
}

.registration-form-card .form-check {
  min-height: 28px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.registration-form-card .form-check-input:checked {
  background-color: var(--auth-blue);
  border-color: var(--auth-blue);
}

.registration-form-card .invalid-feedback,
.registration-form-card .text-danger.small {
  margin-top: 6px;
  font-size: 0.76rem;
}

.registration-form-card .registration-submit,
.registration-form-card button.registration-submit,
.registration-form-card input.registration-submit {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: #fff !important;
  background: linear-gradient(135deg, #1f6fff, #0e55d9) !important;
  border: 1px solid #1459df !important;
  border-radius: 11px !important;
  box-shadow: 0 14px 28px rgba(21, 94, 239, 0.2);
  font-weight: 800;
}

.registration-form-card .registration-submit:hover {
  background: linear-gradient(135deg, #155eef, #0b43ad) !important;
  transform: translateY(-2px);
}

/* Auth/Get Started footer bottom band */

body.auth-blue-page footer.bg-dark,
body.get-started-blue-page footer.bg-dark,
body.registration-blue-page footer.bg-dark {
  padding-bottom: 0 !important;
}

body.auth-blue-page footer.bg-dark > .container > .text-center.border-top,
body.get-started-blue-page footer.bg-dark > .container > .text-center.border-top,
body.registration-blue-page footer.bg-dark > .container > .text-center.border-top {
  width: 100vw;
  min-height: 58px;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  padding: 20px max(18px, calc((100vw - 1360px) / 2)) !important;
  color: #d5e6ff !important;
  background: var(--auth-navy);
  border-color: rgba(191, 219, 254, 0.12) !important;
}

@keyframes authArtworkBreathe {
  0%, 100% { transform: translate3d(0, -50%, 0) scale(1.002); }
  50% { transform: translate3d(-5px, calc(-50% - 2px), 0) scale(1.025); }
}

@media (max-width: 1199.98px) {
  body.user-login-blue-page .auth-workspace {
    grid-template-columns: minmax(320px, 0.78fr) minmax(500px, 1.22fr);
  }

  body.user-login-blue-page .auth-form-card {
    padding-inline: 46px;
  }

  .registration-page-content {
    width: min(100% - 36px, 1120px);
  }

  .registration-workspace {
    grid-template-columns: minmax(290px, 0.62fr) minmax(520px, 1.38fr);
  }

  .registration-side-panel-inner {
    padding-inline: 35px;
  }
}

@media (max-width: 991.98px) {
  .auth-hero-inner::after {
    right: 20%;
  }

  .auth-hero-assurances {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .auth-hero-assurances span:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  body.user-login-blue-page .auth-workspace {
    grid-template-columns: minmax(280px, 0.7fr) minmax(430px, 1.3fr);
  }

  body.user-login-blue-page .auth-form-card {
    padding-inline: 34px;
  }

  .get-started-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .get-started-trust-strip > div:nth-child(3) {
    border-top: 1px solid var(--auth-border);
    border-left: 0;
  }

  .get-started-trust-strip > div:nth-child(4) {
    border-top: 1px solid var(--auth-border);
  }

  .registration-page-content {
    width: min(100% - 32px, 900px);
  }

  .registration-workspace {
    grid-template-columns: minmax(250px, 0.58fr) minmax(430px, 1.42fr);
  }

  .registration-side-panel-inner,
  .registration-form-card {
    padding: 38px 30px;
  }
}

@media (max-width: 767.98px) {
  .auth-hero .auth-africa-map {
    right: -36%;
    height: 126%;
    opacity: 0.5;
  }

  .auth-hero-inner::after {
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 26, 66, 0.94), rgba(6, 26, 66, 0.62) 70%, rgba(6, 26, 66, 0.28));
  }

  .auth-hero-assurances {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 20px;
  }

  .auth-hero-assurances span,
  .auth-hero-assurances span:nth-child(3) {
    min-height: 28px;
    padding: 0;
    border: 0;
  }

  body.user-login-blue-page .auth-hero {
    min-height: 390px;
  }

  body.user-login-blue-page .auth-workspace,
  .auth-workspace,
  .auth-2fa-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: -40px;
  }

  body.user-login-blue-page .auth-form-card,
  .auth-form-card {
    order: 1;
    padding: 36px 24px;
  }

  body.user-login-blue-page .auth-side-panel,
  .auth-side-panel {
    order: 2;
    min-height: auto;
    padding: 34px 24px;
  }

  .auth-feature-list {
    margin-top: 20px;
  }

  .auth-feature-item {
    padding-block: 15px;
  }

  .auth-trust-strip strong {
    font-size: 0.9rem;
  }

  body.get-started-blue-page .access-panels {
    grid-template-columns: 1fr;
  }

  .registration-page-content {
    width: calc(100% - 24px);
  }

  .registration-workspace {
    grid-template-columns: 1fr;
    margin-top: -42px;
    border-radius: 24px;
  }

  .registration-form-card {
    order: 1;
    padding: 34px 24px;
  }

  .registration-side-panel {
    order: 2;
  }

  .registration-side-panel-inner {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 36px 24px;
  }

  .registration-benefit-list {
    margin-top: 22px;
    padding-top: 10px;
  }

  .registration-form-card .row > [class*="col-md-"] {
    width: 100%;
  }
}

@media (max-width: 559.98px) {
  .get-started-trust-strip {
    grid-template-columns: 1fr;
  }

  .get-started-trust-strip > div + div,
  .get-started-trust-strip > div:nth-child(4) {
    border-top: 1px solid var(--auth-border);
    border-left: 0;
  }
}

@media (max-width: 479.98px) {
  .auth-account-options > a {
    grid-template-columns: 38px 1fr auto;
    padding-inline: 10px;
  }

  .auth-feature-item {
    grid-template-columns: 46px 1fr;
  }

  .registration-form-card {
    padding: 30px 18px;
  }

  .registration-side-panel-inner {
    padding: 31px 20px;
  }

  .registration-form-header h2 {
    font-size: 2rem;
  }
}

/* Admin login and two-factor reference details */

.auth-input-shell {
  position: relative;
}

.auth-input-shell > i:first-child {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  color: var(--auth-navy);
  pointer-events: none;
  transform: translateY(-50%);
  font-size: 0.95rem;
}

.auth-input-shell .form-control {
  padding-left: 48px !important;
}

.auth-input-shell .auth-password-toggle {
  right: 10px;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}

body.admin-login-blue-page .auth-hero {
  min-height: 402px;
}

body.admin-login-blue-page .auth-workspace {
  grid-template-columns: minmax(330px, 0.76fr) minmax(540px, 1.24fr);
  min-height: 667px;
  margin-top: -58px;
}

body.admin-login-blue-page .auth-side-panel {
  min-height: 667px;
  padding: 42px 32px;
}

body.admin-login-blue-page .auth-feature-item {
  padding-block: 14px;
}

body.admin-login-blue-page .auth-form-card {
  justify-content: center;
  padding: 52px 48px;
}

body.admin-login-blue-page .auth-form-card legend {
  margin: 0 0 7px !important;
  padding: 0 !important;
  border: 0 !important;
}

body.admin-login-blue-page .auth-form-card .form-group {
  margin-bottom: 24px;
}

body.admin-login-blue-page .auth-form-card .form-control {
  min-height: 58px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-color: #c9d7eb;
}

.auth-security-banner {
  display: flex;
  min-height: 82px;
  gap: 17px;
  align-items: center;
  margin-top: 30px;
  padding: 20px clamp(24px, 4vw, 56px);
  color: var(--th-copy);
  background:
    linear-gradient(90deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--auth-border);
  border-radius: 17px;
  box-shadow: 0 7px 22px rgba(11, 52, 112, 0.045);
  font-size: 0.85rem;
  line-height: 1.55;
}

.auth-security-banner > i {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: var(--auth-blue);
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 50%;
}

.auth-security-banner p {
  margin: 0;
}

.auth-security-banner > div {
  display: grid;
  gap: 4px;
}

.auth-security-banner strong {
  color: var(--auth-navy);
}

.auth-security-banner small {
  color: var(--th-copy);
}

body.admin-login-blue-page .auth-trust-strip,
body.auth-2fa-blue-page .auth-trust-strip {
  min-height: 115px;
}

body.auth-2fa-blue-page .auth-hero {
  min-height: 370px;
}

body.auth-2fa-blue-page .auth-workspace {
  grid-template-columns: minmax(330px, 0.76fr) minmax(550px, 1.24fr);
  min-height: 678px;
  margin-top: -76px;
}

body.auth-2fa-blue-page .auth-side-panel {
  min-height: 678px;
  padding: 42px 32px;
}

body.auth-2fa-blue-page .auth-feature-item {
  padding-block: 14px;
}

body.auth-2fa-blue-page .auth-form-card {
  min-height: 678px;
  justify-content: center;
  padding: 48px 55px;
}

.auth-verification-recipient {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0 26px;
  color: var(--th-copy);
  font-size: 0.86rem;
  line-height: 1.55;
}

.auth-verification-recipient i {
  margin-top: 3px;
  color: var(--auth-blue);
  font-size: 1.05rem;
}

.auth-verification-recipient strong {
  color: var(--auth-navy);
}

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

.auth-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(9px, 1.35vw, 15px);
  width: 100%;
  margin-top: 10px;
}

.auth-otp-cell {
  width: 100%;
  min-width: 0;
  height: 80px;
  padding: 0;
  color: var(--auth-navy);
  background: #fff;
  border: 1px solid #c9d7eb;
  border-radius: 11px;
  outline: none;
  box-shadow: 0 5px 15px rgba(11, 52, 112, 0.035);
  font-family: "Courier New", monospace;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 800;
  text-align: center;
  caret-color: var(--auth-blue);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-otp-cell:hover {
  border-color: #9fb9db;
}

.auth-otp-cell:focus {
  border: 2px solid var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1), 0 10px 24px rgba(21, 94, 239, 0.1);
  transform: translateY(-2px);
}

.auth-otp-cell.is-filled {
  color: var(--auth-blue);
  background: var(--auth-ice);
  border-color: #8fb9f4;
}

.auth-code-expiry {
  display: block;
  margin-top: 15px !important;
  color: var(--th-copy);
  font-size: 0.82rem;
}

.auth-code-expiry strong {
  color: var(--auth-blue);
}

body.auth-2fa-blue-page .auth-resend {
  margin-top: 16px;
}

body.auth-2fa-blue-page .auth-resend > p {
  display: none;
}

body.auth-2fa-blue-page .auth-resend-button {
  min-height: 52px;
}

body.auth-2fa-blue-page .auth-form-divider {
  margin-block: 20px 16px;
}

body.auth-2fa-blue-page .auth-cancel {
  margin-top: 0;
}

body.auth-2fa-blue-page .auth-cancel form {
  width: auto;
}

body.auth-2fa-blue-page .auth-cancel-button {
  width: auto;
  min-height: 40px;
  padding: 6px 4px;
  color: var(--auth-blue) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Alternate registration side markup used by patient and doctor */

body.patient-registration-blue-page .registration-side-panel,
body.doctor-registration-blue-page .registration-side-panel {
  display: flex;
  min-height: 680px;
  padding: 50px 42px;
  flex-direction: column;
}

body.patient-registration-blue-page .registration-side-panel > *,
body.doctor-registration-blue-page .registration-side-panel > * {
  position: relative;
  z-index: 1;
}

.registration-side-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 38px;
  color: var(--auth-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.registration-side-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

body.patient-registration-blue-page .registration-side-panel > p,
body.doctor-registration-blue-page .registration-side-panel > p {
  margin: 20px 0 0;
  color: #c9ddff;
  font-size: 0.92rem;
  line-height: 1.72;
}

.registration-benefits {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 34px;
}

.registration-benefit {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(191, 219, 254, 0.18);
}

.registration-benefit > i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: rgba(47, 136, 255, 0.24);
  border: 1px solid rgba(168, 209, 255, 0.34);
  border-radius: 50%;
}

.registration-benefit strong,
.registration-benefit span {
  display: block;
}

.registration-benefit strong {
  margin-bottom: 4px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
}

.registration-benefit span {
  color: #c9ddff;
  font-size: 0.75rem;
  line-height: 1.48;
}

.registration-form-card .content-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.registration-form-card .btn-outline-danger,
.registration-form-card .btn-outline-info,
.registration-form-card .btn-secondary {
  color: var(--auth-blue);
  background: #fff;
  border-color: #8fb9f4;
}

.registration-form-card #pic-preview {
  border-color: var(--auth-border) !important;
  box-shadow: 0 10px 26px rgba(11, 52, 112, 0.12);
}

@media (max-width: 991.98px) {
  body.admin-login-blue-page .auth-workspace,
  body.auth-2fa-blue-page .auth-workspace {
    grid-template-columns: minmax(285px, 0.7fr) minmax(430px, 1.3fr);
  }

  body.admin-login-blue-page .auth-form-card,
  body.auth-2fa-blue-page .auth-form-card {
    padding-inline: 36px;
  }

  body.patient-registration-blue-page .registration-side-panel,
  body.doctor-registration-blue-page .registration-side-panel {
    padding: 38px 30px;
  }
}

@media (max-width: 767.98px) {
  body.admin-login-blue-page .auth-hero,
  body.auth-2fa-blue-page .auth-hero {
    min-height: 390px;
  }

  body.admin-login-blue-page .auth-workspace,
  body.auth-2fa-blue-page .auth-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: -42px;
  }

  body.admin-login-blue-page .auth-form-card,
  body.auth-2fa-blue-page .auth-form-card {
    order: 1;
    min-height: auto;
    padding: 36px 24px;
  }

  body.admin-login-blue-page .auth-side-panel,
  body.auth-2fa-blue-page .auth-side-panel {
    order: 2;
    min-height: auto;
    padding: 34px 24px;
  }

  .auth-security-banner {
    align-items: flex-start;
    padding: 18px;
  }

  .auth-otp-grid {
    gap: clamp(5px, 1.7vw, 10px);
  }

  .auth-otp-cell {
    height: 64px;
    border-radius: 9px;
    font-size: 1.45rem;
  }

  body.patient-registration-blue-page .registration-side-panel,
  body.doctor-registration-blue-page .registration-side-panel {
    order: 2;
    min-height: auto;
    padding: 36px 24px;
  }

  .registration-benefits {
    margin-top: 22px;
    padding-top: 10px;
  }
}

@media (max-width: 379.98px) {
  .auth-otp-grid {
    gap: 4px;
  }

  .auth-otp-cell {
    height: 56px;
    border-radius: 8px;
    font-size: 1.25rem;
  }
}

@media (max-width: 479.98px) {
  body.blue-ui-page footer.bg-dark .row > [class*="col-"] {
    min-width: 0;
  }

  body.blue-ui-page footer.bg-dark a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Keep the standard login workspace at the same compact desktop rhythm as
   the approved reference. Validation messages can still expand it naturally. */
@media (min-width: 768px) {
  body.get-started-blue-page .auth-hero-inner {
    padding-block: 34px;
  }

  body.admin-login-blue-page .auth-side-panel {
    padding: 34px 30px;
  }

  body.admin-login-blue-page .auth-side-panel h2 {
    font-size: 2.05rem;
    line-height: 1.04;
  }

  body.admin-login-blue-page .auth-side-intro {
    margin-top: 16px;
    font-size: 0.85rem;
    line-height: 1.55;
  }

  body.admin-login-blue-page .auth-feature-list {
    padding-top: 18px;
  }

  body.admin-login-blue-page .auth-feature-item {
    padding-block: 9px;
  }

  body.provider-login-blue-page .auth-hero,
  body.admin-password-blue-page .auth-hero {
    min-height: 370px;
  }

  body.provider-login-blue-page .auth-hero-inner,
  body.admin-password-blue-page .auth-hero-inner {
    padding-block: 34px;
  }

  body.provider-login-blue-page .auth-hero-copy,
  body.admin-password-blue-page .auth-hero-copy {
    width: min(62%, 700px);
  }

  body.provider-login-blue-page .auth-hero h1,
  body.admin-password-blue-page .auth-hero h1 {
    font-size: 2.75rem;
    letter-spacing: -0.045em;
    line-height: 1.03;
  }

  body.provider-login-blue-page .auth-workspace {
    grid-template-columns: minmax(330px, 0.76fr) minmax(550px, 1.24fr);
    min-height: 730px;
    margin-top: -46px;
  }

  body.provider-login-blue-page .auth-side-panel,
  body.provider-login-blue-page .auth-form-card {
    min-height: 730px;
  }

  body.provider-login-blue-page .auth-side-panel {
    padding: 40px 34px;
  }

  body.provider-login-blue-page .auth-form-card {
    padding: 48px 55px;
  }

  body.provider-login-blue-page .auth-feature-list {
    margin-top: 28px;
    padding-top: 0;
  }

  body.provider-login-blue-page .auth-feature-item {
    padding-block: 14px;
  }

  body.provider-login-blue-page .auth-side-links {
    margin-top: auto;
    padding-top: 24px;
  }

  body.admin-password-blue-page .auth-workspace {
    grid-template-columns: minmax(330px, 0.76fr) minmax(550px, 1.24fr);
    min-height: 700px;
    margin-top: -46px;
  }

  body.admin-password-blue-page .auth-side-panel,
  body.admin-password-blue-page .auth-form-card {
    min-height: 700px;
  }

  body.admin-password-blue-page .auth-side-panel {
    padding: 42px 34px;
  }

  body.admin-password-blue-page .auth-form-card {
    padding: 46px 55px;
  }

  body.admin-password-blue-page .auth-feature-list {
    margin-top: 30px;
    padding-top: 0;
  }

  body.admin-password-blue-page .auth-feature-item {
    padding-block: 14px;
  }

  body.user-login-blue-page .auth-hero-inner {
    padding-block: 46px 50px;
  }

  body.user-login-blue-page .auth-hero-copy {
    width: min(65%, 680px);
  }

  body.user-login-blue-page .auth-hero h1 {
    font-size: 2.56rem;
    letter-spacing: -0.045em;
    line-height: 1.03;
  }

  body.user-login-blue-page .auth-form-card {
    padding-block: 40px;
  }

  body.user-login-blue-page .auth-form-card .form-group {
    margin-bottom: 16px;
  }

  body.user-login-blue-page .auth-form-intro {
    margin-bottom: 18px;
  }

  body.user-login-blue-page .auth-form-card .form-control {
    min-height: 52px;
    padding-block: 11px;
  }

  body.user-login-blue-page .auth-remember-row {
    margin-bottom: 14px;
  }

  body.user-login-blue-page .auth-form-card .auth-submit {
    min-height: 48px;
  }

  body.user-login-blue-page .auth-forgot-link {
    margin-top: 10px;
  }

  body.user-login-blue-page .auth-form-divider {
    margin: 12px 0 10px;
  }

  body.user-login-blue-page .auth-account-options {
    gap: 8px;
  }

  body.user-login-blue-page .auth-account-options > a {
    min-height: 58px;
  }
}

/* ==========================================================================
   Home page — premium full-page concept v2
   Frontend presentation only; every selector remains scoped to the homepage.
   ========================================================================== */

body.home-blue-page {
  background: #fff;
}

body.home-blue-page .hero {
  padding: clamp(34px, 4.5vw, 66px) 0 0;
  background:
    radial-gradient(circle at 88% 2%, rgba(74, 144, 245, 0.19), transparent 24rem),
    radial-gradient(circle at 7% 60%, rgba(219, 234, 254, 0.58), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f9fcff 100%);
}

body.home-blue-page .hero::after {
  content: "";
  position: absolute;
  inset: auto -80px 90px auto;
  width: 330px;
  height: 330px;
  pointer-events: none;
  border: 1px solid rgba(21, 94, 239, 0.16);
  border-radius: 76px;
  transform: rotate(18deg);
}

body.home-blue-page .hero-container {
  width: min(100% - 48px, 1400px);
  max-width: 1400px;
}

body.home-blue-page .hero-intro-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(34px, 4vw, 72px);
}

body.home-blue-page .hero-copy {
  padding: clamp(16px, 2vw, 30px) 0 clamp(78px, 7vw, 108px);
}

body.home-blue-page .hero-title {
  max-width: 690px;
  font-size: clamp(3.25rem, 4.85vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.064em;
}

body.home-blue-page .hero-title .highlight {
  display: inline;
  margin: 0;
  font-size: 1em;
  letter-spacing: inherit;
}

body.home-blue-page .hero-title .hero-secondary-line {
  display: block;
  margin-top: 16px;
  font-size: 0.36em;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

body.home-blue-page .hero-subtitle {
  max-width: 580px;
  font-size: clamp(0.98rem, 1.12vw, 1.12rem);
  line-height: 1.72;
}

body.home-blue-page .hero-visual-frame {
  aspect-ratio: 1.5;
  border-color: rgba(171, 202, 243, 0.9);
  border-radius: 32px;
  box-shadow:
    0 36px 80px rgba(8, 47, 111, 0.14),
    0 3px 12px rgba(8, 47, 111, 0.06);
}

body.home-blue-page .hero-visual-frame::after {
  border-width: 9px;
}

body.home-blue-page .hero .search-container {
  width: min(calc(100% - 56px), 1180px);
  margin: clamp(-70px, -4.5vw, -48px) auto 0 !important;
  padding: 20px 22px 22px !important;
  border-color: rgba(191, 219, 254, 0.92);
  border-radius: 18px;
  box-shadow:
    0 30px 70px rgba(7, 45, 105, 0.14),
    0 2px 10px rgba(7, 45, 105, 0.05);
}

body.home-blue-page .hero .stats {
  margin-top: 28px !important;
  padding: 20px 12px;
  border: 1px solid var(--th-line);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(11, 52, 112, 0.06);
}

body.home-blue-page .section-container {
  padding-block: 0;
}

body.home-blue-page .specialties,
body.home-blue-page .how-it-works,
body.home-blue-page .why-choose-us,
body.home-blue-page .testimonials,
body.home-blue-page .apps-section {
  padding: clamp(70px, 7.5vw, 104px) 0;
}

body.home-blue-page .specialties,
body.home-blue-page .why-choose-us,
body.home-blue-page .apps-section {
  background:
    radial-gradient(circle at 92% 6%, rgba(147, 197, 253, 0.17), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

body.home-blue-page .section-header {
  margin-bottom: 38px;
}

body.home-blue-page .section-badge,
body.home-blue-page .cta-badge {
  padding: 7px 13px;
  margin-bottom: 18px;
  color: var(--th-blue-700);
  background: rgba(239, 246, 255, 0.92);
  border-color: var(--th-blue-200);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.home-blue-page .section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.045em;
}

body.home-blue-page .section-subtitle {
  max-width: 680px;
  font-size: 1rem;
}

body.home-blue-page .specialties-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

body.home-blue-page .specialty-card {
  min-height: 230px;
  padding: 26px 22px;
  border-radius: 18px;
}

body.home-blue-page .specialty-icon-wrapper {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border: 1px solid var(--th-blue-100);
  border-radius: 17px;
  box-shadow: 0 12px 25px rgba(21, 94, 239, 0.09);
}

body.home-blue-page .specialty-name {
  font-size: 1.12rem;
}

body.home-blue-page .specialty-stats {
  padding-top: 12px;
  border-top: 1px solid var(--th-line);
}

body.home-blue-page .specialty-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  top: 20px;
  right: 18px;
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border-radius: 50%;
}

body.home-blue-page .featured-doctors {
  background: #fff;
}

body.home-blue-page .doctors-header {
  width: min(100% - 48px, 1400px);
  padding-top: clamp(70px, 7.5vw, 104px);
  margin-bottom: 34px;
}

body.home-blue-page .doctors-header > div {
  max-width: 760px;
}

body.home-blue-page .doctors-header .section-subtitle {
  margin-left: 0;
}

body.home-blue-page .view-all-btn {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 11px;
  box-shadow: 0 10px 22px rgba(21, 94, 239, 0.16);
}

body.home-blue-page .doctors-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(100% - 48px, 1400px);
  padding-bottom: clamp(70px, 7.5vw, 104px);
}

body.home-blue-page .doctor-card {
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow:
    0 18px 46px rgba(11, 52, 112, 0.09),
    0 2px 8px rgba(11, 52, 112, 0.04);
}

body.home-blue-page .doctor-card::after {
  content: "";
  position: absolute;
  top: -68px;
  left: -52px;
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: 0.6;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.24), transparent 68%);
}

body.home-blue-page .premium-card::before {
  height: 3px;
  background: linear-gradient(90deg, var(--th-blue-700), #70a7ff);
}

body.home-blue-page .doctor-badge {
  top: 17px;
  right: 18px;
  padding: 6px 10px;
  color: var(--th-blue-800);
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-200);
  font-size: 0.7rem;
}

body.home-blue-page .doctor-content {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-content: start;
  gap: 0 18px;
  height: 100%;
  padding: 54px 25px 24px;
}

body.home-blue-page .doctor-avatar {
  z-index: 1;
  grid-column: 1;
  width: 92px;
  height: 92px;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--th-blue-200);
  border-radius: 24px;
  box-shadow: 0 13px 28px rgba(11, 52, 112, 0.12);
}

body.home-blue-page .doctor-image {
  border-radius: 19px;
}

body.home-blue-page .verification-badge {
  top: auto;
  right: -7px;
  bottom: -7px;
  width: 27px;
  height: 27px;
  color: #fff !important;
  background: var(--th-blue-700);
  border: 3px solid #fff;
}

body.home-blue-page .doctor-info {
  min-width: 0;
}

body.home-blue-page .doctor-name {
  margin: 0 0 5px;
  font-size: 1.2rem;
  line-height: 1.2;
}

body.home-blue-page .doctor-specialty {
  margin-bottom: 14px;
  font-size: 0.86rem;
}

body.home-blue-page .doctor-details {
  margin-bottom: 7px;
}

body.home-blue-page .doctor-info .detail-item {
  min-width: 0;
  margin-bottom: 7px;
  color: var(--th-copy);
  font-size: 0.8rem;
  line-height: 1.35;
}

body.home-blue-page .doctor-info .detail-item i {
  width: 14px;
  flex: 0 0 14px;
  color: var(--th-blue-600);
  text-align: center;
}

body.home-blue-page .doctor-info .detail-item span,
body.home-blue-page .doctor-info .detail-item a {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.home-blue-page .doctor-info .rating {
  flex-wrap: wrap;
  gap: 5px;
  margin: 13px 0 11px;
  font-size: 0.8rem;
}

body.home-blue-page .doctor-info .stars {
  color: #f4b740;
}

body.home-blue-page .doctor-info .availability-tags {
  margin: 0;
}

body.home-blue-page .availability-badge.video {
  padding: 6px 10px;
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-100);
}

body.home-blue-page .doctor-actions {
  grid-column: 1 / -1;
  align-self: end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--th-line);
}

body.home-blue-page .book-btn {
  min-height: 43px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
}

body.home-blue-page .how-it-works {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.3), #fff),
    #fff;
}

body.home-blue-page .how-it-works .steps-grid {
  padding: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(11, 52, 112, 0.07);
}

body.home-blue-page .how-it-works .step-card {
  padding: 26px 28px;
}

body.home-blue-page .why-choose-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

body.home-blue-page .choose-card {
  min-height: 300px;
  padding: 28px 24px;
  border-radius: 18px;
}

body.home-blue-page .choose-icon {
  width: 58px;
  height: 58px;
  border: 1px solid var(--th-blue-100);
  border-radius: 17px;
}

body.home-blue-page .choose-stats span,
body.home-blue-page .step-features span {
  color: var(--th-blue-700);
}

body.home-blue-page .testimonials {
  position: relative;
  background:
    radial-gradient(circle at 84% 52%, rgba(147, 197, 253, 0.18), transparent 22rem),
    #fff;
}

body.home-blue-page .testimonials::after {
  content: "";
  position: absolute;
  right: 2vw;
  bottom: 56px;
  width: 210px;
  aspect-ratio: 0.9;
  opacity: 0.22;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--th-blue-400, #60a5fa) 1.3px, transparent 1.4px);
  background-size: 9px 9px;
  clip-path: polygon(48% 0, 69% 8%, 86% 26%, 98% 50%, 87% 72%, 64% 84%, 48% 100%, 36% 80%, 17% 68%, 4% 49%, 13% 28%, 31% 14%);
}

body.home-blue-page .testimonials-slider {
  max-width: 900px;
}

body.home-blue-page .testimonial-card {
  padding: clamp(28px, 4vw, 46px);
  border-radius: 22px;
}

body.home-blue-page .quote-icon {
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-100);
}

body.home-blue-page .emergency-banner {
  padding: 24px 0;
  background:
    linear-gradient(100deg, rgba(7, 29, 73, 0.98), rgba(21, 94, 239, 0.96)),
    var(--th-blue-900);
  border-block: 1px solid rgba(147, 197, 253, 0.28);
}

body.home-blue-page .emergency-content {
  width: min(100% - 48px, 1400px);
  max-width: 1400px;
  padding-inline: 0;
}

body.home-blue-page .emergency-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-size: 1.65rem;
}

body.home-blue-page .apps-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 45%, rgba(96, 165, 250, 0.24), transparent 25rem),
    linear-gradient(180deg, #f8fbff, #fff);
}

body.home-blue-page .apps-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  gap: clamp(48px, 8vw, 120px);
  justify-content: initial;
  width: min(100%, 1180px);
  margin-inline: auto;
}

body.home-blue-page .apps-text {
  min-width: 0;
}

body.home-blue-page .apps-text .section-subtitle {
  margin-left: 0;
}

body.home-blue-page .app-features {
  gap: 12px;
  margin-top: 26px;
}

body.home-blue-page .app-feature {
  gap: 12px;
  color: var(--th-blue-900);
  font-weight: 650;
}

body.home-blue-page .app-feature > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--th-blue-700);
  background: #fff;
  border: 1px solid var(--th-blue-100);
  border-radius: 10px;
}

body.home-blue-page .download-buttons {
  flex-wrap: wrap;
  margin-top: 28px;
}

body.home-blue-page .download-btn {
  display: inline-flex;
  transition: transform 180ms ease, filter 180ms ease;
}

body.home-blue-page .download-btn:hover {
  filter: drop-shadow(0 10px 16px rgba(11, 52, 112, 0.16));
  transform: translateY(-2px);
}

body.home-blue-page .apps-visual {
  min-width: 0;
  justify-content: center;
  perspective: 1100px;
}

body.home-blue-page .phone-mockup {
  width: clamp(330px, 28vw, 390px);
  transform: rotate(4.5deg);
  transform-origin: 50% 80%;
}

body.home-blue-page .phone-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.35;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #081329 0%, #071d49 42%, #020713 100%);
  border: 2px solid rgba(128, 173, 239, 0.7) !important;
  border-radius: 54px;
  box-shadow:
    0 52px 90px rgba(7, 29, 73, 0.24),
    0 16px 36px rgba(7, 29, 73, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

body.home-blue-page .phone-frame::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 50%;
  width: 106px;
  height: 28px;
  background: #020713;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

body.home-blue-page .phone-frame::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 29px;
  left: calc(50% + 27px);
  width: 7px;
  height: 7px;
  background: #133f7a;
  border: 1px solid #1f6fff;
  border-radius: 50%;
  transform: translateX(-50%);
}

body.home-blue-page .phone-screen {
  position: relative;
  height: 100%;
  background:
    radial-gradient(circle at 90% 4%, rgba(147, 197, 253, 0.28), transparent 12rem),
    linear-gradient(180deg, #f7fbff 0%, #fff 48%, #f7fbff 100%);
  border-radius: 42px;
}

body.home-blue-page .app-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 20px 15px;
  color: var(--th-blue-950);
  font-size: 0.91rem;
}

body.home-blue-page .app-header {
  min-height: 28px;
  margin: 0 2px 18px;
  padding-top: 3px;
  color: var(--th-blue-950);
  font-size: 0.72rem;
  font-weight: 800;
}

body.home-blue-page .phone-app-brand {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

body.home-blue-page .phone-app-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--th-blue-700);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(21, 94, 239, 0.2);
}

body.home-blue-page .phone-app-brand strong,
body.home-blue-page .phone-app-brand span {
  display: block;
}

body.home-blue-page .phone-app-brand strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

body.home-blue-page .phone-app-brand > div:nth-child(2) span {
  margin-top: 2px;
  color: var(--th-muted);
  font-size: 0.65rem;
}

body.home-blue-page .phone-notification {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--th-blue-800);
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: 11px;
}

body.home-blue-page .phone-notification span {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background: var(--th-blue-600);
  border: 1px solid #fff;
  border-radius: 50%;
}

body.home-blue-page .phone-greeting {
  margin-bottom: 15px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.2), transparent 6rem),
    linear-gradient(135deg, var(--th-blue-900), var(--th-blue-700));
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(21, 94, 239, 0.18);
}

body.home-blue-page .phone-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home-blue-page .phone-greeting h4 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.home-blue-page .phone-greeting p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
}

body.home-blue-page .quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

body.home-blue-page .quick-action {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px 5px 10px;
  color: var(--th-blue-800);
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(11, 52, 112, 0.05);
  font-size: 0.61rem;
  font-weight: 750;
}

body.home-blue-page .quick-action > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-inline: auto;
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border-radius: 10px;
  font-size: 0.82rem;
}

body.home-blue-page .phone-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

body.home-blue-page .phone-section-heading h5 {
  margin: 0;
  color: var(--th-blue-950);
  font-size: 0.8rem;
  font-weight: 800;
}

body.home-blue-page .phone-section-heading > span {
  padding: 4px 7px;
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.home-blue-page .appointment-card {
  gap: 11px;
  padding: 11px;
  background: #fff;
  border-color: var(--th-line);
  border-radius: 15px 15px 0 0;
  box-shadow: 0 10px 24px rgba(11, 52, 112, 0.06);
}

body.home-blue-page .phone-doctor-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border: 1px solid var(--th-blue-100);
  border-radius: 13px;
  font-size: 1.05rem;
}

body.home-blue-page .appointment-info {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: var(--th-muted);
  font-size: 0.61rem;
}

body.home-blue-page .phone-doctor-name {
  color: var(--th-blue-950);
  font-size: 0.75rem;
}

body.home-blue-page .phone-appointment-time {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 3px;
  color: var(--th-blue-700);
  font-weight: 700;
}

body.home-blue-page .phone-join-call {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  color: #fff;
  background: var(--th-blue-700);
  border-radius: 0 0 13px 13px;
  box-shadow: 0 10px 20px rgba(21, 94, 239, 0.17);
  font-size: 0.65rem;
  font-weight: 800;
}

body.home-blue-page .phone-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

body.home-blue-page .phone-health-card {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--th-line);
  border-radius: 13px;
}

body.home-blue-page .phone-health-card > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  color: var(--th-blue-700);
  background: var(--th-blue-50);
  border-radius: 9px;
  font-size: 0.7rem;
}

body.home-blue-page .phone-health-card strong,
body.home-blue-page .phone-health-card small {
  display: block;
}

body.home-blue-page .phone-health-card strong {
  color: var(--th-blue-950);
  font-size: 0.67rem;
}

body.home-blue-page .phone-health-card small {
  color: var(--th-muted);
  font-size: 0.54rem;
}

body.home-blue-page .phone-app-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: auto;
  padding: 10px 4px 1px;
  border-top: 1px solid var(--th-line);
}

body.home-blue-page .phone-app-nav > div {
  display: grid;
  gap: 4px;
  justify-items: center;
  color: #8794aa;
  font-size: 0.5rem;
}

body.home-blue-page .phone-app-nav i {
  font-size: 0.78rem;
}

body.home-blue-page .phone-app-nav .active {
  color: var(--th-blue-700);
  font-weight: 800;
}

body.home-blue-page .phone-shadow {
  bottom: -32px;
  height: 34px;
  background: rgba(7, 29, 73, 0.2);
  filter: blur(18px);
}

body.home-blue-page .cta-section {
  padding: clamp(70px, 7.5vw, 104px) 0;
  background: #fff;
}

body.home-blue-page .cta-content {
  position: relative;
  padding: clamp(42px, 5vw, 68px);
  background:
    radial-gradient(circle at 90% 8%, rgba(96, 165, 250, 0.25), transparent 19rem),
    linear-gradient(135deg, #f5f9ff 0%, #fff 70%);
  border-radius: 26px;
}

body.home-blue-page .cta-content::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 22px;
  width: 120px;
  height: 80px;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(circle, var(--th-blue-500) 1.2px, transparent 1.3px);
  background-size: 9px 9px;
}

body.home-blue-page .cta-features .feature-item {
  color: var(--th-copy);
}

@media (max-width: 1199.98px) {
  body.home-blue-page .hero-intro-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  }

  body.home-blue-page .specialties-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.home-blue-page .doctors-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-blue-page .why-choose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body.home-blue-page .hero-intro-grid {
    grid-template-columns: 1fr;
  }

  body.home-blue-page .hero-copy {
    padding-bottom: 22px;
  }

  body.home-blue-page .hero .search-container {
    width: calc(100% - 30px);
  }

  body.home-blue-page .apps-content {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
    gap: 38px;
  }

  body.home-blue-page .phone-mockup {
    width: min(100%, 350px);
  }
}

@media (max-width: 767.98px) {
  body.home-blue-page .hero {
    padding-top: 28px;
  }

  body.home-blue-page .hero-container,
  body.home-blue-page .doctors-header,
  body.home-blue-page .doctors-container,
  body.home-blue-page .emergency-content {
    width: calc(100% - 28px);
  }

  body.home-blue-page .hero-copy {
    padding-top: 8px;
  }

  body.home-blue-page .hero .search-container {
    width: 100%;
    margin-top: 16px !important;
  }

  body.home-blue-page .specialties-grid,
  body.home-blue-page .doctors-container,
  body.home-blue-page .why-choose-grid {
    grid-template-columns: 1fr;
  }

  body.home-blue-page .doctors-header {
    align-items: flex-start;
    gap: 20px;
  }

  body.home-blue-page .doctor-content {
    grid-template-columns: 80px minmax(0, 1fr);
    padding-inline: 20px;
  }

  body.home-blue-page .doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 21px;
  }

  body.home-blue-page .doctor-image {
    border-radius: 16px;
  }

  body.home-blue-page .apps-content {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  body.home-blue-page .apps-text {
    text-align: center;
  }

  body.home-blue-page .apps-text .section-badge {
    margin-inline: auto;
  }

  body.home-blue-page .apps-text .section-subtitle {
    margin-inline: auto;
  }

  body.home-blue-page .app-features {
    width: min(100%, 430px);
    margin-inline: auto;
    text-align: left;
  }

  body.home-blue-page .download-buttons {
    justify-content: center;
  }

  body.home-blue-page .phone-mockup {
    width: min(88vw, 330px);
    transform: none;
  }

  body.home-blue-page .phone-frame {
    border-radius: 48px;
  }

  body.home-blue-page .emergency-content {
    gap: 16px;
  }
}

@media (max-width: 575.98px) {
  body.home-blue-page .hero-container,
  body.home-blue-page .section-container,
  body.home-blue-page .doctors-header,
  body.home-blue-page .doctors-container,
  body.home-blue-page .emergency-content {
    width: calc(100% - 24px);
  }

  body.home-blue-page .apps-section .section-container {
    padding-inline: 0;
  }

  body.home-blue-page .hero-title {
    font-size: clamp(2.55rem, 13vw, 3.65rem);
  }

  body.home-blue-page .hero-title .highlight {
    font-size: 1em;
  }

  body.home-blue-page .hero-title .hero-secondary-line {
    font-size: 0.4em;
  }

  body.home-blue-page .hero-visual-frame {
    aspect-ratio: 1.16;
  }

  body.home-blue-page .hero .stats {
    padding: 0 12px;
  }

  body.home-blue-page .specialty-card {
    min-height: 0;
  }

  body.home-blue-page .doctors-header {
    display: grid;
  }

  body.home-blue-page .view-all-btn {
    width: fit-content;
  }

  body.home-blue-page .doctor-card {
    min-height: 0;
  }

  body.home-blue-page .doctor-content {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0 14px;
    padding: 50px 18px 20px;
  }

  body.home-blue-page .doctor-avatar {
    width: 72px;
    height: 72px;
  }

  body.home-blue-page .doctor-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.home-blue-page .phone-mockup {
    width: min(92vw, 340px);
  }

  body.home-blue-page .phone-frame {
    padding: 10px;
    border-radius: 44px;
  }

  body.home-blue-page .phone-screen {
    border-radius: 35px;
  }

  body.home-blue-page .app-interface {
    padding-inline: 16px;
    font-size: 0.84rem;
  }

  body.home-blue-page .phone-frame::before {
    top: 18px;
    width: 92px;
    height: 25px;
  }

  body.home-blue-page .phone-frame::after {
    top: 26px;
  }

  body.home-blue-page .cta-content {
    padding: 34px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-blue-page .hero-visual-orbit,
  body.home-blue-page .floating-shape,
  body.home-blue-page .step-pulse,
  body.home-blue-page .icon-glow,
  body.home-blue-page .emergency-pulse {
    animation: none !important;
  }
}
