/**
* Troli — Guest / Landing Theme
* Author: Esdy Wanjala
*/

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  --brand:         #FF5E42;
  --brand-dark:    #E84E34;
  --brand-glow:    rgba(255, 94, 66, 0.32);
  --dark:          #0D1B2A;
  --dark-2:        #1A2E42;
  --text:          #1A1A2E;
  --text-muted:    #6B7A8D;
  --surface:       #FFFFFF;
  --surface-warm:  #FBF8F5;
  --surface-alt:   #F3F6FA;
  --radius:        10px;
  --radius-pill:   50px;
  --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-md:     0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:     0 16px 48px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   Fonts
   ========================================================= */
@font-face {
  font-family: "Josefin";
  font-style: normal;
  src: url(../fonts/JosefinSans-Light.eot);
  src: local("Josefin"), local("Josefin"),
    url(../_components/fonts/JosefinSans-Light.eot?#iefix) format("embedded-opentype"),
    url(../_components/fonts/JosefinSans-Light.woff2) format("woff2"),
    url(../_components/fonts/JosefinSans-Light.woff) format("woff"),
    url(../_components/fonts/JosefinSans-Light.ttf) format("truetype");
}
@font-face {
  font-family: "Josefin";
  font-style: normal;
  src: url(../_components/fonts/JosefinSans-Regular.eot);
  src: local("Josefin Regular"), local("Josefin-Regular"),
    url(../_components/fonts/JosefinSans-Regular.eot?#iefix) format("embedded-opentype"),
    url(../_components/fonts/JosefinSans-Regular.woff2) format("woff2"),
    url(../_components/fonts/JosefinSans-Regular.woff) format("woff"),
    url(../_components/fonts/JosefinSans-Regular.ttf) format("truetype");
}
@font-face {
  font-family: "Josefin";
  font-style: normal;
  src: local("Josefin Semi Bold"), local("Josefin-Semi-Bold"),
    url(../_components/fonts/JosefinSans-Regular.woff2) format("woff2");
}

/* =========================================================
   Global Reset / Base
   ========================================================= */
body {
  font-family: "Josefin", sans-serif;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Josefin", sans-serif;
}

p.section-p {
  color: var(--text-muted);
}

/* =========================================================
   Back to Top
   ========================================================= */
.back-to-top {
  position: fixed;
  display: none;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
}
.back-to-top i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: all 0.3s ease;
}
.back-to-top i:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

/* =========================================================
   Header / Navigation
   ========================================================= */
#header {
  transition: all 0.4s ease;
  z-index: 997;
  padding: 14px 0;
  background: var(--surface);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.08);
}

#header.header-scrolled,
#header.header-inner-pages {
  background: var(--surface);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.11);
}

#header .logo {
  font-size: 26px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
}
#header .logo a {
  color: var(--dark);
}
#header .logo img {
  max-height: 36px;
}

/* Desktop nav */
.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu > ul {
  display: flex;
  align-items: center;
}
.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
  padding: 10px 0 10px 24px;
}
.nav-menu a {
  display: block;
  position: relative;
  color: var(--text);
  transition: color 0.25s ease;
  font-size: 14px;
  letter-spacing: 0.4px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
}
.nav-menu a:hover,
.nav-menu .active > a,
.nav-menu li:hover > a {
  color: var(--brand);
}

/* Active underline */
.nav-menu > ul > li.active > a {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}

/* Nav CTA pill */
.nav-cta a {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
  border-bottom: none !important;
}
.nav-cta a:hover {
  background: var(--brand-dark) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px var(--brand-glow) !important;
  transform: translateY(-1px);
}

