/*
 * TurboNet Main CRM — structural parity with the Mini CRM shell.
 * The measurements and shell anatomy below mirror mini-crm/assets/css/app.css.
 */

:root {
  --tn-mini-blue: #1d65c1;
  --tn-mini-blue-deep: #0d3f91;
  --tn-mini-blue-bright: #2f80ed;
  --tn-mini-bg: #eef4fb;
  --tn-mini-card: #fff;
  --tn-mini-text: #102a56;
  --tn-mini-muted: #66758b;
  --tn-mini-border: #dbe7f8;
  --tn-mini-shadow: 0 10px 26px rgba(15, 45, 95, .13);
  --sidebar-w: 260px;
  --shell-pad: 0px;
}

html,
body.tn-mini-parity-shell {
  min-height: 100%;
  background: var(--tn-mini-bg) !important;
}

body.tn-mini-parity-shell {
  display: flex !important;
  min-height: 100vh;
  margin: 0;
  padding: 0 !important;
  color: var(--tn-mini-text);
}

body.tn-mini-parity-shell::before,
body.tn-mini-parity-shell::after {
  display: none !important;
}

/* Mini CRM sidebar: 260px, full-height blue rail, grouped permission-filtered links. */
.tn-mini-parity-shell > #sidebarRoot.sidebar {
  position: sticky !important;
  inset: auto !important;
  top: 0 !important;
  display: flex !important;
  flex: 0 0 260px;
  flex-direction: column;
  width: 260px !important;
  height: 100vh;
  min-height: 100vh;
  padding: 0 !important;
  color: #fff;
  background: linear-gradient(180deg, #0d3f91, #2877db) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none;
  overflow: hidden;
  z-index: 120;
}

.tn-mini-parity-shell .brand {
  display: flex;
  flex: 0 0 92px;
  align-items: center;
  gap: 12px;
  height: 92px;
  padding: 0 28px;
  color: #fff;
  font-size: 28px;
}

.tn-mini-parity-shell .brand .logo {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--tn-mini-blue);
  background: #fff;
  border-radius: 50%;
  font-weight: 800;
}

.tn-mini-parity-shell .brand b {
  min-width: 0;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tn-mini-parity-shell .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, .34) transparent;
}

.tn-mini-parity-shell #sidebarRoot .side-group {
  display: grid;
  gap: 0;
  padding-block: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.tn-mini-parity-shell #sidebarRoot .side-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 5px 28px 7px;
  color: rgba(234, 243, 255, .78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tn-mini-parity-shell #sidebarRoot .side-group-heading small {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding-inline: 6px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: 11px;
}

.tn-mini-parity-shell #sidebarRoot .side-group-links {
  display: grid;
}

.tn-mini-parity-shell #sidebarRoot .side-link {
  display: flex !important;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  margin: 0 !important;
  padding: 17px 28px !important;
  color: #eaf3ff !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .06) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  font-weight: 700;
  transform: none !important;
}

.tn-mini-parity-shell #sidebarRoot .side-link:hover,
.tn-mini-parity-shell #sidebarRoot .side-link.active,
.tn-mini-parity-shell #sidebarRoot .side-link.is-active {
  color: #fff !important;
  background: rgba(255, 255, 255, .16) !important;
}

.tn-mini-parity-shell #sidebarRoot .side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  color: inherit;
}

.tn-mini-parity-shell #sidebarRoot .side-icon svg {
  width: 20px;
  height: 20px;
}

.tn-mini-parity-shell #sidebarRoot .side-link b {
  min-width: 0;
  color: inherit !important;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Mini CRM main + topbar anatomy. */
.tn-mini-parity-shell > .main.main-content {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--tn-mini-bg) !important;
}

