/* ==========================================================================
   PUBLIC LANDING PAGE — /
   --------------------------------------------------------------------------
   Header and footer recreate the praniSheba corporate site
   (www.pranisheba.com.bd): #003300 green top bar, white Montserrat nav with
   green-topped dropdowns, black footer, white copyright row. The body follows
   the praniSheba Prohori page (iot.pranisheba.com.bd): product title badge,
   then alternating white / #E6E6E6 rows of text beside an image.

   Every selector is namespaced `.lp-*` and `.lp-root` re-declares background,
   colour and fonts, so it neither inherits nor alters the dashboard theme.
   Bootstrap and the site's style.css are deliberately not loaded.
   ========================================================================== */

/* Standalone Django page: no global reset is loaded, so provide one here. */
body {
  margin: 0;
}

.lp-root *,
.lp-root *::before,
.lp-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.lp-root {
  --lp-green: #003300;
  --lp-green-light: #00a86b;
  --lp-grey: #e6e6e6;
  --lp-ink: #000000;
  --lp-heading: #212121;
  --lp-footer: #0d0d0d;
  --lp-line: #e5e5e5;
  --lp-heading-font: 'Montserrat', 'Noto Sans Bengali', 'Nirmala UI', sans-serif;
  --lp-body-font: 'Open Sans', 'Noto Sans Bengali', 'Nirmala UI', sans-serif;

  min-height: 100vh;
  background: #ffffff;
  color: var(--lp-ink);
  font-family: var(--lp-body-font);
  font-size: 15px;
  line-height: 26px;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.lp-root a {
  color: inherit;
  text-decoration: none;
}

.lp-root h1,
.lp-root h2,
.lp-root h3,
.lp-root h4 {
  font-family: var(--lp-heading-font);
  font-weight: 700;
  letter-spacing: normal;
  color: var(--lp-heading);
}

.lp-root ul,
.lp-root ol {
  list-style: none;
}

.lp-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Buttons (site .btn-primary / .btn-dark) ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 3px;
  padding: 12px 20px 10px;
  font-family: var(--lp-heading-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 350ms, color 350ms;
}

.lp-root .lp-btn--primary {
  background: var(--lp-green);
  color: #ffffff;
}

.lp-root .lp-btn:hover {
  background: #111111;
  color: #ffffff;
}

.lp-btn:focus-visible,
.lp-root a:focus-visible,
.lp-root button:focus-visible {
  outline: 2px solid var(--lp-green-light);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.lp-topbar {
  background: var(--lp-green);
  padding: 8px 2%;
}

/* Inline flow, right-aligned, like the site's .top-social: items wrap one by
   one (the language switch can break across lines) instead of as flex boxes. */
.lp-topbar-list {
  margin-right: -12px;
  text-align: right;
  line-height: 26px;
}

.lp-topbar-list > li {
  display: inline;
}

/* 14px side padding = the site's 12px padding plus the space it gets between
   inline tags, which React doesn't render. */
.lp-topbar-list > li > a,
.lp-topbar-lang button {
  display: inline-block;
  padding: 0 14px;
  color: #ffffff;
  font-size: 14px;
  line-height: 26px;
}

.lp-topbar-list > li > a:hover {
  text-decoration: underline;
}

.lp-topbar-lang {
  color: #ffffff;
}

.lp-topbar-lang button {
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.lp-blink {
  animation: lp-blink 6s infinite;
}

@keyframes lp-blink {
  0%,
  60% {
    color: #ffffff;
  }
  99% {
    color: transparent;
  }
  100% {
    color: #ffffff;
  }
}

/* ---------- Main nav ---------- */
.lp-header {
  position: relative;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--lp-green);
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2%;
}

.lp-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding: 8px 20px 8px 0;
}

.lp-logo {
  display: block;
  height: 85px;
  width: auto;
  max-width: 85px;
  object-fit: contain;
}

.lp-logo--partner {
  max-width: 140px;
}

.lp-nav-toggle {
  display: none;
}

/* Rows wrap left-aligned after the logos, as on the site (li padding-right 30px). */
.lp-menu {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.lp-menu-item {
  position: relative;
  padding: 0 30px 0 0;
}

/* On the site these links are inline, so their 15px padding never adds height:
   a row is the 40px line plus the 8px bottom padding of dropdown items. */
.lp-menu-item.has-children {
  padding-bottom: 8px;
}

.lp-menu-item > a {
  display: inline-block;
  vertical-align: top;
  font-family: var(--lp-heading-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lp-ink);
  transition: color 350ms;
}

.lp-menu-item:hover > a,
.lp-menu-item.is-open > a {
  color: var(--lp-green);
}

.lp-caret {
  font-size: inherit;
}

/* z-index keeps the open menu above the wrapped second nav row. */
.lp-dropdown {
  display: none;
  position: absolute;
  z-index: 100;
  top: 100%;
  margin-top: -8px;
  left: 0;
  min-width: 220px;
  padding: 6px 20px;
  background: #ffffff;
  border-top: 2px solid var(--lp-green);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

/* Site markup uses Bootstrap's .dropdown-item: regular weight, normal case. */
.lp-dropdown a {
  display: block;
  padding: 6px 24px;
  font-family: var(--lp-body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #212529;
  white-space: nowrap;
}

.lp-dropdown a:hover {
  color: var(--lp-green);
  background: #f8f9fa;
}

/* Sized like the site's "REGISTRATION" button, so the menu wraps the same way. */
.lp-nav-action {
  flex-shrink: 0;
}

.lp-nav-action .lp-btn {
  min-width: 154px;
  padding: 14px 22px 12px;
}

@media (min-width: 992px) {
  .lp-menu-item.has-children:hover > .lp-dropdown {
    display: block;
  }
  .lp-menu-item.is-flipped > .lp-dropdown {
    left: auto;
    right: 30px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .lp-menu-item {
    padding-right: 18px;
  }
  .lp-menu-item > a {
    font-size: 13px;
  }
}

/* Below 992px: logos centred | toggle + action | collapsible menu */
@media (max-width: 991px) {
  .lp-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0;
    padding: 0 15px;
  }

  .lp-logos {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 8px 0 4px;
  }

  .lp-nav-toggle {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    margin: 6px 0 10px;
    background: var(--lp-green);
    color: #ffffff;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
  }

  .lp-nav-action {
    grid-column: 3;
  }

  .lp-menu {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    padding-bottom: 15px;
  }

  .lp-menu.is-open {
    display: flex;
  }

  .lp-menu-item,
  .lp-menu-item.has-children {
    padding: 0;
    border-top: 1px solid var(--lp-line);
  }

  .lp-menu-item > a {
    display: block;
    padding: 4px 0;
    white-space: normal;
  }

  .lp-dropdown {
    position: static;
    margin-top: 0;
    box-shadow: none;
    min-width: 0;
  }

  .lp-menu-item.is-open > .lp-dropdown {
    display: block;
  }

  .lp-dropdown a {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .lp-topbar-list {
    margin-right: 0;
    text-align: center;
  }
}

/* ---------- Body sections (iot.pranisheba.com.bd Home) ----------
   Alternating white / #e6e6e6 bands. Phone-app screenshots sit in one shared
   phone frame (.lp-phone) and dashboard captures in one shared screen frame
   (.lp-screen), so images of different native sizes line up. */
.lp-iot {
  padding: 40px 0;
  background: #ffffff;
  color: #1f2421;
  overflow-x: hidden; /* images slide in from off-row */
}

.lp-iot--grey {
  background: var(--lp-grey);
}

.lp-root .lp-iot h2 {
  margin-bottom: 14px;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #111111;
}

.lp-root .lp-iot h4 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111111;
}

.lp-lead {
  margin-bottom: 12px;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: #2b302d;
}

.lp-img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-container--narrow {
  max-width: 1000px;
}

/* Product title like "praniSheba Prohori [device | v3.0]": a big bold name and
   a dark-ringed green pill. Badge sizes are in em of .lp-version's font size. */
.lp-product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 24px 0 10px;
}

.lp-root .lp-product-title h1 {
  font-family: var(--lp-body-font);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #000000;
}

.lp-version {
  display: inline-flex;
  align-items: center;
  font-family: var(--lp-body-font);
  font-size: 42px;
}

.lp-version-icon {
  position: relative;
  z-index: 1;
  width: 1.95em;
  height: 1.95em;
  flex-shrink: 0;
  border: 0.2em solid #1f4d1f;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 0.06em #ffffff;
  overflow: hidden;
}

.lp-version-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.lp-version-text {
  display: flex;
  align-items: center;
  height: 1.5em;
  margin-left: -0.6em;
  padding: 0 0.85em 0 1.1em;
  border: 0.1em solid #1f4d1f;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: #2d5e2d;
  box-shadow: inset 0 0.07em 0 #ffffff, inset 0 -0.07em 0 #ffffff, inset -0.07em 0 0 #ffffff;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

.lp-row {
  display: grid;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
}

.lp-row--top {
  align-items: start;
}

/* Intro sits right under the product title */
.lp-row--intro {
  padding-top: 10px;
}

.lp-row--7-5 {
  grid-template-columns: 7fr 5fr;
}

.lp-row--6-6 {
  grid-template-columns: 1fr 1fr;
}

/* Portrait device photo: capped so it doesn't tower over the intro text */
.lp-media--device .lp-img {
  max-width: 280px;
  margin: 0 auto;
  /* Transparent PNG: drop-shadow follows the device outline, not the box */
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.lp-heading-center {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.lp-block + .lp-block {
  margin-top: 40px;
}

.lp-checklist {
  display: grid;
  gap: 6px;
  margin: 8px 0 0 4px;
}

.lp-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  color: #2b302d;
}

.lp-checklist svg {
  flex-shrink: 0;
  color: var(--lp-green);
}

/* Three equal cards, each a phone screenshot with its title and text */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lp-card .lp-phone {
  margin-bottom: 18px;
}

/* One phone frame for every app screenshot: same 3:4 shape whatever the
   screenshot's height, cropped from the top-left where the content starts. */
.lp-phone {
  aspect-ratio: 3 / 4;
  border: 1px solid #d9e0dc;
  border-radius: 22px;
  background: #f3f6f4;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.lp-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.lp-phone--single {
  max-width: 300px;
  margin: 0 auto;
}

/* One screen frame for every dashboard capture, all at the column width */
.lp-screen {
  margin-top: 16px;
  border: 1px solid #d9e0dc;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.lp-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-screen figcaption {
  padding: 10px 16px;
  border-top: 1px solid #e6ebe8;
  font-size: 0.875rem;
  color: #5a625e;
}

/* ---- System overview ("rich picture"): sensors -> controller <-> server ->
   app / dashboard, left to right. Each node's colour comes from --tone. ---- */
.lp-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0 6px;
  padding: 40px 28px;
  border: 1px solid #d6e4da;
  border-radius: 18px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(45, 94, 45, 0.08), transparent 70%),
    linear-gradient(180deg, #f6fbf7, #edf5ef);
  box-shadow: 0 14px 34px rgba(0, 51, 0, 0.08);
}

.lp-flow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.lp-flow-col--device {
  gap: 4px;
}

.lp-flow-device {
  width: 140px;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.2));
}

.lp-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  text-align: center;
}

.lp-flow-node--temp { --tone: #e8590c; }
.lp-flow-node--humidity { --tone: #1c7ed6; }
.lp-flow-node--fan { --tone: #0aa5c7; }
.lp-flow-node--fogger { --tone: #5b5fe0; }
.lp-flow-node--server { --tone: #2d5e2d; }
.lp-flow-node--app { --tone: #0f8a73; }
.lp-flow-node--dashboard { --tone: #34495e; }

.lp-flow-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--tone);
  color: #ffffff;
  box-shadow: 0 0 0 6px #ffffff, 0 10px 22px rgba(0, 0, 0, 0.16);
}

.lp-flow-node--small .lp-flow-icon {
  width: 50px;
  height: 50px;
  box-shadow: 0 0 0 4px #ffffff, 0 6px 14px rgba(0, 0, 0, 0.14);
}

.lp-flow-node--large .lp-flow-icon {
  width: 96px;
  height: 96px;
}

.lp-flow-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2421;
}

.lp-flow-note {
  max-width: 170px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #5a625e;
}

/* "On / Off" label with a short arrow down to the fan and fogger */
.lp-flow-down {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lp-green);
}

.lp-flow-down::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin: 4px auto 6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--lp-green);
}

.lp-flow-loads {
  display: flex;
  gap: 22px;
}

/* Arrow between columns: dashed line that slowly flows towards the arrowhead */
.lp-flow-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 96px;
}

.lp-flow-link-label {
  max-width: 120px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--lp-green);
}

