.tentex-portal-theme {
  --tentex-color-primary: #e72f4b;
  --tentex-color-secondary: #005f9a;
  --tentex-color-surface: #ffffff;
  --tentex-color-surface-soft: #f8fbff;
  --tentex-color-bg: #f4f7fb;
  --tentex-color-border: #dbe5f0;
  --tentex-color-text: #10233c;
  --tentex-color-muted: #64748b;
  --tentex-shadow-sm: 0 10px 30px rgba(16, 35, 60, 0.08);
  --tentex-shadow-md: 0 18px 40px rgba(16, 35, 60, 0.12);
  --tentex-radius-sm: 10px;
  --tentex-radius-md: 14px;
  --tentex-radius-lg: 18px;
}

html.tentex-portal-theme,
body.tentex-portal-theme,
.tentex-portal-theme body {
  background: linear-gradient(180deg, #f7fafe 0%, #eef4fb 100%);
  color: var(--tentex-color-text);
}

.tentex-portal-theme a {
  color: var(--tentex-color-primary);
  transition: color .18s ease, opacity .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tentex-portal-theme a:hover {
  color: var(--tentex-color-secondary);
}

.tentex-portal-theme .nk-content,
.tentex-portal-theme .nk-content-body,
.tentex-portal-theme .salesking-dashboard-content,
.tentex-portal-theme #salesking-dashboard-content,
.tentex-portal-theme .salesking_page_content,
.tentex-portal-theme .salesking-page-content {
  color: var(--tentex-color-text);
}

.tentex-portal-theme .nk-block-head,
.tentex-portal-theme .nk-block-between {
  gap: 14px;
}

.tentex-portal-theme .page-title,
.tentex-portal-theme .nk-block-title,
.tentex-portal-theme .nk-block-title.page-title,
.tentex-portal-theme .tentex-section-title,
.tentex-portal-theme .tentex-card h3,
.tentex-portal-theme .tentex-card h4 {
  color: var(--tentex-color-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tentex-portal-theme .text-soft,
.tentex-portal-theme .tentex-muted,
.tentex-portal-theme .nk-block-des,
.tentex-portal-theme .meta,
.tentex-portal-theme .tentex-detail-item .label,
.tentex-portal-theme .tentex-file-box-meta {
  color: var(--tentex-color-muted) !important;
}

.tentex-portal-theme .nk-sidebar,
.tentex-portal-theme aside.nk-sidebar,
.tentex-portal-theme .salesking-sidebar,
.tentex-portal-theme .dashboard-sidebar {
  background: linear-gradient(180deg, #0d2036 0%, #12385a 100%) !important;
  box-shadow: 16px 0 40px rgba(16, 35, 60, 0.14);
}


/* Sidebar logo: make the uploaded SalesKing logo fluid and visually aligned with the full sidebar width. */
.tentex-portal-theme .nk-sidebar .nk-sidebar-brand,
.tentex-portal-theme aside.nk-sidebar .nk-sidebar-brand,
.tentex-portal-theme .nk-sidebar .logo-wrap,
.tentex-portal-theme .nk-sidebar .logo-link,
.tentex-portal-theme .nk-sidebar .logo,
.tentex-portal-theme .salesking-sidebar .logo,
.tentex-portal-theme .dashboard-sidebar .logo {
  width: 100% !important;
}

.tentex-portal-theme .nk-sidebar .nk-sidebar-brand,
.tentex-portal-theme aside.nk-sidebar .nk-sidebar-brand,
.tentex-portal-theme .salesking-sidebar .nk-sidebar-brand,
.tentex-portal-theme .dashboard-sidebar .nk-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 14px 14px !important;
  min-height: 88px;
}

.tentex-portal-theme .nk-sidebar .logo-link,
.tentex-portal-theme .nk-sidebar .logo-wrap,
.tentex-portal-theme .nk-sidebar .logo,
.tentex-portal-theme .salesking-sidebar .logo-link,
.tentex-portal-theme .dashboard-sidebar .logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tentex-portal-theme .nk-sidebar .logo-img,
.tentex-portal-theme .nk-sidebar img[class*="logo"],
.tentex-portal-theme .nk-sidebar .nk-sidebar-brand img,
.tentex-portal-theme .salesking-sidebar .nk-sidebar-brand img,
.tentex-portal-theme .dashboard-sidebar .nk-sidebar-brand img {
  display: block !important;
  width: min(100%, 228px) !important;
  max-width: 100% !important;
  max-height: 72px !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.tentex-portal-theme .nk-sidebar .logo-img-sm,
.tentex-portal-theme .nk-sidebar .logo-img-small {
  display: none !important;
}

.tentex-portal-theme .nk-sidebar .nk-menu-heading,
.tentex-portal-theme .nk-sidebar .nk-menu-text,
.tentex-portal-theme .nk-sidebar .nk-menu-icon,
.tentex-portal-theme .salesking-sidebar a,
.tentex-portal-theme .dashboard-sidebar a,
.tentex-portal-theme .nk-sidebar a {
  color: rgba(255, 255, 255, 0.88) !important;
}

.tentex-portal-theme .nk-sidebar .nk-menu-link,
.tentex-portal-theme .salesking-sidebar a,
.tentex-portal-theme .dashboard-sidebar a {
  border-radius: 14px;
}

.tentex-portal-theme .nk-sidebar .nk-menu-link:hover,
.tentex-portal-theme .salesking-sidebar a:hover,
.tentex-portal-theme .dashboard-sidebar a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.tentex-portal-theme .nk-menu-item.active > .nk-menu-link,
.tentex-portal-theme .nk-menu-link.active,
.tentex-portal-theme .salesking-sidebar .active > a,
.tentex-portal-theme .dashboard-sidebar .active > a,
.tentex-portal-theme .nk-menu-item.current-menu-item > .nk-menu-link,
.tentex-portal-theme .nk-menu-item.current_page_item > .nk-menu-link {
  background: linear-gradient(90deg, rgba(231, 47, 75, 0.24), rgba(0, 95, 154, 0.18)) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--tentex-color-primary);
}

.tentex-portal-theme .button,
.tentex-portal-theme .btn,
.tentex-portal-theme .tentex-btn,
.tentex-portal-theme .tentex-pay-btn,
.tentex-portal-theme .sk-btn,
.tentex-portal-theme .tentex-team-btn,
.tentex-portal-theme button,
.tentex-portal-theme input[type="submit"],
.tentex-portal-theme input[type="button"] {
  border-radius: 12px !important;
  font-weight: 700 !important;
  box-shadow: none;
}

.tentex-portal-theme .button:not(.button-link-delete):not(.button-primary),
.tentex-portal-theme .btn:not(.btn-primary),
.tentex-portal-theme .tentex-btn:not(.tentex-btn-primary),
.tentex-portal-theme .tentex-pay-btn:not(.tentex-pay-btn-primary) {
  border-color: rgba(0, 95, 154, 0.18) !important;
  color: var(--tentex-color-secondary) !important;
  background: #fff !important;
}

.tentex-portal-theme .button:not(.button-link-delete):not(.button-primary):hover,
.tentex-portal-theme .btn:not(.btn-primary):hover,
.tentex-portal-theme .tentex-btn:not(.tentex-btn-primary):hover,
.tentex-portal-theme .tentex-pay-btn:not(.tentex-pay-btn-primary):hover {
  background: rgba(0, 95, 154, 0.06) !important;
  border-color: rgba(0, 95, 154, 0.3) !important;
  color: var(--tentex-color-secondary) !important;
  transform: translateY(-1px);
}

.tentex-portal-theme .button.button-primary,
.tentex-portal-theme .btn.btn-primary,
.tentex-portal-theme .btn-primary,
.tentex-portal-theme .tentex-btn-primary,
.tentex-portal-theme .tentex-team-btn,
.tentex-portal-theme .sk-btn,
.tentex-portal-theme .tentex-pay-btn-primary,
.tentex-portal-theme #tentex-it-commission-payments-modal .tentex-btn-primary,
.tentex-portal-theme #tentex-it-commission-payments-rail .tentex-pay-btn-primary,
.tentex-portal-theme #tentexAnnSubmit {
  background: var(--tentex-color-primary) !important;
  border-color: var(--tentex-color-primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(231, 47, 75, 0.22) !important;
}

.tentex-portal-theme .button.button-primary:hover,
.tentex-portal-theme .btn.btn-primary:hover,
.tentex-portal-theme .btn-primary:hover,
.tentex-portal-theme .tentex-btn-primary:hover,
.tentex-portal-theme .tentex-team-btn:hover,
.tentex-portal-theme .sk-btn:hover,
.tentex-portal-theme .tentex-pay-btn-primary:hover,
.tentex-portal-theme #tentex-it-commission-payments-modal .tentex-btn-primary:hover,
.tentex-portal-theme #tentex-it-commission-payments-rail .tentex-pay-btn-primary:hover,
.tentex-portal-theme #tentexAnnSubmit:hover {
  background: var(--tentex-color-secondary) !important;
  border-color: var(--tentex-color-secondary) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.tentex-portal-theme .button.button-link-delete,
.tentex-portal-theme .button-link-delete {
  color: #c62828 !important;
}

.tentex-portal-theme input[type="text"],
.tentex-portal-theme input[type="email"],
.tentex-portal-theme input[type="number"],
.tentex-portal-theme input[type="password"],
.tentex-portal-theme input[type="tel"],
.tentex-portal-theme input[type="url"],
.tentex-portal-theme input[type="date"],
.tentex-portal-theme textarea,
.tentex-portal-theme select,
.tentex-portal-theme .tentex-input,
.tentex-portal-theme .tentex-team-input,
.tentex-portal-theme .tentex-q-toolbar input[type="text"],
.tentex-portal-theme .tentex-q-toolbar select,
.tentex-portal-theme .tentex-crm-toolbar input[type="text"],
.tentex-portal-theme .tentex-crm-toolbar select,
.tentex-portal-theme .tentex-lead-form input,
.tentex-portal-theme .tentex-lead-form select,
.tentex-portal-theme .tentex-contact-edit-form input,
.tentex-portal-theme .tentex-contact-edit-form select,
.tentex-portal-theme .tentex-contact-edit-form textarea,
.tentex-portal-theme .sk-quote-request-wrap input[type="text"],
.tentex-portal-theme .sk-quote-request-wrap input[type="number"],
.tentex-portal-theme .sk-quote-request-wrap textarea,
.tentex-portal-theme .sk-quote-request-wrap select {
  border: 1px solid var(--tentex-color-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--tentex-color-text) !important;
  box-shadow: none;
}

.tentex-portal-theme input[type="text"]:focus,
.tentex-portal-theme input[type="email"]:focus,
.tentex-portal-theme input[type="number"]:focus,
.tentex-portal-theme input[type="password"]:focus,
.tentex-portal-theme input[type="tel"]:focus,
.tentex-portal-theme input[type="url"]:focus,
.tentex-portal-theme input[type="date"]:focus,
.tentex-portal-theme textarea:focus,
.tentex-portal-theme select:focus,
.tentex-portal-theme .tentex-input:focus,
.tentex-portal-theme .tentex-team-input:focus {
  border-color: rgba(231, 47, 75, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(231, 47, 75, 0.14) !important;
  outline: none;
}

.tentex-portal-theme .tentex-card,
.tentex-portal-theme .sk-quote-request-wrap,
.tentex-portal-theme .tentex-team-panel,
.tentex-portal-theme .tentex-bulk-box,
.tentex-portal-theme .tentex-detail-item,
.tentex-portal-theme .tentex-file-box,
.tentex-portal-theme .tentex-o-table-wrap,
.tentex-portal-theme .tentex-q-table-wrap,
.tentex-portal-theme .tentex-qr-table-wrap,
.tentex-portal-theme .tentex-crm-table-wrap,
.tentex-portal-theme .tentex-qr-thread,
.tentex-portal-theme .tentex-team-msg,
.tentex-portal-theme .tentex-ac-results,
.tentex-portal-theme #tentex-it-earnings-embed-wrap .tentex-it-earnings-card,
.tentex-portal-theme #tentex-it-commission-payments-rail .tentex-pay-card,
.tentex-portal-theme #tentex-it-commission-payments-modal .tentex-pay-modal-card {
  border-color: var(--tentex-color-border) !important;
  border-radius: var(--tentex-radius-lg) !important;
  background: var(--tentex-color-surface) !important;
  box-shadow: var(--tentex-shadow-sm) !important;
}

.tentex-portal-theme table.tentex-o-table thead th,
.tentex-portal-theme table.tentex-q-table thead th,
.tentex-portal-theme table.tentex-qr-table thead th,
.tentex-portal-theme table.tentex-crm-table thead th {
  background: rgba(0, 95, 154, 0.05) !important;
  color: var(--tentex-color-secondary) !important;
  border-bottom-color: var(--tentex-color-border) !important;
}

.tentex-portal-theme table.tentex-o-table tbody tr:hover td,
.tentex-portal-theme table.tentex-q-table tbody tr:hover td,
.tentex-portal-theme table.tentex-qr-table tbody tr:hover td,
.tentex-portal-theme table.tentex-crm-table tbody tr:hover td {
  background: rgba(0, 95, 154, 0.035) !important;
}

.tentex-portal-theme .tentex-badge,
.tentex-portal-theme .tentex-pill {
  border-color: rgba(231, 47, 75, 0.16) !important;
}

.tentex-portal-theme .tentex-badge:not([class*="lead-"]),
.tentex-portal-theme .tentex-pill:not(.ok):not(.no):not(.new):not(.other):not(.in_work):not(.info_needed):not(.quoted):not(.sent):not(.rejected):not(.closed) {
  background: rgba(231, 47, 75, 0.08) !important;
  color: var(--tentex-color-secondary) !important;
}

.tentex-portal-theme .tentex-detail-item,
.tentex-portal-theme .tentex-file-box,
.tentex-portal-theme .tentex-team-msg.me,
.tentex-portal-theme .tentex-qr-msg.system .tentex-qr-bubble {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.tentex-portal-theme .notice,
.tentex-portal-theme .tentex-notice,
.tentex-portal-theme .sk-msg {
  border-radius: 14px !important;
  border-width: 1px !important;
  box-shadow: none;
}

.tentex-portal-theme .notice.notice-success,
.tentex-portal-theme .tentex-notice.ok,
.tentex-portal-theme .sk-msg.is-success {
  border-color: rgba(231, 47, 75, 0.18) !important;
  background: rgba(231, 47, 75, 0.06) !important;
  color: #8b1130 !important;
}

.tentex-portal-theme .tentex-qr-pagination .page-numbers,
.tentex-portal-theme .tentex-pager .button,
.tentex-portal-theme .tentex-pager .page-numbers {
  border-radius: 12px !important;
}

.tentex-portal-theme .tentex-qr-pagination .page-numbers.current,
.tentex-portal-theme .tentex-pager .button.button-primary,
.tentex-portal-theme .tentex-pager .page-numbers.current {
  background: var(--tentex-color-primary) !important;
  border-color: var(--tentex-color-primary) !important;
  color: #fff !important;
}

.tentex-portal-theme .tentex-qr-pagination .page-numbers.current:hover,
.tentex-portal-theme .tentex-pager .button.button-primary:hover,
.tentex-portal-theme .tentex-pager .page-numbers.current:hover {
  background: var(--tentex-color-secondary) !important;
  border-color: var(--tentex-color-secondary) !important;
}

.tentex-portal-theme .tentex-ac-item:hover,
.tentex-portal-theme .tentex-card .meta span,
.tentex-portal-theme .tentex-qr-bubble,
.tentex-portal-theme .tentex-file-chip:hover,
.tentex-portal-theme .tentex-detail-item:hover {
  background: rgba(0, 95, 154, 0.04) !important;
}

.tentex-portal-theme .tentex-ac-title,
.tentex-portal-theme .tentex-crm-name a,
.tentex-portal-theme .tentex-detail-item .value,
.tentex-portal-theme .tentex-file-box-title,
.tentex-portal-theme .tentex-card .desc,
.tentex-portal-theme .tentex-pay-stat strong,
.tentex-portal-theme .tentex-pay-history-item strong,
.tentex-portal-theme .tentex-pay-toolbar strong {
  color: var(--tentex-color-text) !important;
}

.tentex-portal-theme .tentex-toast,
.tentex-portal-theme #tentex-it-commission-payments-toast {
  background: var(--tentex-color-secondary) !important;
  color: #fff !important;
}

.tentex-portal-theme .tentex-menu-badge,
.tentex-portal-theme .tentex-unread-badge {
  background: var(--tentex-color-primary) !important;
  color: #fff !important;
}

.tentex-portal-theme .tentex-contact-edit-form label,
.tentex-portal-theme .sk-quote-request-wrap label,
.tentex-portal-theme .tentex-field label,
.tentex-portal-theme .tentex-card label {
  color: var(--tentex-color-text);
}

@media (max-width: 1199px) {
  .tentex-portal-theme .nk-header,
  .tentex-portal-theme header.nk-header,
  .tentex-portal-theme .nk-header-wrap,
  .tentex-portal-theme .header-main,
  .tentex-portal-theme .nk-header-fixed {
    background: linear-gradient(180deg, #0d2036 0%, #12385a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(16, 35, 60, 0.18);
  }

  .tentex-portal-theme .nk-header-wrap,
  .tentex-portal-theme .header-main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .tentex-portal-theme .nk-header .nk-header-tools,
  .tentex-portal-theme .nk-header-wrap .nk-header-tools,
  .tentex-portal-theme header.nk-header .nk-header-tools,
  .tentex-portal-theme .header-main .nk-header-tools,
  .tentex-portal-theme .nk-header .nk-quick-nav,
  .tentex-portal-theme .nk-header-wrap .nk-quick-nav,
  .tentex-portal-theme .header-main .nk-quick-nav {
    background: transparent !important;
  }

  .tentex-portal-theme .nk-header .nk-header-brand,
  .tentex-portal-theme .nk-header-wrap .nk-header-brand,
  .tentex-portal-theme header.nk-header .nk-header-brand,
  .tentex-portal-theme .header-main .nk-header-brand {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 10px 8px !important;
    margin-right: 0;
    box-shadow: none;
  }

  .tentex-portal-theme .nk-header .nk-menu-trigger,
  .tentex-portal-theme .nk-header-wrap .nk-menu-trigger,
  .tentex-portal-theme header.nk-header .nk-menu-trigger,
  .tentex-portal-theme .nk-header .toggle,
  .tentex-portal-theme .nk-header-wrap .toggle,
  .tentex-portal-theme .header-main .nk-menu-trigger {
    background: transparent !important;
    color: #fff !important;
    border-radius: 12px !important;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .tentex-portal-theme .nk-header .nk-menu-trigger:hover,
  .tentex-portal-theme .nk-header-wrap .nk-menu-trigger:hover,
  .tentex-portal-theme header.nk-header .nk-menu-trigger:hover,
  .tentex-portal-theme .nk-header .toggle:hover,
  .tentex-portal-theme .nk-header-wrap .toggle:hover,
  .tentex-portal-theme .header-main .nk-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.24);
  }

  .tentex-portal-theme .nk-header .nk-menu-trigger,
  .tentex-portal-theme .nk-header .nk-menu-trigger *,
  .tentex-portal-theme .nk-header-wrap .nk-menu-trigger,
  .tentex-portal-theme .nk-header-wrap .nk-menu-trigger *,
  .tentex-portal-theme header.nk-header .nk-menu-trigger,
  .tentex-portal-theme header.nk-header .nk-menu-trigger *,
  .tentex-portal-theme .nk-header .toggle,
  .tentex-portal-theme .nk-header .toggle *,
  .tentex-portal-theme .nk-header-wrap .toggle,
  .tentex-portal-theme .nk-header-wrap .toggle *,
  .tentex-portal-theme .header-main .nk-menu-trigger,
  .tentex-portal-theme .header-main .nk-menu-trigger * {
    color: #fff !important;
    fill: #fff !important;
    stroke: #fff !important;
  }

  .tentex-portal-theme .nk-header .nk-header-brand .logo-link,
  .tentex-portal-theme .nk-header-wrap .nk-header-brand .logo-link,
  .tentex-portal-theme header.nk-header .nk-header-brand .logo-link,
  .tentex-portal-theme .nk-header .nk-header-brand .logo-wrap,
  .tentex-portal-theme .nk-header-wrap .nk-header-brand .logo-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 42px;
  }

  .tentex-portal-theme .nk-header .nk-header-brand img,
  .tentex-portal-theme .nk-header-wrap .nk-header-brand img,
  .tentex-portal-theme header.nk-header .nk-header-brand img,
  .tentex-portal-theme .nk-header .logo-img,
  .tentex-portal-theme .nk-header img[class*="logo"] {
    display: block !important;
    width: auto !important;
    max-width: min(100%, 168px) !important;
    max-height: 40px !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
  }
}

@media (max-width: 991px) {
  .tentex-portal-theme .nk-content,
  .tentex-portal-theme .nk-content-body {
    padding-left: 4px;
    padding-right: 4px;
  }

  .tentex-portal-theme .nk-block-head,
  .tentex-portal-theme .nk-block-between,
  .tentex-portal-theme .tentex-detail-actions,
  .tentex-portal-theme .tentex-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .tentex-portal-theme .button,
  .tentex-portal-theme .btn,
  .tentex-portal-theme .tentex-btn,
  .tentex-portal-theme .sk-btn,
  .tentex-portal-theme .tentex-team-btn {
    width: 100%;
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------- */
/* Portal auth / login refinements                                            */
/* -------------------------------------------------------------------------- */
html.tentex-portal-auth,
body.tentex-portal-auth,
.tentex-portal-auth body {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 95, 154, 0.08), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(231, 47, 75, 0.08), transparent 26%),
    linear-gradient(180deg, #f7f8fc 0%, #edf2f8 100%);
}

body.tentex-portal-auth {
  color: var(--tentex-color-text);
}

.tentex-portal-auth .tentex-auth-shell-parent {
  width: 100%;
  display: flex;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
}

.tentex-portal-auth .tentex-auth-shell-parent::before,
.tentex-portal-auth .tentex-auth-shell-parent::after {
  display: none !important;
}

.tentex-portal-auth .tentex-auth-shell-parent > :not(.tentex-auth-shell) {
  display: none !important;
}

.tentex-portal-auth .tentex-auth-card a[href*="register"],
.tentex-portal-auth .tentex-auth-card a[href*="signup"],
.tentex-portal-auth .tentex-auth-card a[href*="sign-up"],
.tentex-portal-auth .tentex-auth-card a[href*="create-account"] {
  display: none !important;
}

.tentex-portal-auth .tentex-auth-card .tentex-auth-register-cta,
.tentex-portal-auth .tentex-auth-card .woocommerce-form-login__register,
.tentex-portal-auth .tentex-auth-card .salesking-auth-register,
.tentex-portal-auth .tentex-auth-card .tentex-register-block {
  display: none !important;
}

.tentex-portal-auth .tentex-auth-shell {
  position: relative;
  width: min(100%, 560px);
  margin: clamp(36px, 8vh, 96px) auto 40px;
  z-index: 1;
}

.tentex-portal-auth .tentex-auth-shell::before {
  content: "";
  position: absolute;
  inset: -18px -16px -18px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.4));
  box-shadow: 0 28px 60px rgba(16, 35, 60, 0.10);
  pointer-events: none;
}

.tentex-portal-auth .tentex-auth-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  padding: 28px 28px 24px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #0e233b 0%, #005f9a 100%);
  box-shadow: 0 26px 52px rgba(12, 32, 54, 0.22);
}

.tentex-portal-auth .tentex-auth-logo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
}