.tn-mini-parity-shell > .main > .topbar {
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 92px;
  margin: 0 !important;
  padding: 0 32px !important;
  color: #fff;
  background: linear-gradient(90deg, #0d3f91, #2f80ed) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.tn-mini-parity-shell .topbar .search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 420px;
  min-width: 280px;
  margin: 0;
  padding: 10px 16px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 0;
  border-radius: 16px;
}

.tn-mini-parity-shell .topbar .search input {
  width: 100%;
  min-height: 28px;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0;
  font-size: 18px;
}

.tn-mini-parity-shell .topbar .search input::placeholder {
  color: rgba(255, 255, 255, .76) !important;
}

.tn-mini-parity-shell .top-actions,
.tn-mini-parity-shell .top-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-mini-parity-shell .top-actions {
  flex: 0 0 auto;
  gap: 12px;
}

.tn-mini-parity-shell .top-lang-switch a,
.tn-mini-parity-shell .topbar .icon-btn,
.tn-mini-parity-shell .topbar .avatar {
  display: inline-grid !important;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: rgba(255, 255, 255, .14) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  text-decoration: none;
  font-weight: 800;
}

.tn-mini-parity-shell .top-lang-switch a.active {
  color: var(--tn-mini-blue) !important;
  -webkit-text-fill-color: var(--tn-mini-blue) !important;
  background: #fff !important;
}

.tn-mini-parity-shell .topbar .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50% !important;
}

.tn-mini-parity-shell .mini-mobile-menu {
  display: none !important;
}

.tn-mini-parity-shell .topbar .dropdown-menu {
  margin-top: 10px;
  color: var(--tn-mini-text) !important;
  background: #fff !important;
  border: 1px solid var(--tn-mini-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--tn-mini-shadow) !important;
}

.tn-mini-parity-shell .topbar .dropdown-menu :is(a, button, div) {
  color: var(--tn-mini-text);
  -webkit-text-fill-color: currentColor;
}

.tn-mini-parity-shell .mini-notif-head {
  border-bottom: 1px solid var(--tn-mini-border);
}

.tn-mini-parity-shell > .main > .content {
  width: 100%;
  min-width: 0;
  padding: 28px 34px;
}

/* Shared page primitives keep the same Mini CRM surface language. */
.tn-mini-parity-shell .content :is(
  .ui-card, .ui-panel, .ui-surface, .card, .panel,
  .glass, .glass2, .isp-glass, .isp-glass2,
  .dashboard-kpi, .dashboard-panel, .dashboard-chart,
  .modal-content, .ui-modal-card
) {
  color: var(--tn-mini-text);
  background: var(--tn-mini-card);
  border-color: var(--tn-mini-border);
  border-radius: 14px;
  box-shadow: var(--tn-mini-shadow);
  backdrop-filter: none;
  transform: none;
}

.tn-mini-parity-shell .content :is(.btn-primary, .ui-btn-primary, .isp-btn-primary, .action-btn.primary) {
  color: #fff;
  background: #2f80ed;
  border-color: #2f80ed;
  border-radius: 10px !important;
}

.tn-mini-parity-shell .content :is(.btn-soft, .ui-btn-soft, .ui-btn, .action-btn, .icon-btn) {
  color: #0b4e9c;
  background: #f8fbff;
  border-color: #bfdbfe;
  border-radius: 10px !important;
  box-shadow: none;
}

.tn-mini-parity-shell .content :is(input, select, textarea, .form-control, .form-select, .ui-field, .ui-input, .ui-select, .ui-textarea) {
  color: var(--tn-mini-text);
  background: #fff;
  border-color: #cddcf2;
  border-radius: 12px !important;
  box-shadow: none;
}

.tn-mini-parity-shell .content :is(input, select, textarea, .form-control, .form-select, .ui-field, .ui-input, .ui-select, .ui-textarea):focus {
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .12) !important;
}

.tn-mini-parity-shell .content table {
  color: var(--tn-mini-text);
  background: #fff;
}

.tn-mini-parity-shell .content table thead th {
  color: #15335f;
  background: #f6f9fe !important;
  border-color: var(--tn-mini-border) !important;
}

.tn-mini-parity-shell .content table tbody td {
  border-color: #eef3fb !important;
}

/* Main dashboard mapped to Mini's page-title, kpi-grid and card proportions. */
.tn-mini-parity-shell .dashboard-shell {
  display: block;
  color: var(--tn-mini-text);
}

.tn-mini-parity-shell .dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
}

.tn-mini-parity-shell .dashboard-title {
  margin: 0 0 6px;
  color: var(--tn-mini-text) !important;
  font-size: 30px !important;
  line-height: 1.2;
  letter-spacing: 0;
}

