:root {
  --sidebar-width: 226px;
  --topbar-height: 68px;
  --font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --shadow-sm: 0 2px 7px rgba(35, 65, 104, .09);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body {
  background: #f5f8fc;
  color: #242b38;
  font-size: 11.9px;
  letter-spacing: 0;
}

.sidebar {
  background: #014490;
  box-shadow: 3px 0 12px rgba(18, 60, 110, .14);
}

.brand {
  background: #003b7b;
  gap: 8px;
  height: var(--topbar-height);
  padding: 0 20px;
}

.brand-mark {
  background: #eef7ff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  box-shadow: none;
  height: 38px;
  min-width: 48px;
  overflow: hidden;
  width: 48px;
}

.brand-mark img {
  display: block;
  aspect-ratio: 485 / 380;
  height: 38px;
  max-width: none;
  object-fit: cover;
  transform: none;
  width: 48px;
}

.brand-copy strong {
  font-size: 16.15px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-list {
  gap: 4px;
  overflow: hidden;
  padding: 18px 10px;
}

.nav-item,
.nav-group-toggle {
  border-radius: 8px;
  color: rgba(255, 255, 255, .9);
  font-size: 13.6px;
  font-weight: 600;
  gap: 16px;
  min-height: 50px;
  padding: 0 20px;
}

.nav-item.active {
  background: #106af6;
  box-shadow: 0 7px 18px rgba(0, 42, 120, .24);
}

.nav-icon {
  font-size: 17px;
  height: 22px;
  min-width: 22px;
  width: 22px;
}

.nav-group-toggle .nav-label {
  gap: 16px;
}

.chevron {
  align-items: center;
  border: 0;
  display: inline-flex;
  font-size: 9.35px;
  height: 14px;
  justify-content: center;
  transform: none;
  width: 14px;
}

.nav-group-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.nav-submenu {
  gap: 0;
}

.nav-subitem {
  font-size: 12.75px;
  font-weight: 500;
  min-height: 49px;
  padding-left: 48px;
}

.nav-subitem::before {
  display: none;
}

.nav-subitem .nav-icon {
  font-size: 14.45px;
  height: 18px;
  min-width: 18px;
  width: 18px;
}

.sidebar-footer {
  border-top-color: rgba(255, 255, 255, .24);
  padding: 15px 12px 20px;
}

.collapse-button {
  color: rgba(255, 255, 255, .72);
  font-size: 12.75px;
  gap: 15px;
  min-height: 46px;
  padding: 0 20px;
}

.topbar {
  backdrop-filter: none;
  background: #fff;
  border-bottom-color: #dbe3ec;
  box-shadow: 0 2px 7px rgba(35, 65, 104, .09);
  height: var(--topbar-height);
  padding: 0 35px 0 25px;
}

.topbar-left {
  gap: 27px;
}

.topbar-menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #26313e;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.topbar-menu-button .nav-icon {
  font-size: 19.55px;
}

.page-heading {
  color: #242b38;
  font-size: 16.15px;
  font-weight: 600;
  letter-spacing: 0;
}

.topbar-actions {
  gap: 22px;
}

.global-search {
  background: #fff;
  border-color: #cbd6e4;
  border-radius: 8px;
  color: #68788b;
  font-size: 12.75px;
  gap: 10px;
  height: 42px;
  margin-right: 16px;
  padding: 0 13px;
  width: 403px;
}

.global-search input::placeholder {
  color: #a7b0bc;
}

.global-search .nav-icon {
  font-size: 14.45px;
  height: 18px;
  min-width: 18px;
  width: 18px;
}

.notification-trigger {
  background: transparent;
  border: 0;
  color: #344151;
  height: 42px;
  margin-left: -17px;
  margin-right: 17px;
  width: 36px;
}

.notification-trigger .nav-icon {
  font-size: 17.85px;
}

.notification-badge {
  border: 0;
  border-radius: 12px;
  font-size: 9.35px;
  height: 20px;
  min-width: 20px;
  right: -7px;
  top: 0;
}

.user-menu {
  gap: 11px;
  height: 48px;
  padding: 0 2px;
}

.avatar {
  background: #1674ef;
  font-size: 15.3px;
  height: 37px;
  width: 37px;
}

.user-copy strong {
  color: #29313d;
  font-size: 12.75px;
  font-weight: 600;
}

.user-menu .chevron {
  color: #3a4654;
  margin-left: 12px;
}

.page-content {
  margin: 0;
  max-width: none;
  padding: 16px 29px 27px 27px;
}

.dashboard-stack {
  display: block;
}

.dashboard-heading {
  align-items: center;
  display: flex;
  min-height: 38px;
}

.dashboard-heading h2 {
  color: #111722;
  font-size: 26.35px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 32.3px;
  margin: 0;
}

.dashboard-meta {
  align-items: center;
  color: #3e4857;
  display: flex;
  font-size: 13.6px;
  gap: 48px;
  margin-left: 69px;
}

.dashboard-meta span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.dashboard-meta i {
  color: #1976f3;
  font-size: 15.3px;
  font-style: normal;
  width: 18px;
}

.dashboard-meta span:last-child i {
  color: #3f4f61;
}

.dashboard-stack .metrics-grid {
  gap: 28px;
  grid-template-columns: 315fr 341fr 320fr 329fr;
  height: 144px;
  margin-top: 17px;
}

.dashboard-stack .metric-card {
  align-items: center;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  box-shadow: 0 3px 9px rgba(37, 66, 101, .10);
  display: flex;
  justify-content: space-between;
  padding: 18px 19px 17px 23px;
}

.dashboard-stack .metric-card::after {
  display: none;
}

.metric-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-label {
  color: #202733;
  font-size: 14.45px;
  line-height: 20.4px;
}

.dashboard-stack .metric-value {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 40.8px;
  margin: 2px 0 0;
}

.metric-blue .metric-value { color: #1364e7; }
.metric-violet .metric-value { color: #6344db; }
.metric-orange .metric-value { color: #f07e0d; }
.metric-teal .metric-value { color: #139b96; }

.dashboard-stack .metric-foot {
  color: #4d5662;
  font-size: 11.9px;
  gap: 8px;
  line-height: 18.7px;
}

.dashboard-stack .metric-foot em {
  align-items: center;
  color: #ff3e49;
  display: inline-flex;
  font-style: normal;
  gap: 3px;
}

.dashboard-stack .metric-foot i {
  font-size: 10.2px;
  font-style: normal;
}

.dashboard-stack .metric-icon {
  border-radius: 50%;
  font-size: 33.15px;
  height: 82px;
  min-width: 82px;
  width: 82px;
}

.dashboard-stack .metric-icon.blue { background: #eaf2ff; color: #1468ec; }
.dashboard-stack .metric-icon.violet { background: #eeeafe; color: #6645dd; }
.dashboard-stack .metric-icon.orange { background: #fff0df; color: #f17b09; }
.dashboard-stack .metric-icon.teal { background: #e5f5f4; color: #0f9f99; }

.panel {
  border-color: #dce4ed;
  border-radius: 8px;
  box-shadow: 0 3px 9px rgba(37, 66, 101, .09);
}

.dashboard-overview-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr) minmax(240px, .65fr);
  height: 290px;
  margin-top: 18px;
}

@media (min-width: 1401px) {
  .dashboard-overview-grid {
    gap: 0;
    grid-template-columns: minmax(0, 680fr) 27px minmax(360px, 402fr) 21px minmax(240px, 260fr);
  }

  .dashboard-overview-grid .trend-panel { grid-column: 1; }
  .dashboard-overview-grid .status-panel { grid-column: 3; }
  .dashboard-overview-grid .quick-panel { grid-column: 5; }
}

.dashboard-overview-grid .panel-head,
.latest-panel > .panel-head {
  align-items: center;
  padding: 13px 20px 0;
}

.dashboard-overview-grid .panel-head h3,
.latest-panel > .panel-head h3 {
  color: #151b25;
  font-size: 15.3px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 23.8px;
}

.range-select select {
  appearance: auto;
  background: #fff;
  border: 1px solid #cbd7e4;
  border-radius: 6px;
  color: #5b6777;
  font-size: 11.9px;
  height: 30px;
  outline: 0;
  padding: 0 8px;
  width: 89px;
}

.range-select select:focus {
  border-color: #4389f7;
  box-shadow: 0 0 0 3px rgba(25, 118, 243, .10);
}

.dashboard-stack .line-chart {
  height: 244px;
  padding: 0 14px 0 9px;
}

.dashboard-stack .line-chart canvas,
.donut-chart-wrap canvas {
  display: block;
  height: 100% !important;
  width: 100% !important;
}

.dashboard-stack .donut-layout {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 246px;
  padding: 8px 15px 16px 10px;
  position: relative;
  top: -10px;
}

.donut-chart-wrap {
  height: 200px;
  margin: auto;
  position: relative;
  transform: translateY(4px);
  width: 200px;
}

.dashboard-stack .donut-center {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
}

.dashboard-stack .donut-center span {
  color: #606a77;
  font-size: 11.9px;
  line-height: 17px;
}

.dashboard-stack .donut-center strong {
  color: #141923;
  font-size: 23.8px;
  font-weight: 600;
  line-height: 28.9px;
}

.dashboard-stack .donut-legend {
  gap: 24px;
  min-width: 0;
}

.dashboard-stack .donut-legend > div {
  gap: 8px;
  justify-content: flex-start;
  white-space: nowrap;
}

.dashboard-stack .donut-legend span {
  color: #4c5765;
  flex: 0 0 64px;
  font-size: 10.2px;
  gap: 7px;
}

.dashboard-stack .donut-legend strong {
  color: #46515f;
  font-size: 10.2px;
  font-weight: 400;
}

.dashboard-stack .donut-legend small {
  color: #697585;
  font-size: 10.2px;
}

.dashboard-stack .dot {
  height: 8px;
  width: 8px;
}

.dashboard-stack .quick-panel {
  display: block;
  padding: 0;
}

.dashboard-stack .quick-action {
  border: 0;
  border-radius: 7px;
  color: #165bb6;
  gap: 14px;
  height: 66px;
  margin: 13px 22px 0;
  padding: 0 25px;
  width: calc(100% - 44px);
}

.dashboard-stack .quick-action:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.dashboard-stack .quick-action.primary {
  background: #126ff0;
  box-shadow: none;
  color: #fff;
}

.dashboard-stack .quick-action.assign {
  background: #e8f1ff;
}

.dashboard-stack .quick-action.export {
  background: #e5f5f6;
  color: #138c88;
}

.dashboard-stack .quick-icon {
  background: transparent;
  border-radius: 0;
  color: inherit;
  font-size: 26.35px;
  height: 36px;
  min-width: 36px;
  width: 36px;
}

.dashboard-stack .quick-action.primary .quick-icon {
  background: transparent;
}

.dashboard-stack .quick-action strong {
  font-size: 14.45px;
  font-weight: 600;
  white-space: nowrap;
}

.latest-panel {
  display: flex;
  flex-direction: column;
  height: 310px;
  margin-top: 12px;
  overflow: hidden;
}

.latest-panel > .panel-head {
  min-height: 41px;
  padding-top: 8px;
}

.latest-panel .table-wrap {
  border: 1px solid #cbd7e4;
  margin: 0 20px;
  overflow: hidden;
  padding: 0;
}

.latest-panel table {
  table-layout: fixed;
}

.latest-panel th,
.latest-panel td {
  border-bottom: 1px solid #d3dde8;
  color: #405064;
  font-size: 11.05px;
  height: 33px;
  line-height: 17px;
  overflow: hidden;
  padding: 5px 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-panel th {
  background: #fff;
  color: #314154;
  font-weight: 500;
}

.latest-panel th:nth-child(1) { width: 15%; }
.latest-panel th:nth-child(2) { width: 13%; }
.latest-panel th:nth-child(3) { width: 18%; }
.latest-panel th:nth-child(4) { width: 11%; }
.latest-panel th:nth-child(5) { width: 13%; }
.latest-panel th:nth-child(6) { width: 13%; }
.latest-panel th:nth-child(7) { width: 17%; }

.latest-panel tr:last-child td {
  border-bottom: 0;
}

.latest-panel .ticket-id {
  color: #405064;
  font-weight: 400;
}

.latest-panel .priority-badge,
.latest-panel .status-badge {
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 10.2px;
  font-weight: 500;
  line-height: 16.15px;
  padding: 0 8px;
}

.latest-panel .priority-high { background: #fff4f4; color: #f34b55; }
.latest-panel .priority-medium { background: #fff8ef; color: #f18717; }
.latest-panel .priority-low { background: #f0fafa; color: #159f98; }
.latest-panel .status-pending { background: #edf5ff; color: #2578ee; }
.latest-panel .status-processing { background: #f3f0ff; color: #7157e6; }
.latest-panel .status-completed { background: #edf9f7; color: #159f98; }

.latest-more {
  align-items: center;
  align-self: center;
  background: transparent;
  border: 0;
  color: #1472ef;
  display: inline-flex;
  font-size: 11.9px;
  gap: 11px;
  height: 32px;
  justify-content: center;
  margin-top: 1px;
}

.latest-more span {
  font-size: 10.2px;
}

@media (max-width: 1400px) {
  .dashboard-overview-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
    height: auto;
  }

  .dashboard-overview-grid .trend-panel,
  .dashboard-overview-grid .status-panel {
    min-height: 290px;
  }

  .dashboard-stack .quick-panel {
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
  }

  .dashboard-stack .quick-panel .panel-head {
    grid-column: 1 / -1;
    padding: 0 8px;
  }

  .dashboard-stack .quick-action {
    margin: 0;
    width: 100%;
  }

  .latest-panel {
    height: auto;
    min-height: 310px;
  }
}

@media (max-width: 1080px) {
  .dashboard-meta {
    gap: 20px;
    margin-left: 25px;
  }

  .dashboard-stack .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stack .quick-panel {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    width: 226px;
  }

  .topbar {
    padding: 0 16px;
  }

  .topbar-left {
    gap: 14px;
  }

  .page-heading {
    font-size: 14.45px;
  }

  .page-content {
    padding: 16px;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .dashboard-heading h2 {
    font-size: 22.1px;
  }

  .dashboard-stack .metrics-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stack .quick-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-stack .donut-layout {
    grid-template-columns: 1fr;
  }

  .latest-panel .table-wrap {
    overflow-x: auto;
  }

  .latest-panel table {
    min-width: 940px;
  }
}

/* Live system metadata and API-backed interaction surfaces */
.brand-copy {
  min-width: 0;
}

.brand-copy small {
  color: rgba(255, 255, 255, .68);
  display: flex;
  flex-direction: column;
  font-size: 7.65px;
  line-height: 1.35;
  margin-top: 2px;
}

.brand-copy small span:first-child {
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
}

.notification-shell {
  position: relative;
}

.notification-popover {
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(25, 49, 84, .18);
  overflow: hidden;
  position: absolute;
  right: 17px;
  top: 49px;
  width: min(420px, calc(100vw - 24px));
  z-index: 80;
}

.notification-popover[hidden] {
  display: none;
}

.notification-popover header {
  align-items: center;
  border-bottom: 1px solid #e6ebf1;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.notification-popover header div {
  display: flex;
  flex-direction: column;
}

.notification-popover header strong {
  color: #202a37;
  font-size: 16px;
}

.notification-popover header small {
  color: #8290a1;
  font-size: 12px;
  margin-top: 1px;
}

.notification-popover-list {
  max-height: 410px;
  overflow-y: auto;
}

.notification-popover-item {
  align-items: flex-start;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  color: inherit;
  display: flex;
  gap: 12px;
  padding: 15px 17px;
  text-align: left;
  width: 100%;
}

.notification-popover-item:hover,
.notification-popover-item.unread {
  background: #f5f9ff;
}

.notification-popover-item.unread {
  box-shadow: inset 3px 0 #1674ef;
}

.notification-popover-item .notification-icon {
  border-radius: 7px;
  height: 36px;
  min-width: 36px;
}

.notification-popover-item .notification-copy {
  min-width: 0;
}

.notification-popover-item .notification-copy strong {
  font-size: 14px;
  margin-bottom: 2px;
}

.notification-popover-item .notification-copy p {
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-popover-item .notification-copy time {
  font-size: 11px;
  margin-top: 4px;
}

.page-loading,
.drawer-loading {
  align-items: center;
  color: #718096;
  display: flex;
  gap: 11px;
  justify-content: center;
  min-height: 280px;
}

.loading-spinner {
  animation: loading-spin .8s linear infinite;
  border: 2px solid #d8e4f2;
  border-radius: 50%;
  border-top-color: #1674ef;
  height: 20px;
  width: 20px;
}

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

.service-error {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  margin: 56px auto;
  max-width: 540px;
  padding: 28px;
}

.service-error h2,
.service-error p {
  margin: 0 0 8px;
}

.readonly-facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.readonly-facts div {
  border-bottom: 1px solid #edf1f5;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 4px;
}

.readonly-facts span,
.personnel-source small,
.profile-readonly p {
  color: #8491a1;
  font-size: 8.5px;
}

.readonly-facts strong {
  color: #2d3745;
  font-size: 10.2px;
}

.personnel-source {
  align-items: center;
  background: #f3f8ff;
  border: 1px solid #dce9fa;
  border-radius: 8px;
  display: flex;
  gap: 11px;
  margin: 16px 0 8px;
  padding: 12px 14px;
}

.personnel-source > span {
  color: #176ff1;
  font-size: 16px;
}

.personnel-source div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.personnel-source em,
.equal-permission {
  color: #176ff1;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 650;
}

.profile-readonly {
  align-items: center;
  display: flex;
  gap: 13px;
}

.profile-avatar {
  font-size: 15.3px;
  height: 46px;
  min-width: 46px;
}

.profile-readonly strong {
  display: block;
  font-size: 11.9px;
}

.profile-readonly p {
  margin: 2px 0;
}

.profile-readonly div > span,
.profile-note {
  color: #617083;
  font-size: 8.5px;
}

.profile-note {
  background: #f7f9fc;
  border-radius: 7px;
  line-height: 1.7;
  margin-top: 15px;
  padding: 11px 12px;
}

.drawer-comment-button {
  margin-top: 8px;
}

.toast.error .toast-dot {
  background: #ef4c5d;
}

@media (max-width: 820px) {
  .notification-popover {
    position: fixed;
    right: 12px;
    top: 62px;
    width: min(420px, calc(100vw - 40px));
  }
}

@media (max-width: 560px) {
  .readonly-facts {
    grid-template-columns: 1fr;
  }

  .notification-popover-list {
    max-height: min(410px, calc(100vh - 145px));
  }
}

/* Auth entry: real credentials are checked by the same-origin API. */
body.login-active {
  background: #eaf4ff;
  overflow: hidden;
}

.login-screen {
  --login-blue: #1f6fff;
  --login-navy: #101b33;
  background: #eaf4ff;
  color: var(--login-navy);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(28px, 3vw, 52px) clamp(24px, 4.5vw, 72px) 22px;
  position: relative;
}

.login-screen[hidden] {
  display: none;
}

.login-background {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: -2;
}

.login-background::after {
  background: linear-gradient(90deg, rgba(238, 247, 255, .16), rgba(238, 247, 255, .05) 46%, rgba(255, 255, 255, .32));
  content: "";
  inset: 0;
  position: absolute;
}

.login-background img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.login-page-brand,
.login-content,
.login-filing-footer {
  position: relative;
  z-index: 1;
}

.login-page-brand {
  align-items: center;
  display: flex;
  gap: 16px;
  max-width: 100%;
  width: max-content;
}

.login-page-brand-mark {
  align-items: center;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 111, 255, .12);
  display: inline-flex;
  flex: 0 0 auto;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.login-page-brand-mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.login-page-brand-divider {
  background: rgba(42, 58, 84, .2);
  height: 42px;
  width: 1px;
}

.login-page-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.login-page-brand-copy strong {
  color: #142542;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.2;
}

.login-page-brand-copy span {
  color: #596d89;
  font-size: 13px;
  line-height: 1.5;
}

.login-content {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-height: 0;
  padding: 20px min(4vw, 52px) 12px 0;
}

.login-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .84));
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(31, 76, 139, .18), 0 10px 26px rgba(15, 23, 42, .08);
  box-sizing: border-box;
  padding: 48px 50px 42px;
  width: min(500px, 92vw);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.login-intro {
  margin: 0 0 30px;
  text-align: center;
}

.login-kicker {
  align-items: center;
  color: #1f6fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  line-height: 1.4;
  margin-bottom: 13px;
}

.login-kicker::before {
  background: var(--login-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(31, 111, 255, .1);
  content: "";
  height: 7px;
  width: 7px;
}

.login-intro h1 {
  color: #111d34;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.login-intro p {
  color: #77849a;
  font-size: 15px;
  line-height: 1.55;
  margin: 13px 0 0;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 0;
}

.login-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.login-input-wrap {
  align-items: center;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(118, 135, 160, .32);
  border-radius: 8px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), 0 8px 20px rgba(38, 71, 116, .04);
  color: #8a96a9;
  display: flex;
  height: 56px;
  padding: 0 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input-wrap:focus-within {
  background: #fff;
  border-color: var(--login-blue);
  box-shadow: 0 0 0 4px rgba(31, 111, 255, .13), 0 10px 22px rgba(31, 111, 255, .08);
}

.login-input-wrap > i {
  font-size: 16px;
  text-align: center;
  width: 22px;
}

.login-input-wrap input {
  background: transparent;
  border: 0;
  color: #19263d;
  flex: 1;
  font-size: 15px;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0 12px;
}

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

.login-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6f8193;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.login-password-toggle:hover {
  color: var(--login-blue);
}

.login-error {
  background: #fff4f4;
  border-left: 3px solid #dc4b55;
  color: #b83642;
  font-size: 12px;
  line-height: 1.55;
  margin: -2px 0 0;
  padding: 8px 10px;
}

.login-error[hidden] {
  display: none;
}

.login-submit {
  align-items: center;
  background: #1f6fff;
  border: 1px solid #1f6fff;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(31, 111, 255, .26);
  color: #fff;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  height: 54px;
  justify-content: center;
  margin-top: 2px;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
  width: 100%;
}

.login-submit:hover:not(:disabled) {
  background: #155de1;
  box-shadow: 0 14px 28px rgba(31, 111, 255, .32);
  transform: translateY(-1px);
}

.login-submit:active:not(:disabled) {
  transform: scale(.98);
}

.login-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.login-submit i {
  font-size: 13px;
  margin-left: 10px;
}

.login-note {
  border-top: 1px solid rgba(125, 145, 171, .22);
  color: #6e7d93;
  font-size: 13px;
  line-height: 1.6;
  margin: 28px 0 0;
  padding-top: 18px;
  text-align: center;
}

.login-filing-footer {
  align-items: center;
  display: flex;
  font-size: 12px;
  justify-content: center;
  line-height: 1.5;
  min-height: 24px;
  padding: 0 16px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

.login-filing-footer a {
  color: #52627a;
  text-decoration: none;
}

.login-filing-footer a:hover {
  color: #1f6fff;
  text-decoration: underline;
}

.login-filing-footer a:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(31, 111, 255, .7);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body.login-active {
    overflow: auto;
  }

  .login-screen {
    min-height: 100dvh;
    padding: 20px 16px 14px;
  }

  .login-background::after {
    background: linear-gradient(180deg, rgba(238, 247, 255, .06), rgba(238, 247, 255, .38));
  }

  .login-background img {
    object-position: 30% center;
  }

  .login-page-brand {
    gap: 10px;
  }

  .login-page-brand-mark {
    height: 44px;
    width: 44px;
  }

  .login-page-brand-divider {
    height: 34px;
  }

  .login-page-brand-copy strong {
    font-size: 19px;
  }

  .login-page-brand-copy span {
    font-size: 12px;
  }

  .login-content {
    align-items: center;
    justify-content: center;
    padding: 38px 0 24px;
  }

  .login-panel {
    border-radius: 20px;
    padding: 34px 24px 30px;
    width: 100%;
  }

  .login-intro {
    margin-bottom: 26px;
  }

  .login-intro h1 {
    font-size: 28px;
  }

  .login-intro p {
    font-size: 14px;
  }

  .login-input-wrap {
    height: 54px;
  }

  .login-submit {
    height: 52px;
  }

  .login-note {
    margin-top: 24px;
    padding-top: 16px;
  }

  .login-filing-footer {
    font-size: 12px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-input-wrap,
  .login-submit {
    transition: none;
  }
}
