/* xPressERP login / marketing pages */

@import url("colors.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.login-page,
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--table-header-text);
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #eef4e6 0%, var(--page-bg) 45%, #cfdcb8 100%);
}

.hide {
  display: none !important;
}

/* ── Top nav ── */
nav.top-nav,
nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--brand-orange);
  box-shadow: 0 3px 14px rgba(217, 125, 18, 0.35);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.78rem;
}

nav ul li {
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  transition: background 0.18s ease, color 0.18s ease;
}

nav ul li:hover {
  background: rgba(0, 0, 0, 0.12);
  border-bottom: none;
  padding-bottom: 0.55rem;
}

nav ul li a {
  text-decoration: none;
  color: #111 !important;
}

/* ── Page shell ── */
#middle {
  display: flex;
  min-height: calc(100vh - 7.5rem);
}

main {
  flex-basis: 100%;
  padding: 1.25rem 1rem 2rem;
  font-size: 1.05rem;
  text-align: justify;
}

#home.tab-body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1.25rem;
  text-align: left;
}

#home.tab-body.hide {
  display: none !important;
}

/* ── Login card ── */
.form-container {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.15rem;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(240, 148, 35, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #fff;
  animation: login-rise 0.45s ease both;
}

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

.login-form {
  width: 100%;
}

.form-brand {
  margin: 0 auto 0.35rem;
}

.form-brand img,
.login-form .logo img {
  display: block;
  width: min(78%, 280px);
  margin: 0 auto;
  height: auto;
}

.login-form .logo {
  margin-bottom: 0.35rem;
}

.login-text {
  margin: 0.35rem 0 1rem;
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  letter-spacing: 0.02em;
  color: #fff;
}

.login-form .form-group {
  margin-bottom: 0.85rem;
}

.login-form label {
  display: block;
  width: 100%;
  margin: 0 0 0.35rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.login-form input,
.login-form .form-control {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.login-form input::placeholder {
  color: #8a8a8a;
  opacity: 1;
}

.login-form input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(240, 148, 35, 0.28);
}

.login-form .error {
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 5px;
  background: rgba(220, 50, 50, 0.18);
  border: 1px solid rgba(255, 120, 120, 0.45);
  color: #ffb4b4;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}

.forgot-password {
  margin: 0.15rem 0 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: color 0.15s ease;
}

.forgot-password:hover {
  color: var(--brand-orange);
}

.login-form button,
#contact_form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #9bb84f 0%, var(--brand-green-dark) 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(138, 162, 74, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-form button:hover,
#contact_form button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(138, 162, 74, 0.45);
}

.login-form button:active,
#contact_form button:active {
  transform: translateY(0);
}

.login-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.login-form-text,
.login-demo-note {
  margin: 0.85rem 0 0.15rem;
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
}

.login-divider {
  width: 100%;
  height: 1px;
  margin: 0.85rem 0;
  background: rgba(255, 255, 255, 0.35);
}

.btn-group-lg > .btn,
.btn-lg {
  line-height: 1.35;
}

.lds-dual-ring {
  display: inline-block;
  width: 18px;
  height: 18px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Badges / footer ── */
.bottom-badge {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.5rem 1rem 4.5rem;
  padding: 0.5rem 0 1rem;
}

.badge {
  position: relative;
  max-width: 120px;
  width: 12%;
  min-width: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 83, 0.15);
  box-shadow: 0 4px 12px rgba(68, 64, 83, 0.1);
  background: #fff;
  transition: transform 0.2s ease;
}

.badge:hover {
  transform: translateY(-3px);
}

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

footer {
  z-index: 1000;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-green-darker);
  border-top: 3px solid var(--brand-orange);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

footer div {
  padding: 0;
}

/* ── Other tabs ── */
.tab-body h2 {
  font-size: 1.05rem;
  background: var(--brand-green-dark);
  color: #fff;
  padding: 0.5rem 0.75rem;
  width: fit-content;
  margin-bottom: 0;
  text-transform: uppercase;
  border-radius: 5px 5px 0 0;
  border: none;
}

.tab-body h2 + p {
  padding-top: 0.5rem;
  border-top: 3px solid var(--brand-green-dark);
  margin: 0;
}

.tab-body a {
  color: var(--brand-orange-dark);
}

.tab-body ol {
  list-style: none;
  padding-left: 0;
}

article h1 {
  text-align: center;
}

.main-image {
  width: 100%;
  text-align: center;
}

.main-image img {
  width: 25%;
  margin-top: 1rem;
}

#contact_form {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 1.25rem;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  color: #fff;
}

#contact_form label {
  width: 100%;
  text-align: left;
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