.tn-mini-parity-shell .dashboard-subtitle,
.tn-mini-parity-shell .dashboard-group-subtitle {
  margin: 0;
  color: #65748b !important;
  font-size: 14px;
}

.tn-mini-parity-shell .dashboard-actions,
.tn-mini-parity-shell .dashboard-quickbar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tn-mini-parity-shell .dashboard-action-disclosure,
.tn-mini-parity-shell .dashboard-tools-disclosure {
  min-width: 0;
}

.tn-mini-parity-shell .dashboard-action-disclosure > .dashboard-actions,
.tn-mini-parity-shell .dashboard-tools-disclosure > .dashboard-quickbar-main {
  display: flex;
}

.tn-mini-parity-shell .dashboard-mobile-summary {
  display: none;
}

.tn-mini-parity-shell .dashboard-quickbar {
  margin: 0 0 24px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(30, 70, 130, .08);
  border-radius: 14px;
  box-shadow: var(--tn-mini-shadow);
}

.tn-mini-parity-shell .dashboard-sections {
  display: grid;
  gap: 24px;
}

.tn-mini-parity-shell .dashboard-group {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tn-mini-parity-shell .dashboard-group-head {
  margin: 0 0 14px;
  padding: 0;
}

.tn-mini-parity-shell .dashboard-group-title {
  margin: 0 0 6px;
  color: var(--tn-mini-text) !important;
  font-size: 22px;
}

.tn-mini-parity-shell .dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}

.tn-mini-parity-shell .dashboard-kpi {
  display: block;
  min-height: 132px;
  padding: 22px !important;
  color: var(--tn-mini-text) !important;
  background: #fff !important;
  border: 1px solid rgba(30, 70, 130, .08) !important;
  border-radius: 14px !important;
  box-shadow: var(--tn-mini-shadow) !important;
  text-decoration: none;
  overflow: hidden;
}

.tn-mini-parity-shell .dashboard-kpi::before,
.tn-mini-parity-shell .dashboard-kpi::after {
  display: none !important;
}

.tn-mini-parity-shell .dashboard-kpi-label {
  margin: 0;
  color: #274985 !important;
  font-size: 14px;
  font-weight: 700;
}

.tn-mini-parity-shell .dashboard-kpi-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.tn-mini-parity-shell .dashboard-kpi-value {
  color: var(--tn-mini-text) !important;
  font-size: 36px !important;
  line-height: 1.1;
}

.tn-mini-parity-shell .dashboard-kpi-pill {
  color: #174a99;
  background: #e8f1ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
}

.tn-mini-parity-shell .dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}

.tn-mini-parity-shell .dashboard-panel-wrap {
  min-width: 0;
}

.tn-mini-parity-shell .dashboard-panel-wrap > :not(.dashboard-card-drag) {
  height: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(30, 70, 130, .08);
  border-radius: 14px;
  box-shadow: var(--tn-mini-shadow);
}

.tn-mini-parity-shell .dashboard-card-drag,
.tn-mini-parity-shell .dashboard-lane-empty {
  display: none;
}

.tn-mini-parity-shell .backdrop {
  z-index: 119;
}