.lp-flow-link-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--lp-green) 0 8px, transparent 8px 14px);
  animation: lp-flow-dash 1s linear infinite;
}

.lp-flow-link-line::after,
.lp-flow-link--both .lp-flow-link-line::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.lp-flow-link-line::after {
  right: -2px;
  border-left: 10px solid var(--lp-green);
}

.lp-flow-link--both .lp-flow-link-line::before {
  left: -2px;
  border-right: 10px solid var(--lp-green);
}

@keyframes lp-flow-dash {
  to {
    background-position: 14px 0;
  }
}

/* Below 992px the picture runs top to bottom */
@media (max-width: 991px) {
  .lp-flow {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 32px 16px;
  }
  .lp-flow-col:not(.lp-flow-col--device) {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
  }
  .lp-flow-link {
    min-width: 0;
  }
  .lp-flow-link-line {
    width: 2px;
    height: 34px;
    background: repeating-linear-gradient(180deg, var(--lp-green) 0 8px, transparent 8px 14px);
    animation-name: lp-flow-dash-down;
  }
  .lp-flow-link-line::after,
  .lp-flow-link--both .lp-flow-link-line::before {
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
  }
  .lp-flow-link-line::after {
    bottom: -2px;
    border-top: 10px solid var(--lp-green);
  }
  .lp-flow-link--both .lp-flow-link-line::before {
    top: -2px;
    border-bottom: 10px solid var(--lp-green);
  }
}

