/* Typography and shape details from locket-admin-tool. Colors live in theme tokens. */
@font-face {
  font-family: "SF Pro Rounded";
  src: url("./fonts/SF-Pro-Rounded-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Rounded";
  src: url("./fonts/SF-Pro-Rounded-Semibold.otf") format("opentype");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Rounded";
  src: url("./fonts/SF-Pro-Rounded-Bold.otf") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep dense analytics layouts intact; round only their outer surfaces. */
.dashboard-component-chart-holder {
  border-radius: 20px;
}

/* Match the admin sign-in card without replacing Superset's authentication UI. */
.ant-card:has(form #username),
.ant-card:has(a[href*="/login/google"]) {
  border-radius: 40px;
  padding: 16px;
  width: min(420px, calc(100vw - 32px));
  background-color: light-dark(#ffffff, #111111);
}

.ant-card:has(form #username) .ant-card-head,
.ant-card:has(a[href*="/login/google"]) .ant-card-head {
  border-bottom: 0;
  text-align: center;
}

.ant-card:has(form #username) .ant-card-head-title::before,
.ant-card:has(a[href*="/login/google"]) .ant-card-head-title::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 8px auto 16px;
  background: url("./heart.svg") center / contain no-repeat;
}

.ant-card:has(form #username) .ant-card-head-title {
  font-size: 26px;
  font-weight: 700;
}

.ant-card:has(form #username) .ant-btn-primary {
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .ant-btn, .ant-input, .ant-input-affix-wrapper {
    transition: none;
  }
}
