/* Enfinity skin for the OpenMetadata UI, injected by nginx (openmetadata-docker/nginx/nginx.conf)
 * next to the chat widget. Colours and logo come from OpenMetadata's own theme setting
 * (ui-branding/theme.json); this file only covers what the theme cannot reach. Every rule targets
 * one named OpenMetadata class: if an upgrade renames it, the rule stops matching and the page
 * falls back to OpenMetadata's look, nothing breaks. */

:root {
  --enf-navy: #15415D;
  --enf-mark: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%224%2058%20180%2082%22%3E%3Cpath%20fill%3D%22%23C3DE00%22%20fill-rule%3D%22evenodd%22%20d%3D%22M147.8%20135.9C153.3%20135.4%20156.9%20134.1%20162.0%20130.7C171.1%20124.7%20176.6%20116.7%20179.2%20105.8C183.3%2088.7%20172.0%2070.0%20153.9%2063.7C139.0%2058.5%20125.5%2061.7%20108.8%2074.3C104.5%2077.6%2099.5%2081.5%2098.0%2082.7C94.9%2085.2%2094.7%2085.4%2094.0%2085.6C92.3%2086.3%2091.5%2085.8%2088.0%2082.7C76.7%2072.5%2064.4%2065.3%2053.9%2062.6C31.9%2057.1%208.8%2072.5%206.0%2094.5C4.7%20104.6%2010.8%20120.0%2018.8%20126.8C22.8%20130.3%2029.3%20134.0%2033.1%20135.0C36.3%20135.9%2049.0%20135.9%2054.1%20135.1C63.2%20133.7%2073.2%20128.4%2085.0%20118.6C93.4%20111.7%2092.9%20111.7%2099.2%20116.9C100.5%20117.9%20102.7%20119.8%20104.1%20121.0C110.8%20126.7%20114.3%20128.8%20124.1%20132.7C131.3%20135.6%20139.1%20136.6%20147.8%20135.9ZM43.0%20118.7C35.7%20117.8%2027.6%20111.5%2025.5%20105.0C22.6%2096.0%2029.3%2084.2%2038.9%2081.1C48.0%2078.1%2059.4%2082.4%2074.4%2094.4C79.3%2098.4%2079.7%2099.5%2077.1%20102.0C75.7%20103.4%2066.5%20111.2%2065.0%20112.3C59.5%20116.5%2049.4%20119.4%2043.0%20118.7ZM137.5%20118.4C127.9%20117.1%20120.3%20112.9%20110.9%20103.7C106.0%2098.8%20106.0%2098.7%20115.8%2091.4C122.9%2086.0%20130.2%2082.1%20134.9%2081.1C146.9%2078.4%20156.8%2083.7%20160.2%2094.5C164.4%20107.4%20152.1%20120.4%20137.5%20118.4Z%22/%3E%3C/svg%3E");
}

::selection { background: rgba(195, 222, 0, .35); }

/* Sign-in: the left panel advertises OpenMetadata features; show Enfinity instead. */
.form-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--enf-navy);
}
.form-carousel-container > * { display: none !important; }
.form-carousel-container::before {
  content: "Enfinity Data Catalogue";
  position: absolute;
  top: 12%;
  left: 10%;
  right: 10%;
  color: #FFFFFF;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.form-carousel-container::after {
  content: "";
  position: absolute;
  left: -14%;
  bottom: -10%;
  width: 92%;
  aspect-ratio: 180 / 82;
  background: var(--enf-mark) no-repeat center / contain;
  opacity: .9;
}

/* Below 1200px OpenMetadata drops that panel and leaves the card alone: the page becomes the panel. */
@media (max-width: 1199px) {
  .ant-layout:has(.login-form-container) {
    background: var(--enf-navy) var(--enf-mark) no-repeat left -10vw bottom -6vh / 48vw auto;
  }
  .login-form-container { flex-direction: column; justify-content: safe center; }
  .login-form-container::before {
    content: "Enfinity Data Catalogue";
    display: block;
    margin: 0 0 20px;
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
  }
}

/* OpenMetadata's "what's new" promo after an upgrade: release notes stay in the help menu. */
.whats-new-alert-affix { display: none !important; }

/* First-visit welcome: name the product the user knows. */
.welcome-screen-header-second-line { font-size: 0 !important; }
.welcome-screen-header-second-line::after {
  content: "Enfinity Data Catalogue";
  font-size: 40px;
  line-height: 1.2;
}
