/* =============================================
   RELIER CRM - LOGIN PAGE STYLES
   Complete override of Metronic framework
   ============================================= */

/* ================================================
   CRITICAL: Force dark background — override
   all Metronic/Bootstrap body styles
   ================================================ */
body.relier-login-page,
body.relier-login-page[data-kt-name="metronic"],
#kt_body.relier-login-page {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  width: 100% !important;
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: #061410 !important;
  background-image: none !important;
  background-color: #061410 !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

/* Dark gradient overlay rendered on a pseudo-element so it
   doesn't fight with the forced background-color above     */
body.relier-login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(160deg, #010d08 0%, #041a0e 25%, #0a2e18 55%, #061f10 80%, #010d08 100%),
    radial-gradient(ellipse at 18% 25%, rgba(34, 197, 94, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Dot-grid texture */
body.relier-login-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(34, 197, 94, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* ================================================
   PAGE STRUCTURE
   ================================================ */
.relier-login-wrapper {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: auto;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ================================================
   LEFT HERO SECTION
   ================================================ */
.relier-login-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 16px 72px;
  position: relative;
  min-width: 0;
}

/* Badge */
.relier-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #4ade80;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  width: fit-content;
  margin-bottom: 18px;
}

.relier-hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
  animation: rl-pulse 2s ease-in-out infinite;
}

@keyframes rl-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

/* Hero Title */
.relier-hero-title {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 800;
  color: #ecfdf5;
  line-height: 1.14;
  margin: 0 0 14px 0;
  letter-spacing: -1.5px;
}

.relier-hero-title .highlight {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 60%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.relier-hero-subtitle {
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(167, 243, 208, 0.55);
  max-width: 440px;
  margin: 0 0 20px 0;
  font-weight: 400;
}

/* Feature Pills row */
.relier-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.relier-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: default;
}

.relier-feature-pill:hover {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.07);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.relier-feature-pill .pill-accent {
  color: #4ade80;
  font-weight: 700;
  font-size: 14px;
}

.relier-feature-pill.pill-highlight {
  background: rgba(34, 197, 94, 0.11);
  border-color: rgba(34, 197, 94, 0.24);
  color: #a7f3d0;
}

.relier-feature-pill.pill-highlight .pill-tag {
  background: #22c55e;
  color: #052e16;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ================================================
   RIGHT — LOGIN CARD SECTION
   ================================================ */
.relier-login-card-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 56px 40px 40px;
  flex-shrink: 0;
  width: 480px;
}

/* The Card */
.relier-login-card {
  width: 100%;
  max-width: 400px;
  /* Solid dark card — works on both light & dark backgrounds */
  background: rgba(10, 26, 18, 0.82);
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 22px;
  padding: 44px 36px 40px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 32px 72px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle green glow line at the top of the card */
.relier-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(34, 197, 94, 0.55) 50%,
      transparent 100%);
}

/* Inner ambient glow */
.relier-login-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

/* Logo */
.relier-login-card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.relier-login-card-logo img {
  height: 48px;
  object-fit: contain;
  max-width: 200px;
}

/* Card Title */
.relier-login-card-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #ecfdf5;
  margin: 0 0 5px 0;
  letter-spacing: -0.3px;
}

/* Card Subtitle */
.relier-login-card-subtitle {
  text-align: center;
  font-size: 13.5px;
  color: rgba(167, 243, 208, 0.4);
  margin: 0 0 30px 0;
  font-weight: 400;
  line-height: 1.5;
}

/* ================================================
   FORM FIELDS
   ================================================ */
.relier-form-group {
  margin-bottom: 18px;
  position: relative;
}

.relier-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(167, 243, 208, 0.5);
  margin-bottom: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* The input — override Metronic completely */
