@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;700;800&family=Noto+Sans+SC:wght@500;700;800&display=swap");

:root {
  --hsg-bg: #081426;
  --hsg-bg-soft: rgba(226, 241, 255, 0.72);
  --hsg-cyan: #22d3ee;
  --hsg-blue: #2563eb;
  --hsg-text: #f8fafc;
  --hsg-dark: #0f172a;
}

html[data-brand-surface] body,
html[data-brand-surface] button,
html[data-brand-surface] input,
html[data-brand-surface] textarea,
html[data-brand-surface] .n-button,
html[data-brand-surface] .n-input,
html[data-brand-surface] .n-card,
html[data-brand-surface] .n-menu,
html[data-brand-surface] .n-menu-item-content-header,
html[data-brand-surface] .n-layout-header,
html[data-brand-surface] .brand-wordmark,
html[data-brand-surface] .login-brand-title,
html[data-brand-surface] .title-text {
  font-family: "Noto Sans SC", "Inter", "Segoe UI", sans-serif !important;
}

html[data-brand-surface="product"] body {
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.10), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.12), transparent 30%),
    linear-gradient(180deg, #f4f8fd 0%, #eaf1f8 100%) !important;
}

.brand-shell {
  display: flex;
  align-items: center;
  align-self: flex-start;
  flex: 0 0 auto;
  gap: 14px;
  width: calc(100% - 32px);
  min-height: 76px;
  margin: 14px 16px 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 36, 64, 0.88), rgba(6, 18, 34, 0.78));
  border: 1px solid rgba(94, 234, 212, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.22);
}

.product-brand-shell,
.admin-brand-shell {
  position: relative;
  z-index: 3;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: linear-gradient(145deg, #0b1728, #12335c);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.brand-wordmark {
  color: var(--hsg-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: normal;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
}

.admin-brand-shell {
  min-height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(226, 241, 255, 0.72), rgba(219, 234, 254, 0.36));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.admin-brand-shell .brand-wordmark {
  color: var(--hsg-dark);
  text-shadow: none;
}

.login-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto 28px;
}

.login-brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: contain;
  background:
    radial-gradient(circle at 35% 25%, rgba(34, 211, 238, 0.20), transparent 45%),
    linear-gradient(145deg, #071426, #12335c);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(37, 99, 235, 0.14);
}

.login-brand-title {
  color: #0f172a;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  word-break: break-word;
}

html[data-brand-surface="product"] .n-layout-sider,
html[data-brand-surface="product"] .side-menu {
  background:
    radial-gradient(circle at 40% 0%, rgba(34, 211, 238, 0.10), transparent 28%),
    linear-gradient(180deg, #071225 0%, #030817 100%) !important;
}

html[data-brand-surface="product"] .n-layout-sider .n-menu,
html[data-brand-surface="product"] .side-menu .n-menu {
  background: transparent !important;
}

html[data-brand-surface="product"] .n-layout-sider .n-menu-item-content,
html[data-brand-surface="product"] .n-layout-sider .n-menu-item-content__icon,
html[data-brand-surface="product"] .n-layout-sider .n-menu-item-content-header,
html[data-brand-surface="product"] .side-menu .n-menu-item-content,
html[data-brand-surface="product"] .side-menu .n-menu-item-content__icon,
html[data-brand-surface="product"] .side-menu .n-menu-item-content-header {
  color: rgba(226, 232, 240, 0.82) !important;
}

html[data-brand-surface="product"] .n-layout-sider .n-menu-item-content:hover,
html[data-brand-surface="product"] .side-menu .n-menu-item-content:hover {
  background: rgba(8, 47, 73, 0.56) !important;
}

html[data-brand-surface="product"] .n-layout-sider .n-menu-item-content--selected,
html[data-brand-surface="product"] .side-menu .n-menu-item-content--selected {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.26), rgba(8, 47, 73, 0.72)) !important;
  border-left: 4px solid var(--hsg-cyan) !important;
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.08) !important;
}

html[data-brand-surface="product"] .n-layout-sider .n-menu-item-content--selected,
html[data-brand-surface="product"] .n-layout-sider .n-menu-item-content--selected .n-menu-item-content__icon,
html[data-brand-surface="product"] .n-layout-sider .n-menu-item-content--selected .n-menu-item-content-header,
html[data-brand-surface="product"] .side-menu .n-menu-item-content--selected,
html[data-brand-surface="product"] .side-menu .n-menu-item-content--selected .n-menu-item-content__icon,
html[data-brand-surface="product"] .side-menu .n-menu-item-content--selected .n-menu-item-content-header {
  color: #ffffff !important;
}

html[data-brand-surface="product"] .n-card,
html[data-brand-surface="product"] .n-card.n-card--bordered {
  background: rgba(248, 251, 255, 0.92) !important;
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

html[data-brand-surface="product"] .n-button--primary-type,
html[data-brand-surface="admin"] .n-button--primary-type {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
}