/* Dropdown */
.nav-menu .drop-down ul {
  border-radius: var(--radius);
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  padding: 10px 0;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: 0.3s;
}
.nav-menu .drop-down:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}
.nav-menu .drop-down li {
  min-width: 180px;
  position: relative;
}
.nav-menu .drop-down ul a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.nav-menu .drop-down ul a:hover,
.nav-menu .drop-down ul .active > a,
.nav-menu .drop-down ul li:hover > a {
  color: var(--brand);
}
.nav-menu .drop-down > a:after {
  content: "\ea99";
  font-family: IcoFont;
  padding-left: 5px;
}
.nav-menu .drop-down .drop-down ul {
  top: 0;
  left: calc(100% - 30px);
}
.nav-menu .drop-down .drop-down:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
}
.nav-menu .drop-down .drop-down > a {
  padding-right: 35px;
}
.nav-menu .drop-down .drop-down > a:after {
  content: "\eaa0";
  font-family: IcoFont;
  position: absolute;
  right: 15px;
}
@media (max-width: 1366px) {
  .nav-menu .drop-down .drop-down ul { left: -90%; }
  .nav-menu .drop-down .drop-down:hover > ul { left: -100%; }
  .nav-menu .drop-down .drop-down > a:after { content: "\ea9d"; }
}

/* =========================================================
   Mobile Navigation
   ========================================================= */
.mobile-nav-toggle {
  position: fixed;
  top: 18px;
  right: 15px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}
.mobile-nav-toggle i {
  color: var(--text);
}
.mobile-nav {
  position: fixed;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 9999;
  overflow-y: auto;
  background: var(--surface);
  transition: ease-in-out 0.2s;
  opacity: 0;
  visibility: hidden;
  border-radius: 14px;
  padding: 16px 0;
  box-shadow: var(--shadow-lg);
}
.mobile-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav a {
  display: block;
  position: relative;
  color: var(--text);
  padding: 12px 24px;
  font-weight: 600;
  outline: none;
}
.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a {
  color: var(--brand);
  text-decoration: none;
}
.mobile-nav .drop-down > a:after {
  content: "\ea99";
  font-family: IcoFont;
  padding-left: 10px;
  position: absolute;
  right: 15px;
}
.mobile-nav .active.drop-down > a:after {
  content: "\eaa1";
}
.mobile-nav .drop-down > a {
  padding-right: 35px;
}
.mobile-nav .drop-down ul {
  display: none;
  overflow: hidden;
}
.mobile-nav .drop-down li {
  padding-left: 20px;
}
.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 9997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(13, 27, 42, 0.55);
  overflow: hidden;
  display: none;
  transition: ease-in-out 0.2s;
  backdrop-filter: blur(2px);
}
.mobile-nav-active {
  overflow: hidden;
}
.mobile-nav-active .mobile-nav {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-active .mobile-nav-toggle i {
  color: var(--brand);
}

/* =========================================================
   CTA Buttons
   ========================================================= */
.btn-cta-primary {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 2px solid var(--brand);
  transition: all 0.25s ease;
  line-height: 1;
}
.btn-cta-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 8px 24px var(--brand-glow);
  transform: translateY(-2px);
}

.btn-cta-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  padding: 13px 34px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
  line-height: 1;
}
.btn-cta-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-cta-dark {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 2px solid var(--dark);
  transition: all 0.25s ease;
  line-height: 1;
}
.btn-cta-dark:hover {
  background: var(--dark-2);
  border-color: var(--dark-2);
  color: #fff;
  transform: translateY(-2px);
}

/* Legacy aliases (keep old selectors working) */
.cta-button-dark {
  font-family: "Josefin", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  color: #fff;
  border: 2px solid var(--brand);
  background: var(--brand);
}
.cta-button-dark:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 6px 20px var(--brand-glow);
}
.cta-button-light {
  font-family: "Josefin", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  color: var(--brand);
  border: 2px solid var(--brand);
  background: transparent;
}
.cta-button-light:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px var(--brand-glow);
}

/* =========================================================
   Sections — General
   ========================================================= */
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 48px;
}
.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 18px;
  position: relative;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 1px;
  background: #e0e0e0;
  bottom: 1px;
  left: calc(50% - 30px);
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 28px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  bottom: 0;
  left: calc(50% - 14px);
}
.section-title p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.upper-case {
  text-transform: uppercase;
}

/* =========================================================
   Hero — Dark full-bleed
   ========================================================= */