@keyframes lp-flow-dash-down {
  to {
    background-position: 0 14px;
  }
}

/* Same entrance as the Prohori page's .img_div_1: a 3s slide from 200px off
   to the side. */
.lp-slide-left {
  position: relative;
  animation: lp-from-right 3s;
}

@keyframes lp-from-right {
  from {
    left: 200px;
  }
  to {
    left: 0;
  }
}

@media (min-width: 768px) {
  /* Lines the side paragraph up with the first paragraph beside the h2 */
  .lp-text--offset {
    padding-top: 58px;
  }
}

@media (max-width: 991px) {
  .lp-cards {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .lp-root .lp-product-title h1 {
    font-size: 38px;
  }
  .lp-version {
    font-size: 28px;
  }
  .lp-row--7-5,
  .lp-row--6-6 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* Image above its text on phones, as on the Prohori page */
  .lp-media {
    order: -1;
  }
  .lp-root .lp-iot h2 {
    font-size: 1.5rem;
  }
  .lp-lead,
  .lp-checklist li {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-slide-left,
  .lp-flow-link-line,
  .lp-blink {
    animation: none;
  }
}

/* ---------- Footer (site .footer / .copyright) ---------- */
.lp-footer {
  background: var(--lp-footer);
  color: #ffffff;
}

.lp-footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-top: 50px;
  padding-bottom: 40px;
}

.lp-root .lp-widget-title {
  margin-bottom: 24px;
  padding-left: 15px;
  border-left: 3px solid var(--lp-green-light);
  color: #ffffff;
  font-size: 16px;
  text-transform: uppercase;
}

.lp-footer-company {
  margin-bottom: 10px;
  font-family: var(--lp-heading-font);
  font-weight: 700;
}

.lp-footer-line {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 22px;
}

.lp-footer-line svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--lp-green-light);
}

