/* BeyondCluster theme for Skyline - generated by branding/build_brand.py.
 * Injected into index.html by the custom nginx config (config/kolla/config/skyline).
 * Skyline uses CSS modules (class names like index__base-layout-sider--1TtvU), so layout
 * parts are matched with [class*="__name"]. Re-check after a Skyline upgrade: the class
 * maps are in the JS bundles (grep 't.locals=' in /base.bundle.*.js, /main.bundle.*.js). */
:root {
  --bc-navy: #0A2A5E;
  --bc-deep: #0F4C9C;
  --bc-blue: #1E6FD9;
  --bc-sky: #4DA8F0;
  --bc-light: #A9D8FF;
  --bc-cloud: #F4F9FF;
  --bc-sun: #FFC15E;
}

/* ---------- login page ----------
 * AuthLayout: container > left (form) + right (img.login-full-image, .full-image-front,
 * img.login-right-logo). The stock image path carries a build hash, so the sky is set
 * as the right panel's background and the stock <img> is hidden. Scoped with :has() so
 * other modules' "right" classes (header, drawers) are not touched. */
[class*="__left--"]:has(+ [class*="__right--"] > img[class*="login-full-image"]) {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bc-cloud) 70%, #E6F2FF 100%);
}
[class*="__right--"]:has(> img[class*="login-full-image"]) {
  background: var(--bc-navy) url("/asset/brand/login-sky.jpg") center / cover no-repeat !important;
}
img[class*="login-full-image"] { opacity: 0; }
[class*="full-image-front"] {
  background: linear-gradient(180deg, rgba(10, 42, 94, 0.25) 0%, rgba(10, 42, 94, 0) 45%) !important;
}

/* ---------- side menu (BaseLayout: .base-layout-sider[-collapsed|-hover]) ---------- */
html body [class*="__base-layout-sider"],
html body [class*="__base-layout-sider"] .ant-menu-dark,
html body [class*="__base-layout-sider"] .ant-menu-dark .ant-menu-sub,
html body .ant-layout-sider-trigger {
  background-color: var(--bc-navy) !important;
}
html body [class*="__base-layout-sider"] .ant-menu-item-selected,
html body [class*="__base-layout-sider"] .ant-menu-item-selected:hover {
  background-color: var(--bc-blue) !important;
}

/* ---------- primary colour ----------
 * Skyline injects its (antd) styles at runtime after this file, so every rule here is
 * prefixed with "html body" to win on specificity instead of source order. */
html body a, html body .ant-btn-link { color: var(--bc-blue); }
html body a:hover, html body .ant-btn-link:hover { color: var(--bc-sky); }
html body .ant-btn-primary {
  background-color: var(--bc-blue);
  border-color: var(--bc-blue);
}
html body .ant-btn-primary:hover, html body .ant-btn-primary:focus {
  background-color: var(--bc-sky);
  border-color: var(--bc-sky);
}
html body .ant-tabs-ink-bar { background: var(--bc-blue); }
html body .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { color: var(--bc-blue); }
html body .ant-checkbox-checked .ant-checkbox-inner,
html body .ant-radio-checked .ant-radio-inner::after,
html body .ant-switch-checked {
  background-color: var(--bc-blue);
  border-color: var(--bc-blue);
}
html body .ant-input:focus, html body .ant-input-focused,
html body .ant-select-focused .ant-select-selector {
  border-color: var(--bc-sky) !important;
  box-shadow: 0 0 0 2px rgba(77, 168, 240, 0.2) !important;
}
