:root {
  --background: #f0f2f5;
  --foreground: #0d1b2a;
  --card: #ffffff;
  --secondary: #edf0f5;
  --muted: #e4e8ef;
  --muted-foreground: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --sidebar: #0d1b2a;
  --sidebar-hover: #1e2f42;
  --border: rgba(13, 27, 42, 0.09);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #dc2626;
  --violet: #8b5cf6;
  --radius: 6px;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--sans);
  font-size: 15px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
}

.brand-title {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1;
}

.nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #94a3b8;
  text-align: left;
  font-size: 14px;
  transition: 0.16s ease;
}

.nav-item + .nav-item {
  margin-top: 2px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.nav-item.active {
  background: var(--accent);
  color: #fff;
}

.nav-item svg,
.top-icon svg,
.btn svg,
.metric-icon svg {
  flex: 0 0 auto;
}

.nav-count {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 10px;
}

.online-panel {
  margin: 0 12px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.online-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.online-number {
  margin-top: 4px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.online-number strong {
  color: #34d399;
  font-family: var(--mono);
  font-size: 22px;
}

.online-number span {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
}

.progress-track {
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--success);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 16px;
  padding: 8px;
  border-radius: var(--radius);
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.05);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--foreground);
  font-weight: 600;
}

.spacer {
  flex: 1;
}

.lang-toggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
}

.lang-toggle button {
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
}

.lang-toggle button.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.08);
}

.top-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted-foreground);
}

.top-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.top-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.page {
  display: grid;
  gap: 20px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.grid-sidebar {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.metric-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.metric-title {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 11px;
}

.metric-value {
  margin: 4px 0 0;
  color: var(--foreground);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
}

.metric-sub {
  margin: 2px 0 0;
  color: var(--muted-foreground);
  font-size: 11px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.card-head p {
  margin: 3px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.chart {
  height: 240px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px 18px 24px;
}

.bar-group {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: end;
  gap: 4px;
}

.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
}

.bar.primary {
  background: var(--accent);
}

.bar.success {
  background: var(--success);
}

.mini-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-row-main {
  min-width: 0;
  flex: 1;
}

.list-row-main strong,
.user-name {
  display: block;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
}

.list-row-main span,
.user-email,
.subtle {
  display: block;
  color: var(--muted-foreground);
  font-size: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.online {
  background: var(--success);
}

.away {
  background: var(--warning);
}

.offline {
  background: #94a3b8;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.search {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

.search input,
.field,
.toolbar select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--foreground);
  font-size: 12px;
  outline: none;
}

.search input {
  padding: 0 10px 0 32px;
}

.field,
.toolbar select {
  padding: 0 10px;
}

.btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  transition: 0.16s ease;
}

.btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.btn.danger {
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--danger);
}

.btn.danger:hover {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.company-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
  overflow: hidden;
}

.company-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--company-color, var(--accent));
}

.company-card:hover {
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.08);
}

.company-type {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 11px;
}

.company-card h3 {
  margin: 12px 0 8px;
  color: var(--foreground);
  font-size: 15px;
}

.company-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-size: 12px;
}

.company-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.company-actions .btn {
  flex: 1;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
}

.tabs button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.tabs button.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.08);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(237, 240, 245, 0.45);
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:hover {
  background: rgba(237, 240, 245, 0.45);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
}

.badge.blue {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.badge.violet {
  background: #ede9fe;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.badge.green {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #047857;
}

.badge.amber {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

.badge.red {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted-foreground);
}

.icon-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.role-card {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
}

.role-card.active {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.05);
}

.role-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--foreground);
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.perm {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
  font-size: 13px;
}

.matrix {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 160px repeat(5, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.matrix-cell {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--secondary);
}

.settings-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}

.settings-menu button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  text-align: left;
}

.settings-menu button.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: inset 2px 0 0 var(--accent);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.switch.on {
  background: var(--accent);
}

.switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transition: 0.16s ease;
}

.switch.on::before {
  transform: translateX(18px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 27, 42, 0.45);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(13, 27, 42, 0.2);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  background: rgba(237, 240, 245, 0.45);
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.form-label {
  display: grid;
  gap: 6px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--foreground);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 34px rgba(13, 27, 42, 0.22);
}

.login-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #daeaf8 0%, #eaf3ff 40%, #d0e4f8 100%);
  font-family: Inter, "Noto Sans SC", var(--sans);
}

.login-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  pointer-events: none;
}

.login-ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}

.login-ambient-a {
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #bcd9f5 0%, transparent 70%);
  opacity: 0.4;
}

.login-ambient-b {
  right: 0;
  bottom: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #c2dcf8 0%, transparent 70%);
  opacity: 0.3;
}