.lp-footer-line small {
  color: #bbbbbb;
  font-size: 12px;
}

.lp-footer a:hover {
  color: var(--lp-green-light);
}

.lp-list-arrow li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lp-list-arrow li:last-child {
  border-bottom: 0;
}

.lp-list-arrow li::before {
  content: '›';
  margin-right: 10px;
  color: var(--lp-green-light);
  font-weight: 700;
}

.lp-footer-col > p {
  font-size: 14px;
  line-height: 22px;
}

.lp-play-badge {
  display: inline-block;
  margin-top: 16px;
}

.lp-play-badge img {
  display: block;
  height: 48px;
  width: auto;
}

.lp-social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
}

.lp-social a {
  display: inline-flex;
  padding: 8px;
  color: #ffffff;
  transition: color 400ms;
}

.lp-copyright {
  background: #ffffff;
  color: var(--lp-ink);
  font-size: 12px;
  font-weight: 600;
}

.lp-copyright-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.lp-copyright a {
  color: var(--lp-green);
}

.lp-copyright ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 991px) {
  .lp-footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .lp-footer-main {
    grid-template-columns: 1fr;
  }
  .lp-copyright-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Sign-in page (/signin) ----------
   Same shell as the landing page: praniSheba header, then one card on the
   grey band with the device on a pale green panel and the form beside it. */
.lp-signin-page {
  display: flex;
  flex-direction: column;
}

.lp-signin {
  flex: 1;
  padding: 48px 0;
  background: var(--lp-grey);
}

.lp-signin-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.lp-signin-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  background:
    radial-gradient(420px 260px at 50% 10%, rgba(45, 94, 45, 0.12), transparent 70%),
    linear-gradient(180deg, #f6fbf7, #e7f2ea);
  border-right: 1px solid #dde9e0;
}

.lp-signin-media .lp-product-title {
  justify-content: center;
  padding: 0 0 8px;
}

.lp-root .lp-signin-media .lp-product-title h1 {
  font-size: 40px;
}

.lp-signin-media .lp-version {
  font-size: 28px;
}

.lp-signin-device {
  width: 100%;
  max-width: 230px;
  height: auto;
  margin: 18px 0 20px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.lp-signin-tagline {
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3d4541;
}

.lp-signin-form {
  padding: 44px 44px 40px;
}

.lp-root .lp-signin-form h2 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  color: #111111;
}

.lp-signin-sub {
  margin: 6px 0 26px;
  font-size: 0.975rem;
  line-height: 1.55;
  color: #5a625e;
}

.lp-field {
  margin-bottom: 18px;
}

.lp-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2b302d;
}