#hero {
  width: 100%;
  min-height: 88vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 94, 66, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

#hero .container {
  padding-top: 80px;
  padding-bottom: 40px;
}

#hero h1 {
  margin: 0 0 20px 0;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1.5px;
}

#hero h1 em {
  font-style: italic;
  color: var(--brand);
}

#hero h2 {
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 40px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.1px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

.hero-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

#hero .animated {
  animation: up-down 3s ease-in-out infinite alternate-reverse both;
}

#hero .hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  #hero {
    min-height: 100vh;
    text-align: center;
  }
  #hero .animated {
    animation: none;
  }
  #hero .hero-img {
    margin-top: 40px;
  }
  #hero .hero-img img {
    width: 55%;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 34px;
    letter-spacing: -0.5px;
    line-height: 1.2;
  }
  #hero h2 {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  #hero .hero-img img {
    width: 75%;
  }
  #hero .container {
    padding-top: 60px;
  }
}

@media (max-width: 575px) {
  #hero .hero-img img {
    width: 85%;
  }
}

@keyframes up-down {
  0%   { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}

/* =========================================================
   Tagline strip (below hero, optional)
   ========================================================= */
.trust-strip {
  background: var(--surface-warm);
  padding: 20px 0;
  border-top: 1px solid #EDE9E4;
  border-bottom: 1px solid #EDE9E4;
}

.trust-strip .strip-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item i {
  color: var(--brand);
  font-size: 20px;
}

/* =========================================================
   How It Works
   ========================================================= */
.how-it-works {
  background: var(--surface);
}

.hiw-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 36px 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F0EDE8;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}

.hiw-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.hiw-num {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  right: 20px;
  letter-spacing: -4px;
}

.hiw-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  margin-top: 8px;
}

.hiw-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.hiw-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Legacy how-it-works selectors kept for compat */
.how-it-works .hiw-step {
  color: var(--brand);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  opacity: 0.18;
}
.how-it-works .hiw-first,
.how-it-works .hiw-second {
  border-right: none;
  border-bottom: none;
}
.how-it-works .hiw-third,
.how-it-works .hiw-fourth {
  border-right: none;
  border-bottom: none;
}
.cta-pc-mobile { display: none; }

@media (max-width: 768px) {
  .cta-button-mobile { display: none; }
  .cta-pc-mobile {
    display: block;
    text-align: center;
  }
  .hiw-card { margin-bottom: 20px; }
}

/* =========================================================
   Why Use
   ========================================================= */
.why-use {
  background: var(--surface-warm);
}

.why-use .section-title {
  text-align: left;
  padding-bottom: 36px;
}

.why-use .section-title h2::before,
.why-use .section-title h2::after {
  left: 0;
}