#contact_form input,
#contact_form textarea {
  width: 100%;
  margin: 0 0 0.65rem;
  border-radius: 6px;
  border: none;
  padding: 0.65rem 0.75rem;
}

#contact_form button {
  width: 100%;
  margin: 0.35rem 0 0;
}

#tutorial h2 {
  background: none;
  border: none;
}

#tutorial h2 a {
  text-decoration: none;
  text-transform: none;
  color: var(--brand-gray);
}

#video-tutorials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* Pricing / compare (kept) */
.compare {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.compare .item {
  border: 1px solid #ddd;
  text-align: center;
  margin: 0;
  flex: 1 1 200px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.compare .item header {
  background: var(--brand-orange);
  padding: 0.5rem;
}

.compare .item header h2 {
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0.5rem 0;
  border: none;
  background: none;
  width: 100%;
  color: #111;
  text-transform: none;
}

.compare .item header h3 {
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0.5rem 0;
  white-space: nowrap;
}

.compare .item header .price {
  font-size: 1.7rem;
  font-weight: 600;
}

.compare .item ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare .item ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #cfcdcd;
  background: #f5f4f4;
  color: #000;
}

.compare .item .per_month {
  font-size: 1rem;
  text-decoration: line-through;
  align-self: center;
}

.compare .item .fa-circle-check {
  color: green;
}

.compare .item .fa-circle-xmark {
  color: red;
}

.compare .item footer {
  position: relative;
}

.compare .item footer a {
  background-color: var(--brand-green-dark);
  border: none;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  padding: 0.5rem 0.85rem;
  display: inline-block;
  margin: 0.75rem 0;
}

.flex {
  display: flex;
  justify-content: space-evenly;
}

.contract {
  font-weight: 600;
  color: green;
  font-size: 1.5rem;
}

.table {
  display: table;
  border-collapse: collapse;
  width: 100%;
}

.table-header,
.table-row {
  display: table-row;
}

.table-header div,
.table-row div {
  display: table-cell;
  border: 1px solid #9b8282;
}

.pricing-table {
  width: 100%;
  margin: auto;
}

.pricing-table .per-month {
  text-decoration: line-through;
}

.pricing-table .erp-logo {
  margin-left: 1.5rem;
  width: 15rem;
  margin-top: 1.5rem;
}

.pricing-table .print-pack {
  margin: 0 0 0.5rem 1.5rem;
}

.pricing-table h2 {
  background: none;
  border: none;
  color: #fff;
  text-transform: none;
  margin: 0 0 0 1.5rem;
  padding-top: 0;
  width: 15rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
}

.pricing-table .table-cell {
  border: none;
}

.pricing-table .on-site-install h3 {
  margin: 0 0 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-table .on-site-install h4 {
  margin-bottom: 0;
}

.pricing-table .table-cell .checked {
  width: 1.5rem;
  vertical-align: middle;
}

.pricing-table .table-cell:not(:first-child) {
  text-align: center;
}

.pricing-table .table-header .table-cell:not(:first-child) h2 {
  width: fit-content;
}

.pricing-table .table-header .table-cell:not(:first-child) {
  vertical-align: top;
}

.pricing-table .table-cell h4 {
  font-size: 1rem;
  margin: 0.5rem 0 0.5rem 1.5rem;
}

.pricing-table .table-row {
  color: #000;
}

.pricing-table .table-row:nth-child(2n) {
  background: #fff;
}

.pricing-table .table-row:nth-child(2n+1) {
  background: #bdbcbc;
}

.link {
  cursor: pointer;
}

.video-container {
  position: absolute;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
}

button.close {
  position: absolute;
  right: 20px;
  top: 30px;
  color: red;
}

.video {
  width: 100%;
  position: absolute;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
}

@media (max-width: 780px) {
  nav ul {
    font-size: 0.68rem;
    gap: 0;
  }

  nav ul li {
    padding: 0.45rem 0.5rem;
  }

  .form-container {
    width: min(100%, 380px);
    padding: 1.15rem 1.1rem 1rem;
  }

  #video-tutorials {
    grid-template-columns: 1fr;
  }

  footer {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-container {
    animation: none;
  }
}

/* ── Standalone login page ── */
body.login-page #middle {
  min-height: calc(100vh - 9.5rem);
  align-items: center;
}

body.login-page #home.tab-body {
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.login-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--brand-orange);
  box-shadow: 0 3px 14px rgba(217, 125, 18, 0.35);
}

.login-page-brand img {
  display: block;
  max-height: 44px;
  width: auto;
}

.login-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.18s ease;
}

.login-page-back:hover {
  background: rgba(0, 0, 0, 0.18);
}

.login-page-footer {
  padding: 0.85rem 1rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: black;
}

.login-page-footer p {
  margin: 0.25rem 0;
}