/* Input with a leading icon and an optional trailing button */
.lp-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  background: #ffffff;
  color: #6b746f;
  transition: border-color 150ms, box-shadow 150ms;
}

.lp-input:focus-within {
  border-color: var(--lp-green);
  box-shadow: 0 0 0 3px rgba(0, 51, 0, 0.12);
}

.lp-input--invalid {
  border-color: #c92a2a;
}

.lp-input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.975rem;
  color: #1f2421;
}

.lp-input-toggle {
  display: inline-flex;
  padding: 6px;
  border: 0;
  background: none;
  color: #6b746f;
  cursor: pointer;
}

.lp-input-toggle:hover {
  color: var(--lp-green);
}

.lp-field-error {
  margin-top: 6px;
  font-size: 0.825rem;
  color: #c92a2a;
}

.lp-signin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 24px;
  font-size: 0.9rem;
}

.lp-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2b302d;
  cursor: pointer;
}

.lp-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--lp-green);
}

.lp-root .lp-signin-link {
  font-weight: 600;
  color: var(--lp-green);
}

.lp-root .lp-signin-link:hover {
  text-decoration: underline;
}

.lp-signin-submit {
  width: 100%;
  padding: 14px 20px 12px;
}

.lp-signin-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.lp-alert {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.lp-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-alert--danger {
  border-color: #f1c0c0;
  background: #fdf0f0;
  color: #9b1c1c;
}

.lp-alert--warning {
  border-color: #f0d9a8;
  background: #fdf6e7;
  color: #7a4b00;
}

.lp-spin {
  animation: lp-spin 1s linear infinite;
}

@keyframes lp-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .lp-signin {
    padding: 24px 0;
  }
  .lp-signin-card {
    grid-template-columns: 1fr;
  }
  .lp-signin-media {
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid #dde9e0;
  }
  .lp-signin-device {
    max-width: 150px;
    margin: 12px 0;
  }
  .lp-signin-form {
    padding: 28px 20px;
  }
}

/* ---------- apS Fire Alarm page extras ----------
   Device-type cards and a slide-in from the left; everything else is shared
   with the PraniCool page. */
