:root {
  --primary: #AECBA8;
  --primary-foreground: #ffffff;
  --secondary: #4D7A55;
  --secondary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #4D7A55;
  --muted: #E4F5EA;
  --muted-foreground: #4D7A55;
  --border: #AECBA8;
  --font-sans: "Inter", sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

body.login-page.auth-marketing-body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Utility classes */
.hidden {
  display: none;
}

/* Navigation Styles */
.nav-bar {
  background-color: white;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid #AECBA8;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* Same Inventa SVG as POS header (partials.pos.inventa-logo-svg) */
.logo-container--pos {
  display: inline-flex;
  align-items: center;
}

.auth-marketing-body .logo-container--pos .pos-header-logo.inventa-logo-svg {
  display: block;
  height: 38px;
  width: auto;
  max-width: 140px;
}

.logo-img {
  height: 2rem;
  width: auto;
  display: block;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(to right, #4D7A55, #AECBA8);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.logo-text {
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

@media (min-width: 768px) {
  .logo-img {
    height: 2.25rem;
  }
}

.nav-right {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 1rem;
  --nav-cta-height: calc(0.5rem + 0.5rem + 0.875rem * 1.35);
}

.nav-sign-in {
  color: #4D7A55;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-sign-in-circle {
  box-sizing: border-box;
  width: var(--nav-cta-height);
  height: var(--nav-cta-height);
  min-width: var(--nav-cta-height);
  min-height: var(--nav-cta-height);
  max-width: var(--nav-cta-height);
  max-height: var(--nav-cta-height);
  border-radius: 50%;
  border: 2px solid #4D7A55;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-sign-in:hover .nav-sign-in-circle {
  background-color: #E4F5EA;
  border-color: #3d6345;
  color: #3d6345;
}

.nav-sign-in-icon {
  display: block;
}

.demo-button {
  background-color: #e85520;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  font-family: var(--font-sans);
  min-height: var(--nav-cta-height, calc(0.5rem + 0.5rem + 0.875rem * 1.35));
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: scale(1);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.demo-button:hover {
  background-color: #C94008;
  transform: scale(1.05);
}

/* Footer — thin bar, copyright only (login / select-region) */
.footer {
  background-color: #4d7a55;
  color: #fff;
  flex-shrink: 0;
}

.footer.auth-footer-minimal .footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.625rem 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer.auth-footer-minimal .footer-container {
    padding: 0.75rem 1.5rem;
  }
}

.footer.auth-footer-minimal .footer-copyright {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}
/* ========== Login Page ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  /* Must use shell token — solid #E4F5EA ignored Try Colors “Main area” / --preview-site-canvas-bg */
  background-color: var(--preview-site-canvas-bg, #e4f5ea);
  position: relative;
  overflow: hidden;
}

/* Decorative circle: barcode pattern (softened greens) */
.login-barcode-circle {
  position: absolute;
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.42;
  border: 1px solid rgba(120, 165, 128, 0.32);
}

/* Barcode: flat bars and gaps – slightly lighter than before */
.login-barcode-circle-inner {
  position: absolute;
  inset: 0;
  background-color: #D2E8D9;
  background-image: repeating-linear-gradient(
    90deg,
    #D2E8D9 0px,
    #D2E8D9 2px,
    #5C8568 2px,
    #5C8568 3px,
    #D2E8D9 3px,
    #D2E8D9 8px,
    #5C8568 8px,
    #5C8568 9px,
    #D2E8D9 9px,
    #D2E8D9 12px,
    #5C8568 12px,
    #5C8568 13px,
    #D2E8D9 13px,
    #D2E8D9 17px,
    #5C8568 17px,
    #5C8568 21px,
    #D2E8D9 21px,
    #D2E8D9 23px,
    #5C8568 23px,
    #5C8568 25px,
    #D2E8D9 25px,
    #D2E8D9 31px,
    #5C8568 31px,
    #5C8568 32px,
    #D2E8D9 32px,
    #D2E8D9 33px,
    #5C8568 33px,
    #5C8568 34px,
    #D2E8D9 34px,
    #D2E8D9 38px,
    #5C8568 38px,
    #5C8568 40px,
    #D2E8D9 40px,
    #D2E8D9 42px,
    #5C8568 42px,
    #5C8568 45px,
    #D2E8D9 45px,
    #D2E8D9 46px,
    #5C8568 46px,
    #5C8568 47px,
    #D2E8D9 47px,
    #D2E8D9 54px,
    #5C8568 54px,
    #5C8568 55px,
    #D2E8D9 55px,
    #D2E8D9 56px,
    #5C8568 56px,
    #5C8568 59px,
    #D2E8D9 59px,
    #D2E8D9 61px,
    #5C8568 61px,
    #5C8568 63px,
    #D2E8D9 63px,
    #D2E8D9 68px,
    #5C8568 68px,
    #5C8568 69px,
    #D2E8D9 69px,
    #D2E8D9 70px
  );
}

/*
 * Leaf position: same invisible footprint as the old circle (280×280, bottom-left),
 * so the graphic stays centered where it was — only the visible circle was removed.
 */
.login-leaf-wrap {
  position: absolute;
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: -60px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * Leaf: mask uses auth-marketing-leaf.svg alpha; fill is themed via --preview-accent* (see auth-marketing-theme-tokens.css).
 */
.login-leaf-image--themed {
  display: block;
  width: 190px;
  aspect-ratio: 510 / 315;
  flex-shrink: 0;
  opacity: 0.88;
  -webkit-mask-image: url("../website-assets/auth-marketing-leaf.svg");
  mask-image: url("../website-assets/auth-marketing-leaf.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  /* Default greens before theme tokens apply */
  background: linear-gradient(
    155deg,
    #5c8568 0%,
    #3d6345 55%,
    #2d4d34 100%
  );
  filter: drop-shadow(-2px -2px 4px rgba(45, 80, 50, 0.22))
    drop-shadow(2px 2px 3px rgba(255, 255, 255, 0.45));
}

@media (max-width: 640px) {
  .login-barcode-circle {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    opacity: 0.38;
  }

  .login-leaf-wrap {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -40px;
  }

  .login-leaf-image--themed {
    width: 130px;
  }
}

.login-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.login-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid #C7E0D3;
}

.login-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-badge {
  display: inline-block;
  background-color: #e85520;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.login-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: #4d7a55;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.login-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-message {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.login-message-info {
  background-color: #E4F5EA;
  border: 1px solid #C7E0D3;
  color: #4D7A55;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.login-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #4d7a55;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-forgot {
  font-size: 0.875rem;
  color: #4D7A55;
  text-decoration: none;
  font-weight: 500;
}

.login-forgot:hover {
  color: #E85520;
  text-decoration: underline;
}

.login-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 1rem;
  border: 1px solid #c7e0d3;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.35;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input::placeholder {
  color: #9ca3af;
}

.login-input:hover {
  border-color: #AECBA8;
}

.login-input:focus {
  outline: none;
  border-color: #4D7A55;
  box-shadow: 0 0 0 3px rgba(77, 122, 85, 0.2);
}

.login-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-password-wrap .login-input {
  padding-right: 2.75rem;
}

.login-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: color 0.2s;
}

.login-password-toggle:hover {
  color: #4D7A55;
}

.login-eye-icon {
  flex-shrink: 0;
}

.login-error {
  font-size: 0.8125rem;
  color: #dc2626;
  min-height: 1.25rem;
}

.login-remember-row {
  flex-direction: row;
  align-items: center;
}

.login-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #6b7280;
  user-select: none;
}

.login-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--preview-accent, #4d7a55);
  cursor: pointer;
}

.login-checkbox-text {
  font-weight: 500;
}

.login-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: #E85520;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  margin-top: 0.25rem;
}