/* Auth uses the same Mini blue identity without changing the form contract. */
body:has(.auth-topbar) {
  background: linear-gradient(135deg, #0d3f91, #2f80ed) !important;
}

body:has(.auth-topbar) :is(.glass, .ui-card, .card) {
  background: #fff;
  border-color: var(--tn-mini-border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

@media (max-width: 900px) {
  body.tn-mini-parity-shell {
    display: block !important;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .tn-mini-parity-shell > #sidebarRoot.sidebar {
    position: fixed !important;
    inset-block: 0 !important;
    inset-inline-start: 0 !important;
    width: min(88vw, 390px) !important;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 0 25px 80px rgba(2, 20, 60, .42) !important;
  }

  html[dir="rtl"] .tn-mini-parity-shell > #sidebarRoot.sidebar {
    transform: translateX(105%);
  }

  .tn-mini-parity-shell > #sidebarRoot.sidebar.open {
    transform: translateX(0) !important;
  }

  .tn-mini-parity-shell > .main.main-content {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
  }

  .tn-mini-parity-shell > .main > .topbar {
    min-height: 70px;
    padding: 10px 14px !important;
    gap: 10px;
  }

  .tn-mini-parity-shell .mini-mobile-menu {
    display: inline-grid !important;
    flex: 0 0 46px;
  }

  .tn-mini-parity-shell .topbar .search {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tn-mini-parity-shell .top-lang-switch {
    display: none;
  }

  .tn-mini-parity-shell > .main > .content {
    max-width: 100vw;
    padding: 18px 10px;
    overflow-x: hidden;
  }

  .tn-mini-parity-shell .dashboard-header {
    display: grid;
  }

  .tn-mini-parity-shell .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tn-mini-parity-shell .dashboard-edit-mode .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .tn-mini-parity-shell .dashboard-panels {
    grid-template-columns: 1fr;
  }

  .tn-mini-parity-shell .dashboard-tool-btn,
  .tn-mini-parity-shell .dashboard-card-drag {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 900px) {
  .tn-mini-parity-shell .dashboard-shell,
  .tn-mini-parity-shell .dashboard-header,
  .tn-mini-parity-shell .dashboard-action-disclosure,
  .tn-mini-parity-shell .dashboard-actions,
  .tn-mini-parity-shell .dashboard-quickbar,
  .tn-mini-parity-shell .dashboard-tools-disclosure,
  .tn-mini-parity-shell .dashboard-quickbar-main,
  .tn-mini-parity-shell .dashboard-sections,
  .tn-mini-parity-shell .dashboard-group,
  .tn-mini-parity-shell .dashboard-group-head,
  .tn-mini-parity-shell .dashboard-kpis,
  .tn-mini-parity-shell .dashboard-panels,
  .tn-mini-parity-shell .dashboard-panel-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .tn-mini-parity-shell .dashboard-shell {
    overflow-wrap: anywhere;
  }

  .tn-mini-parity-shell .dashboard-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .tn-mini-parity-shell .dashboard-title {
    margin-bottom: 4px;
    font-size: 26px !important;
  }

  .tn-mini-parity-shell .dashboard-subtitle {
    overflow-wrap: anywhere;
  }

  .tn-mini-parity-shell .dashboard-meta-line {
    gap: 6px;
    margin-top: 8px;
  }

  .tn-mini-parity-shell .dashboard-role-pill,
  .tn-mini-parity-shell .dashboard-mini-pill {
    max-width: 100%;
    min-height: 28px;
    padding-inline: 6px;
    text-align: start;
    font-size: 11px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tn-mini-parity-shell .dashboard-mobile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--tn-mini-text);
    background: var(--tn-mini-card);
    border: 1px solid var(--tn-mini-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    list-style-position: inside;
  }

  .tn-mini-parity-shell .dashboard-mobile-summary::marker {
    color: var(--tn-mini-blue);
  }

  .tn-mini-parity-shell .dashboard-action-disclosure:not([open]) > .dashboard-actions,
  .tn-mini-parity-shell .dashboard-tools-disclosure:not([open]) > .dashboard-quickbar-main {
    display: none;
  }

  .tn-mini-parity-shell .dashboard-action-disclosure[open] > .dashboard-actions,
  .tn-mini-parity-shell .dashboard-tools-disclosure[open] > .dashboard-quickbar-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .tn-mini-parity-shell .dashboard-actions > :is(a, button),
  .tn-mini-parity-shell .dashboard-quickbar-main > :is(a, button) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 8px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tn-mini-parity-shell .dashboard-quickbar {
    position: static;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 12px;
  }

  .tn-mini-parity-shell .dashboard-quickbar-status {
    padding-inline: 4px;
  }

  .tn-mini-parity-shell .dashboard-sections {
    gap: 16px;
  }

  .tn-mini-parity-shell .dashboard-group-head {
    gap: 8px;
    margin-bottom: 8px;
  }

  .tn-mini-parity-shell .dashboard-group-title {
    margin-bottom: 3px;
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .tn-mini-parity-shell .dashboard-group-subtitle {
    overflow-wrap: anywhere;
  }

  .tn-mini-parity-shell .dashboard-kpis {
    gap: 10px;
    margin-bottom: 16px;
  }

  .tn-mini-parity-shell .dashboard-panels,
  .tn-mini-parity-shell .dashboard-edit-mode .dashboard-panels {
    gap: 12px;
  }

  .tn-mini-parity-shell .dashboard-kpi {
    min-height: 104px;
    padding: 14px !important;
  }

  .tn-mini-parity-shell .dashboard-kpi-label {
    margin-bottom: 0;
    overflow-wrap: anywhere;
  }

  .tn-mini-parity-shell .dashboard-kpi-row {
    gap: 8px;
    margin-top: 5px;
  }

  .tn-mini-parity-shell .dashboard-kpi-value {
    min-width: 0;
    font-size: 30px !important;
  }

  .tn-mini-parity-shell .dashboard-panel-wrap > :not(.dashboard-card-drag) {
    padding: 14px;
  }

  .tn-mini-parity-shell .dashboard-tool-btn,
  .tn-mini-parity-shell .dashboard-card-drag {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 560px) {
  .tn-mini-parity-shell .dashboard-kpis,
  .tn-mini-parity-shell .dashboard-edit-mode .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .tn-mini-parity-shell .topbar .search {
    padding: 8px 11px;
  }

  .tn-mini-parity-shell .topbar .search input {
    font-size: 14px;
  }

  .tn-mini-parity-shell .topbar #themeToggleBtn {
    display: none !important;
  }

  .tn-mini-parity-shell .top-actions {
    gap: 6px;
  }
}

body.tn-mini-parity-shell[data-theme="dark"],
body.tn-mini-parity-shell[data-theme-mode="dark"] {
  --tn-mini-bg: #07111f;
  --tn-mini-card: #0f172a;
  --tn-mini-text: #e2e8f0;
  --tn-mini-muted: #94a3b8;
  --tn-mini-border: rgba(148, 163, 184, .18);
  --tn-mini-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

body.tn-mini-parity-shell[data-theme="dark"] .dashboard-kpi,
body.tn-mini-parity-shell[data-theme-mode="dark"] .dashboard-kpi {
  color: var(--tn-mini-text) !important;
  background: var(--tn-mini-card) !important;
  border-color: var(--tn-mini-border) !important;
}

body.tn-mini-parity-shell[data-theme="dark"] .dashboard-kpi-label,
body.tn-mini-parity-shell[data-theme-mode="dark"] .dashboard-kpi-label {
  color: var(--tn-mini-muted) !important;
}

body.tn-mini-parity-shell[data-theme="dark"] .dashboard-kpi-pill,
body.tn-mini-parity-shell[data-theme-mode="dark"] .dashboard-kpi-pill {
  color: #bfdbfe;
  background: #172554;
  border-color: #1e40af;
}

/*
 * Login — same centered white-card composition used by Mini CRM.
 * This shell deliberately owns the auth structure even when a visual theme is active.
 */
body.tn-mini-auth-shell {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 28px !important;
  color: #102a56;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .17), transparent 29%),
    radial-gradient(circle at 86% 86%, rgba(96, 165, 250, .20), transparent 27%),
    linear-gradient(135deg, #0d3f91 0%, #1d65c1 52%, #2f80ed 100%) !important;
  overflow-x: hidden;
}

body.tn-mini-auth-shell::before,
body.tn-mini-auth-shell::after {
  display: none !important;
}

.tn-mini-auth-shell .auth-screen {
  display: grid;
  gap: 16px;
  width: min(520px, 94vw);
  margin: auto;
}

.tn-mini-auth-shell .auth-card {
  position: relative;
  width: 100%;
  padding: 30px !important;
  color: #102a56 !important;
  text-align: center;
  background: rgba(255, 255, 255, .985) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 26px !important;
  box-shadow: 0 26px 70px rgba(2, 20, 55, .32) !important;
  backdrop-filter: none !important;
  transform: none !important;
}

.tn-mini-auth-shell .auth-lang-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
}

.tn-mini-auth-shell .auth-lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 38px;
  padding: 8px 12px;
  color: #174a99 !important;
  background: #edf5ff !important;
  border: 1px solid #dce8f8 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.tn-mini-auth-shell .auth-lang-switch a.active {
  color: #fff !important;
  background: #174a99 !important;
  border-color: #174a99 !important;
  box-shadow: 0 8px 18px rgba(23, 74, 153, .20) !important;
}

.tn-mini-auth-shell .auth-card-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 0 22px;
}

.tn-mini-auth-shell .auth-brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0;
  color: #fff;
  background: linear-gradient(135deg, #0d3f91, #2f80ed);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(29, 101, 193, .25);
  font-size: 25px;
  font-weight: 900;
}

.tn-mini-auth-shell .auth-brand-copy {
  display: grid;
  gap: 4px;
}

.tn-mini-auth-shell .auth-brand-copy strong {
  color: #08285d;
  font-size: 21px;
  font-weight: 900;
}

.tn-mini-auth-shell .auth-brand-copy span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.tn-mini-auth-shell .auth-login-content {
  width: 100%;
}

.tn-mini-auth-shell .auth-login-heading {
  margin-bottom: 22px;
}

.tn-mini-auth-shell .auth-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 7px 11px;
  color: #174a99;
  background: #eef6ff;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tn-mini-auth-shell .auth-login-heading h1 {
  margin: 0 0 8px;
  color: #08285d !important;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.tn-mini-auth-shell .auth-login-heading p {
  margin: 0;
  color: #526174 !important;
  line-height: 1.55;
  font-weight: 700;
}

.tn-mini-auth-shell .auth-error {
  margin: 0 0 16px;
  padding: 13px 14px;
  color: #991b1b;
  background: #fff1f1;
  border: 1px solid #fecaca;
  border-radius: 14px;
  text-align: start;
  font-weight: 800;
}

.tn-mini-auth-shell .auth-notice {
  margin: 0 0 16px;
  padding: 13px 14px;
  color: #0757b8;
  background: #eef7ff;
  border: 1px solid #b9dcff;
  border-radius: 14px;
  text-align: start;
  font-weight: 800;
}

.tn-mini-auth-shell .auth-login-form {
  display: grid;
  gap: 15px;
  text-align: start;
}

.tn-mini-auth-shell .auth-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.tn-mini-auth-shell .auth-field > span:first-child {
  color: #174a99;
  font-size: 13px;
  font-weight: 900;
}

.tn-mini-auth-shell .auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: #52719c;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 15px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.tn-mini-auth-shell .auth-input-wrap:focus-within {
  color: #174a99;
  background: #fff;
  border-color: #2f80ed;
  box-shadow: 0 0 0 4px rgba(47, 128, 237, .12);
}

.tn-mini-auth-shell .auth-input-wrap i {
  flex: 0 0 auto;
  font-size: 18px;
}

.tn-mini-auth-shell .auth-input-wrap input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 !important;
  color: #102a56 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-size: 16px;
  font-weight: 800;
}