.relier-login-page .relier-form-group .relier-input,
.relier-login-page .relier-input {
  width: 100% !important;
  padding: 13px 16px !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  color: #ecfdf5 !important;
  background: rgba(2, 20, 10, 0.7) !important;
  border: 1px solid rgba(34, 197, 94, 0.16) !important;
  border-radius: 12px !important;
  outline: none !important;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.relier-login-page .relier-input::placeholder {
  color: rgba(167, 243, 208, 0.22) !important;
}

.relier-login-page .relier-input:hover {
  border-color: rgba(34, 197, 94, 0.3) !important;
  background: rgba(2, 20, 10, 0.85) !important;
}

.relier-login-page .relier-input:focus {
  border-color: rgba(34, 197, 94, 0.6) !important;
  background: rgba(2, 20, 10, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1), 0 0 18px rgba(34, 197, 94, 0.08) !important;
}

/* Password wrapper */
.relier-password-wrapper {
  position: relative;
}

.relier-login-page .relier-password-wrapper .relier-input {
  padding-right: 48px !important;
}

.relier-password-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  color: rgba(167, 243, 208, 0.3);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.relier-password-toggle:hover {
  color: rgba(167, 243, 208, 0.75);
}

/* Form options row */
.relier-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  margin-top: 4px;
}

.relier-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(167, 243, 208, 0.4);
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.relier-remember-label:hover {
  color: rgba(167, 243, 208, 0.7);
}

.relier-remember-checkbox {
  width: 15px;
  height: 15px;
  accent-color: #22c55e;
  cursor: pointer;
  flex-shrink: 0;
}

.relier-forgot-link,
.relier-forgot-link:visited {
  font-size: 13px;
  color: #4ade80 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.relier-forgot-link:hover {
  color: #86efac !important;
  text-decoration: none !important;
}

/* ================================================
   SUBMIT BUTTON
   ================================================ */
.relier-login-page .relier-login-btn,
#tapps-main_login_btn.relier-login-btn {
  width: 100% !important;
  padding: 15px 24px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  color: #052e16 !important;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border: none !important;
  border-radius: 13px !important;
  cursor: pointer !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  position: relative !important;
  overflow: hidden !important;
  letter-spacing: 0.2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* Shimmer sweep */
.relier-login-page .relier-login-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}

.relier-login-page .relier-login-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.32), 0 4px 12px rgba(34, 197, 94, 0.18) !important;
}

.relier-login-page .relier-login-btn:hover::after {
  left: 110%;
}

.relier-login-page .relier-login-btn:active {
  transform: translateY(0) !important;
}

.relier-login-page .relier-login-btn:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Indicator states */
.relier-login-btn .indicator-progress {
  display: none;
}

.relier-login-btn[data-kt-indicator="on"] .indicator-label {
  display: none;
}

/* Hero Visit Website Button */
.relier-hero-action {
  margin-bottom: 32px;
}

.relier-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(90deg, #10b981, #059669);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.3s ease;
}

.relier-hero-btn-primary:hover {
  background: linear-gradient(90deg, #34d399, #10b981);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

.relier-hero-btn-primary svg {
  transition: transform 0.3s ease;
}

.relier-hero-btn-primary:hover svg {
  transform: translate(3px, -3px);
}

.relier-login-btn[data-kt-indicator="on"] .indicator-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.relier-login-btn .spinner-border {
  width: 16px !important;
  height: 16px !important;
  border-width: 2px !important;
  border-color: #052e16 !important;
  border-right-color: transparent !important;
}

/* ================================================
   PLATFORM SLIDER — bottom marquee
   ================================================ */
.relier-platform-slider-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4px 0 10px;
  overflow: hidden;
  border-top: 1px solid rgba(34, 197, 94, 0.07);
  flex-shrink: 0;
}

.relier-platform-slider-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: rl-scroll 16s linear infinite;
}

.relier-platform-slider-track:hover {
  animation-play-state: paused;
}

.relier-platform-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 44px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.relier-platform-item span {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(167, 243, 208, 0.22);
  letter-spacing: 0.8px;
  transition: all 0.4s ease;
  display: inline-block;
  padding: 0;
  border: none;
  border-radius: 0;
}

.relier-platform-item:hover span {
  color: rgba(167, 243, 208, 0.55);
}