.why-use .section-intro {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.feature-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F0EDE8;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  color: var(--brand);
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* Legacy why-use selectors */
.why-use .card {
  border: 1px solid #F0EDE8;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.why-use .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.why-use .why-use-icon {
  color: var(--brand);
  font-size: 40px;
}
.why-use .card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.why-use .card-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   Mid-page CTA Strip
   ========================================================= */
.cta-strip {
  background: var(--brand);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-strip::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-strip h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.btn-cta-white {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 2px solid #fff;
  transition: all 0.25s ease;
}

.btn-cta-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   FAQ / How Troli Helps
   ========================================================= */
.faq {
  background: var(--surface);
}

.faq .accordion-list {
  padding: 0 0 20px 0;
}
.faq .accordion-list ul {
  padding: 0;
  list-style: none;
}
.faq .accordion-list li + li {
  margin-top: 12px;
}
.faq .accordion-list li {
  padding: 22px 24px;
  background: var(--surface-alt);
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.faq .accordion-list li:hover {
  box-shadow: var(--shadow-sm);
  border-color: #E8E4DF;
}
.faq .accordion-list a {
  display: block;
  position: relative;
  font-family: "Josefin", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  padding-right: 36px;
  outline: none;
  color: var(--text);
}
.faq .accordion-list span {
  color: var(--brand);
  font-weight: 800;
  font-size: 16px;
  padding-right: 10px;
}
.faq .accordion-list i {
  font-size: 22px;
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand);
}
.faq .accordion-list p {
  margin-bottom: 0;
  padding: 14px 0 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq .accordion-list .icon-show {
  display: none;
}
.faq .accordion-list a.collapsed {
  color: var(--text);
}
.faq .accordion-list a.collapsed:hover {
  color: var(--brand);
}
.faq .accordion-list a.collapsed .icon-show {
  display: inline-block;
}
.faq .accordion-list a.collapsed .icon-close {
  display: none;
}

@media (max-width: 1024px) {
  .faq .content,
  .faq .accordion-list {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 992px) {
  .faq .content { padding-top: 30px; }
  .faq .accordion-list { padding-bottom: 30px; }
}

/* =========================================================
   Login / Sign-in Page
   ========================================================= */
/* ── Login page ─────────────────────────────────────────────── */
.login-section {
  min-height: 100vh;
  background: var(--surface-warm);
}
.login-container {
  min-height: 100vh;
}

/* Left branding panel */
.login-brand-panel {
  background:
    linear-gradient(160deg, #0D1B2A 0%, #14263A 60%, #0D1B2A 100%);
  background-image:
    radial-gradient(ellipse at 80% 10%, rgba(255, 94, 66, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(32, 154, 238, 0.14) 0%, transparent 50%),
    linear-gradient(160deg, #0D1B2A 0%, #14263A 60%, #0D1B2A 100%);
  color: #fff;
  padding: 64px 56px;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* dot-grid texture */
.login-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* decorative ring bottom-right */
.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 60px solid rgba(255, 94, 66, 0.07);
  pointer-events: none;
}

.login-brand-content {
  position: relative;
  z-index: 1;
  padding-left: 40px;
}

.login-brand-content h2 {
  font-size: 2.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.login-brand-content h2 em {
  font-style: italic;
  color: var(--brand);
}

.login-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}
.login-benefits li {
  padding: 0.55rem 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-benefits li i {
  color: var(--brand);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Right form panel */
.login-form-panel {
  background: var(--surface);
  padding: 40px 20px;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
}
.login-box {
  max-width: 380px;
  margin: 0 auto;
  padding: 0 24px;
}
.login-logo {
  max-height: 46px;
  margin-bottom: 1rem;
}
.login-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
}
.login-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 2rem;
}
.social-btn-wrap {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}
.google-signin-btn {
  width: 100%;
  display: flex;
  justify-content: center;
}
.btn-facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 320px;
  padding: 11px 16px;
  background: #1877F2;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(24, 119, 242, 0.28);
}
.btn-facebook:hover {
  background: #0f5fcc;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.4);
}
.btn-facebook i { font-size: 1.2rem; }

.divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: #bbb;
  font-size: 12px;
  margin: 1rem 0;
  letter-spacing: 0.5px;
}
.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e8e8e8;
}
.divider-or span { padding: 0 0.75rem; }

.login-terms {
  font-size: 12px;
  color: #aaa;
  margin-top: 1.5rem;
  line-height: 1.6;
}
.login-terms a { color: var(--brand); }

@media (max-width: 992px) {
  .login-brand-panel { padding: 48px 36px; }
  .login-brand-content h2 { font-size: 1.75rem; }
}
@media (max-width: 768px) {
  .login-box { max-width: 100%; padding: 20px; }
  .btn-facebook { width: 100%; max-width: 320px; }
}

/* =========================================================
   Footer
   ========================================================= */
#footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
}

#footer .custom-list ul > li > a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  transition: color 0.2s ease;
}
#footer .custom-list li:hover > a {
  color: var(--brand);
}
#footer .logo > a {
  color: #fff;
  font-weight: 700;
}
#footer .footer-heading {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.terms span > a {
  margin-right: 1.25em;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 13px;
  transition: color 0.2s ease;
}
.terms span > a:hover {
  color: var(--brand) !important;
}