.login-brand-panel {
  position: relative;
  display: flex;
  width: 55%;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  overflow: hidden;
  background: linear-gradient(145deg, #1045a8 0%, #1560c8 40%, #1e78e8 100%);
  color: #fff;
}

.login-brand-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  border-radius: 999px;
  background: radial-gradient(circle, #7ec8ff 0%, transparent 70%);
  filter: blur(64px);
  opacity: 0.2;
}

.login-monogram {
  position: absolute;
  right: -30px;
  bottom: -40px;
  color: transparent;
  font-size: clamp(160px, 22vw, 280px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  user-select: none;
  pointer-events: none;
}

.login-logo,
.login-mobile-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-logo-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-logo strong,
.login-mobile-logo strong {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.login-logo span,
.login-mobile-logo span {
  display: block;
  margin-top: 5px;
  color: rgba(219, 234, 254, 0.72);
  font-size: 11px;
  font-weight: 600;
}

.login-brand-copy {
  position: relative;
  max-width: 448px;
}

.login-brand-copy h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.login-brand-copy h1 span {
  color: #dbeafe;
}

.login-brand-copy p {
  margin: 0;
  color: rgba(219, 234, 254, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.login-brand-panel footer {
  position: relative;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.login-form-panel {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.login-divider {
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(21, 96, 200, 0.2) 30%, rgba(21, 96, 200, 0.2) 70%, transparent);
}

.login-mobile-logo {
  display: none;
  margin-bottom: 40px;
}

.login-mobile-logo .login-logo-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #1045a8, #1e78e8);
}

.login-mobile-logo strong {
  color: #0d2a52;
  font-size: 14px;
}

.login-mobile-logo span {
  color: #3b82f6;
  font-size: 10px;
}

.login-card {
  position: relative;
  width: min(384px, 100%);
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(21, 96, 200, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 40px rgba(21, 96, 200, 0.12), 0 2px 8px rgba(21, 96, 200, 0.06);
}

.login-card-shine {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 96, 200, 0.3), transparent);
}

.login-heading {
  margin-bottom: 32px;
}

.login-heading h2 {
  margin: 0 0 4px;
  color: #0d2a52;
  font-size: 24px;
  font-weight: 800;
}

.login-heading p {
  margin: 0;
  color: #60a5fa;
  font-size: 14px;
}

.login-error {
  margin: -16px 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.5;
}

.login-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.login-field span {
  color: #3a6090;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(21, 96, 200, 0.2);
  border-radius: 12px;
  outline: none;
  background: #f5f9ff;
  color: #0d2a52;
  font-size: 14px;
  transition: 0.2s ease;
}

.login-field input::placeholder {
  color: rgba(96, 165, 250, 0.6);
}

.login-field input:focus,
.login-field input:not(:placeholder-shown) {
  border-color: #1560c8;
  background: #f0f6ff;
  box-shadow: 0 0 0 3px rgba(21, 96, 200, 0.1);
}

.login-password {
  position: relative;
}

.login-password input {
  padding-right: 44px;
}

.login-password button {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #93c5fd;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 18px;
}

.login-remember,
.login-link {
  border: 0;
  background: transparent;
  color: #60a5fa;
  font-size: 12px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.login-remember span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 96, 200, 0.3);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
}

.login-remember span.checked {
  border-color: #1560c8;
  background: #1560c8;
}

.login-link {
  color: #1560c8;
  font-weight: 700;
}

.login-submit,
.login-sso {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.login-submit {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #1045a8 0%, #1560c8 50%, #1e78e8 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(21, 96, 200, 0.4);
}

.login-submit:hover {
  background: linear-gradient(135deg, #1560c8 0%, #1e90ff 100%);
}

.login-submit:disabled {
  opacity: 0.7;
}

.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.login-or span {
  height: 1px;
  flex: 1;
  background: #dbeafe;
}

.login-or em {
  color: #93c5fd;
  font-size: 12px;
  font-style: normal;
}

.login-sso {
  border: 1px solid rgba(21, 96, 200, 0.25);
  background: transparent;
  color: #1560c8;
}

.login-sso:hover {
  background: #eff6ff;
}

.login-terms {
  margin: 24px 0 0;
  color: #93c5fd;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.login-terms a {
  color: #1560c8;
}

.mono {
  font-family: var(--mono);
}

@media (max-width: 1100px) {
  .grid-4,
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .grid-sidebar,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .login-brand-panel,
  .login-divider {
    display: none;
  }

  .login-form-panel {
    min-height: 100vh;
  }

  .login-mobile-logo {
    display: flex;
  }

  .login-card {
    margin: 0 auto;
  }
}

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

  .app {
    min-height: 100vh;
    height: auto;
    display: block;
  }

  .sidebar {
    width: 100%;
    height: auto;
  }

  .nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
  }

  .online-panel,
  .sidebar-user {
    display: none;
  }

  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .content {
    padding: 16px;
  }

  .grid-4,
  .grid-2,
  .company-grid,
  .perm-grid {
    grid-template-columns: 1fr;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}