.lp-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.lp-type-card {
  padding: 26px 28px;
  border-top: 3px solid var(--lp-green);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.lp-media .lp-screen {
  margin-top: 0;
}

.lp-slide-right {
  position: relative;
  animation: lp-from-left 3s;
}

@keyframes lp-from-left {
  from {
    right: 200px;
  }
  to {
    right: 0;
  }
}

@media (max-width: 767px) {
  .lp-type-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-slide-right {
    animation: none;
  }
}

/* ---------- apS Fire Alarm login page ----------
   Same card as the PraniCool sign-in page. The header and device panel use
   .lp-root; the Bootstrap auth forms stay outside it (its reset would wipe
   their spacing) and are recoloured through Bootstrap's own CSS variables. */
.lp-root--inline {
  min-height: 0;
  /* base.html's body is a full-height flex column; without this the header
     wrapper shrinks below its content and the page body slides under it. */
  flex-shrink: 0;
}

body.auth-page {
  background: var(--lp-grey, #e6e6e6);
}

.fa-signin-card {
  margin: 16px auto;
}

.fa-signin-media-wrap {
  display: flex;
}

.fa-signin-media-wrap > .lp-signin-media {
  flex: 1;
}

.fa-auth {
  padding: 40px 40px 36px;
  font-family: 'Open Sans', 'Noto Sans Bengali', 'Nirmala UI', sans-serif;
  color: #1f2421;
}

.fa-auth-title {
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  color: #111111;
}

.fa-auth-sub {
  margin-bottom: 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5a625e;
}

.fa-auth .nav-pills {
  --bs-nav-pills-border-radius: 6px;
  --bs-nav-pills-link-active-bg: #003300;
  --bs-nav-link-color: #003300;
  --bs-nav-link-hover-color: #111111;
  --bs-nav-link-font-weight: 600;
}

.fa-auth .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2b302d;
}

.fa-auth .form-control {
  padding: 0.6rem 0.75rem;
  border-color: #cfd8d3;
  border-radius: 6px;
}

.fa-auth .form-control:focus {
  border-color: #003300;
  box-shadow: 0 0 0 3px rgba(0, 51, 0, 0.12);
}

.fa-auth .form-check-input:checked {
  background-color: #003300;
  border-color: #003300;
}

.fa-auth .btn-success,
.fa-auth .btn-outline-success {
  --bs-btn-border-radius: 3px;
  --bs-btn-font-family: 'Montserrat', sans-serif;
  --bs-btn-font-weight: 700;
  --bs-btn-font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.fa-auth .btn-success {
  --bs-btn-bg: #003300;
  --bs-btn-border-color: #003300;
  --bs-btn-hover-bg: #111111;
  --bs-btn-hover-border-color: #111111;
  --bs-btn-active-bg: #111111;
  --bs-btn-active-border-color: #111111;
  --bs-btn-disabled-bg: #003300;
  --bs-btn-disabled-border-color: #003300;
}

.fa-auth .btn-outline-success {
  --bs-btn-color: #003300;
  --bs-btn-border-color: #003300;
  --bs-btn-hover-bg: #003300;
  --bs-btn-hover-border-color: #003300;
  --bs-btn-active-bg: #003300;
  --bs-btn-active-border-color: #003300;
}

.fa-auth .btn-link,
.fa-auth .link-success {
  --bs-btn-color: #003300;
  --bs-btn-hover-color: #111111;
  color: #003300;
  font-weight: 600;
  text-decoration: none;
}

.fa-auth .alert {
  border-radius: 8px;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .fa-auth {
    padding: 28px 20px;
  }
}

/* Base template footer, styled like the landing page's copyright strip */
body.auth-page .aps-footer {
  background: #ffffff;
  color: #000000;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  border-top: 1px solid #d6dbd8;
}

/* "Buy it now": centred in the device column, directly above the photo */
.lp-media--device {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-buy {
  margin-bottom: 26px;
  padding: 14px 26px 12px;
  font-size: 15px;
}

/* Main nav stays visible while scrolling, as on www.pranisheba.com.bd: the
   green top bar scrolls away and the white logo + menu bar sticks to the top. */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* In-page links (#features etc.) land below the sticky bar, not under it */
.lp-root [id] {
  scroll-margin-top: 120px;
}

@media (max-width: 991px) {
  .lp-root [id] {
    scroll-margin-top: 170px;
  }
  /* The open phone menu scrolls on its own so it stays usable while stuck */
  .lp-menu.is-open {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
  }
}

/* Login page: the header's wrapper only carries .lp-root's fonts and colours.
   display: contents removes its box so the sticky header can stick for the
   whole page instead of only within the wrapper's own height. */
.lp-root--header {
  display: contents;
}

/* base.html pins body to the viewport height for its sticky footer, which
   would also cap how far the sticky header can stay stuck. On the login page
   body grows with the content instead (its min-height still fills the screen). */
body.auth-page {
  height: auto;
}