.tn-mini-auth-shell .auth-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  margin-top: 3px;
  padding: 14px 18px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(90deg, #0d3f91, #2f80ed) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 13px 24px rgba(29, 101, 193, .22) !important;
  font-weight: 900;
}

.tn-mini-auth-shell .auth-button:hover {
  filter: brightness(1.05);
}

.tn-mini-auth-shell .auth-button :is(i, span) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

.tn-mini-auth-shell .auth-customer-policy {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: #174a99;
  background: #f1f7ff;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.55;
}

.tn-mini-auth-shell .auth-customer-policy span {
  color: #64748b;
}

.tn-mini-auth-shell .auth-secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-weight: 800;
  cursor: not-allowed;
  opacity: .72;
}

.tn-mini-auth-shell .auth-form-note {
  color: #64748b;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.tn-mini-auth-shell .auth-footer {
  display: flex;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 255, 255, .84);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.tn-mini-auth-shell .auth-footer b {
  color: #fff;
}

.tn-mini-auth-shell .theme-slot {
  margin: 14px 0;
}

@media (max-width: 600px) {
  body.tn-mini-auth-shell {
    align-items: flex-start;
    padding: 16px !important;
  }

  .tn-mini-auth-shell .auth-screen {
    width: 100%;
  }

  .tn-mini-auth-shell .auth-card {
    margin-top: 20px;
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }

  .tn-mini-auth-shell .auth-brand-mark {
    width: 52px;
    height: 52px;
  }

  .tn-mini-auth-shell .auth-login-heading h1 {
    font-size: 25px;
  }

  .tn-mini-auth-shell .auth-footer {
    display: grid;
    gap: 2px;
    font-size: 12px;
  }
}