.login-submit:hover {
  background-color: #C94008;
  transform: translateY(-1px);
}

.login-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 85, 32, 0.35);
}

.login-submit.login-submit--inline {
  width: auto;
  min-width: 8rem;
  margin-top: 0;
}

.login-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E4F5EA;
  font-size: 0.875rem;
  color: #6b7280;
}

.login-link {
  color: #4D7A55;
  font-weight: 600;
  text-decoration: none;
}

.login-link:hover {
  color: #E85520;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.75rem;
  }

  .login-title {
    font-size: 1.5rem;
  }
}

/* Laravel app login: biometric hero + language */
.auth-bio-pane {
  text-align: center;
}
.auth-bio-pane.is-hidden {
  display: none !important;
}
.auth-bio-pane.is-visible {
  display: block;
}
.auth-bio-icon-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 122, 85, 0.12);
  color: #4d7a55;
}
.auth-bio-icon-wrap i {
  font-size: 3rem;
  line-height: 1;
}
.auth-bio-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: #e85520;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.auth-bio-btn:hover {
  background-color: #c94008;
  transform: translateY(-1px);
}
.auth-bio-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 85, 32, 0.35);
}
.auth-bio-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.email-login-toggle {
  margin-top: 1.25rem;
  text-align: center;
}
.login-card .g-recaptcha {
  margin-top: 0.25rem;
}

/* Email vs fingerprint panes (Laravel login) */
#emailLoginSection.is-hidden {
  display: none !important;
}
#emailLoginSection.is-visible {
  display: block;
}

.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;
}

.login-input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

select.login-input {
  appearance: auto;
  cursor: pointer;
  min-height: 3rem;
  line-height: 1.35;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  /* Reduce system blue on WebKit/Blink focus rings for native <select> */
  accent-color: var(--preview-accent, #4d7a55);
  color-scheme: light;
}

.login-input:disabled,
select.login-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: #f3f4f6 !important;
  color: #374151 !important;
  border-color: #c7e0d3 !important;
}

.login-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.login-btn-exit {
  padding: 0.875rem 1.25rem;
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.login-btn-exit:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.login-hint {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.35rem;
  line-height: 1.4;
}