.tentex-portal-auth .tentex-auth-logo-wrap--empty {
  min-height: 54px;
  padding: 0;
  border-radius: 28px 28px 0 0;
}

.tentex-portal-auth .tentex-auth-logo-wrap > * {
  position: relative;
  z-index: 1;
  margin: 0 !important;
}

.tentex-portal-auth .tentex-auth-logo,
.tentex-portal-auth .tentex-auth-logo-wrap img,
.tentex-portal-auth .tentex-auth-logo-wrap svg {
  display: block;
  width: auto;
  max-width: min(100%, 240px);
  max-height: 72px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.24));
}

.tentex-portal-auth .tentex-auth-card,
.tentex-portal-auth .tentex-auth-card--enhanced {
  position: relative;
  z-index: 2;
  margin: 0 !important;
  border-radius: 0 0 28px 28px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 28px 54px rgba(16, 35, 60, 0.16) !important;
  border: 1px solid rgba(219, 229, 240, 0.9);
  border-top: 0 !important;
  overflow: hidden;
}

.tentex-portal-auth .tentex-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 95, 154, 0.025), rgba(255,255,255,0) 22%);
}

.tentex-portal-auth .tentex-auth-card > * {
  position: relative;
  z-index: 1;
}

.tentex-portal-auth .tentex-auth-card h1,
.tentex-portal-auth .tentex-auth-card h2,
.tentex-portal-auth .tentex-auth-card h3,
.tentex-portal-auth .tentex-auth-card h4 {
  color: #18314f !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.tentex-portal-auth .tentex-auth-card p,
.tentex-portal-auth .tentex-auth-card .text-soft,
.tentex-portal-auth .tentex-auth-card .text-muted,
.tentex-portal-auth .tentex-auth-card small,
.tentex-portal-auth .tentex-auth-card label,
.tentex-portal-auth .tentex-auth-card span,
.tentex-portal-auth .tentex-auth-card div {
  color: inherit;
}

.tentex-portal-auth .tentex-auth-card a {
  color: var(--tentex-color-primary) !important;
}

.tentex-portal-auth .tentex-auth-card a:hover {
  color: var(--tentex-color-secondary) !important;
}

.tentex-portal-auth .tentex-auth-card input[type="text"],
.tentex-portal-auth .tentex-auth-card input[type="email"],
.tentex-portal-auth .tentex-auth-card input[type="password"],
.tentex-portal-auth .tentex-auth-card input[type="search"],
.tentex-portal-auth .tentex-auth-card input[type="tel"] {
  min-height: 50px;
  border: 1px solid rgba(219, 229, 240, 0.95) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}


.tentex-portal-auth .tentex-password-field-wrap {
  position: relative;
  width: 100%;
}

.tentex-portal-auth .tentex-password-field-wrap input[type="password"],
.tentex-portal-auth .tentex-password-field-wrap input[data-tentex-password-field="1"] {
  width: 100%;
  padding-right: 48px !important;
}

.tentex-portal-auth .tentex-password-field-wrap .tentex-password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  float: none !important;
  z-index: 3;
}