.relier-platform-item.active span {
  color: #ecfdf5;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Fade edges */
.relier-platform-slider-section::before,
.relier-platform-slider-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 140px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.relier-platform-slider-section::before {
  left: 0;
  background: linear-gradient(to right, #061410, transparent);
}

.relier-platform-slider-section::after {
  right: 0;
  background: linear-gradient(to left, #061410, transparent);
}

@keyframes rl-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ================================================
   PLATFORM CARDS — hero section grid
   ================================================ */
.relier-platform-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  max-width: 760px;
  /* Wider to fit bigger cards */
}

/* Single card */
.relier-pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: 18px;
  min-width: 124px;
  flex: 1 1 124px;
  max-width: 145px;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.relier-pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.relier-pcard:hover {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.relier-pcard:hover::before {
  opacity: 1;
}

/* Logo wrapper */
.relier-pcard-logo-wrap {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: #000;
  /* Solid dark background for transparent logos to match the black ones */
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  /* Inner shadow to give a premium app icon feel */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.relier-pcard-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

/* Platform name */
.relier-pcard-name {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(167, 243, 208, 0.7);
  margin: 0;
  letter-spacing: 0.3px;
  text-align: center;
}

/* Action buttons row — horizontal, icon-only */
.relier-pcard-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

/* Individual download button — square icon pill */
.relier-pcard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  /* Hide text, keep SVG icon fully visible */
  font-size: 0;
  /* collapses any text nodes */
  line-height: 0;
  text-decoration: none !important;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Ensure SVG inside keeps its colour and size */
.relier-pcard-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Android — green tint */
.relier-pcard-btn--android {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.relier-pcard-btn--android:hover {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.45);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* iOS — silver/blue tint */
.relier-pcard-btn--ios {
  background: rgba(148, 163, 184, 0.1);
  color: rgba(203, 213, 225, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.relier-pcard-btn--ios:hover {
  background: rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Web — outline style */
.relier-pcard-btn--web {
  background: transparent;
  color: rgba(167, 243, 208, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.relier-pcard-btn--web:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(167, 243, 208, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ================================================
   RESPONSIVE — TABLET  (≤ 1100px)
   ================================================ */
@media (max-width: 1100px) {
  .relier-login-hero {
    padding: 50px 36px 50px 48px;
  }

  .relier-login-card-section {
    padding: 40px 36px;
    width: 440px;
  }
}

/* ================================================
   RESPONSIVE — TABLET (≤ 880px) stacked
   ================================================ */
@media (max-width: 880px) {
  .relier-login-wrapper {
    flex-direction: column;
    min-height: auto;
    padding-bottom: 0;
  }

  .relier-login-hero {
    padding: 40px 28px 16px;
    align-items: center;
    text-align: center;
    flex: none;
  }

  .relier-hero-badge {
    margin: 0 auto 24px;
  }

  .relier-hero-title {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    letter-spacing: -1px;
  }

  .relier-hero-subtitle {
    font-size: 15px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .relier-hero-features {
    justify-content: center;
  }

  .relier-platform-cards {
    justify-content: center;
    max-width: 100%;
  }

  .relier-pcard {
    max-width: 120px;
  }

  .relier-login-card-section {
    width: 100%;
    padding: 16px 28px 44px;
    justify-content: center;
  }

  .relier-login-card {
    max-width: 480px;
  }
}

/* ================================================
   RESPONSIVE — MOBILE (≤ 540px)
   ================================================ */
@media (max-width: 540px) {
  .relier-login-hero {
    padding: 36px 20px 20px;
  }

  .relier-hero-title {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .relier-hero-subtitle {
    font-size: 14px;
  }

  .relier-hero-features {
    flex-direction: column;
    align-items: center;
  }

  .relier-platform-cards {
    gap: 8px;
    margin-top: 24px;
  }

  .relier-pcard {
    min-width: 90px;
    max-width: 110px;
    padding: 12px 10px 10px;
  }

  .relier-pcard-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .relier-pcard-logo {
    width: 34px;
    height: 34px;
  }

  .relier-pcard-name {
    font-size: 11px;
  }

  .relier-pcard-btn {
    font-size: 10px;
    padding: 4px 6px;
  }

  .relier-feature-pill {
    font-size: 12.5px;
    padding: 8px 16px;
  }

  .relier-login-card-section {
    padding: 12px 16px 36px;
  }

  .relier-login-card {
    border-radius: 18px;
    padding: 36px 24px 32px;
  }

  .relier-form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .relier-platform-item {
    padding: 12px 28px;
  }

  .relier-platform-item span {
    font-size: 13px;
  }
}