.tentex-portal-auth .tentex-password-field-wrap .tentex-password-toggle-source {
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.tentex-portal-auth .tentex-password-field-wrap .tentex-password-toggle svg,
.tentex-portal-auth .tentex-password-field-wrap .tentex-password-toggle i {
  display: block;
  margin: 0 !important;
}




.tentex-portal-auth .tentex-legacy-password-host {
  position: relative;
}

.tentex-portal-auth .tentex-legacy-password-host .form-icon,
.tentex-portal-auth .tentex-legacy-password-host .form-icon-right,
.tentex-portal-auth .tentex-legacy-password-host .passcode-icon,
.tentex-portal-auth .tentex-legacy-password-host .passcode-switch,
.tentex-portal-auth .tentex-legacy-password-host [class*="passcode"],
.tentex-portal-auth .tentex-legacy-password-host [class*="password-toggle"],
.tentex-portal-auth .tentex-legacy-password-host [class*="eye"] {
  position: absolute !important;
  top: 50% !important;
  right: -1px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(1rem + 24px) !important;
  height: calc(1rem + 24px) !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: auto !important;
  clip: auto !important;
  clip-path: none !important;
  z-index: 3 !important;
}

.tentex-portal-auth .tentex-legacy-password-host .form-icon svg,
.tentex-portal-auth .tentex-legacy-password-host .form-icon i,
.tentex-portal-auth .tentex-legacy-password-host .form-icon em,
.tentex-portal-auth .tentex-legacy-password-host .form-icon-right svg,
.tentex-portal-auth .tentex-legacy-password-host .form-icon-right i,
.tentex-portal-auth .tentex-legacy-password-host .form-icon-right em {
  display: block;
  margin: 0 !important;
}

.tentex-portal-auth .tentex-auth-card input[type="text"]:focus,
.tentex-portal-auth .tentex-auth-card input[type="email"]:focus,
.tentex-portal-auth .tentex-auth-card input[type="password"]:focus,
.tentex-portal-auth .tentex-auth-card input[type="search"]:focus,
.tentex-portal-auth .tentex-auth-card input[type="tel"]:focus {
  border-color: rgba(0, 95, 154, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(0, 95, 154, 0.09) !important;
}

.tentex-portal-auth .tentex-auth-card button,
.tentex-portal-auth .tentex-auth-card input[type="submit"],
.tentex-portal-auth .tentex-auth-card .btn,
.tentex-portal-auth .tentex-auth-card .button,
.tentex-portal-auth .tentex-auth-card [type="submit"] {
  min-height: 44px;
  border-radius: 12px !important;
}

.tentex-portal-auth .tentex-auth-card button[type="submit"],
.tentex-portal-auth .tentex-auth-card input[type="submit"],
.tentex-portal-auth .tentex-auth-card .btn-primary,
.tentex-portal-auth .tentex-auth-card .button-primary,
.tentex-portal-auth .tentex-auth-card .btn.btn-primary {
  background: var(--tentex-color-primary) !important;
  border-color: var(--tentex-color-primary) !important;
  color: #fff !important;
  box-shadow: 0 16px 28px rgba(231, 47, 75, 0.22) !important;
}

.tentex-portal-auth .tentex-auth-card button[type="submit"]:hover,
.tentex-portal-auth .tentex-auth-card input[type="submit"]:hover,
.tentex-portal-auth .tentex-auth-card .btn-primary:hover,
.tentex-portal-auth .tentex-auth-card .button-primary:hover,
.tentex-portal-auth .tentex-auth-card .btn.btn-primary:hover {
  background: var(--tentex-color-secondary) !important;
  border-color: var(--tentex-color-secondary) !important;
}

@media (max-width: 767px) {
  html.tentex-portal-auth,
  body.tentex-portal-auth {
    overflow-x: hidden;
  }

  body.tentex-portal-auth {
    padding: 14px 12px 26px;
  }

  .tentex-portal-auth .tentex-auth-shell-parent {
    align-items: flex-start;
    padding: 0 0 20px !important;
  }

  .tentex-portal-auth .tentex-auth-shell {
    width: min(100%, calc(100vw - 24px));
    max-width: 420px;
    margin: 10px auto 20px;
  }

  .tentex-portal-auth .tentex-auth-shell::before {
    inset: -8px -6px -10px;
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(16, 35, 60, 0.12);
  }

  .tentex-portal-auth .tentex-auth-logo-wrap {
    min-height: 96px;
    padding: 18px 16px 14px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 18px 34px rgba(12, 32, 54, 0.18);
  }

  .tentex-portal-auth .tentex-auth-logo,
  .tentex-portal-auth .tentex-auth-logo-wrap img,
  .tentex-portal-auth .tentex-auth-logo-wrap svg {
    max-width: min(100%, 188px);
    max-height: 56px;
  }

  .tentex-portal-auth .tentex-auth-card,
  .tentex-portal-auth .tentex-auth-card--enhanced {
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 18px 34px rgba(16, 35, 60, 0.12) !important;
  }

  .tentex-portal-auth .tentex-auth-card [class*="form"],
  .tentex-portal-auth .tentex-auth-card form,
  .tentex-portal-auth .tentex-auth-card .woocommerce-form,
  .tentex-portal-auth .tentex-auth-card .salesking-login-form {
    width: 100%;
  }

  .tentex-portal-auth .tentex-auth-card input[type="text"],
  .tentex-portal-auth .tentex-auth-card input[type="email"],
  .tentex-portal-auth .tentex-auth-card input[type="password"],
  .tentex-portal-auth .tentex-auth-card input[type="search"],
  .tentex-portal-auth .tentex-auth-card input[type="tel"] {
    min-height: 48px;
  }

  .tentex-portal-auth .tentex-auth-card button,
  .tentex-portal-auth .tentex-auth-card input[type="submit"],
  .tentex-portal-auth .tentex-auth-card .btn,
  .tentex-portal-auth .tentex-auth-card .button,
  .tentex-portal-auth .tentex-auth-card [type="submit"] {
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  .tentex-portal-auth .tentex-auth-shell {
    width: calc(100vw - 20px);
    margin: 8px auto 16px;
  }

  .tentex-portal-auth .tentex-auth-shell::before {
    inset: -6px -4px -8px;
    border-radius: 20px;
  }

  .tentex-portal-auth .tentex-auth-logo-wrap {
    min-height: 88px;
    padding: 16px 14px 12px;
    border-radius: 18px 18px 0 0;
  }

  .tentex-portal-auth .tentex-auth-logo,
  .tentex-portal-auth .tentex-auth-logo-wrap img,
  .tentex-portal-auth .tentex-auth-logo-wrap svg {
    max-width: min(100%, 168px);
    max-height: 50px;
  }

  .tentex-portal-auth .tentex-auth-card,
  .tentex-portal-auth .tentex-auth-card--enhanced {
    border-radius: 0 0 18px 18px !important;
  }
}
