/*
 * Sync web console: the OpenID sign-in button, as Sagacity Dot.
 *
 * Loaded through SFTPGO_HTTPD__BINDINGS__0__BRANDING__WEB_CLIENT__EXTRA_CSS
 * (env.d/branding.env). Styling the button here, not in SFTPGo's templates or
 * translation files, keeps it through package upgrades: apt replaces those
 * files but leaves this folder's own files alone.
 */

/* White with navy text: the login page is dark, and the navy mark needs a
 * light ground to read. */
a.btn[href$="/oidclogin"],
a.btn[href$="/oidclogin"]:focus {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #00263e !important;
}

a.btn[href$="/oidclogin"]:hover,
a.btn[href$="/oidclogin"]:active {
  background-color: #e8edf1 !important;
  border-color: #e8edf1 !important;
  color: #00263e !important;
}

/* The OpenID logo gives way to the Sagacity Dot mark. */
a.btn[href$="/oidclogin"] > img {
  display: none;
}

/* SFTPGo's translation script writes "Sign in with OpenID" into the span, so
 * the span's own text is hidden and the label is drawn after it. */
a.btn[href$="/oidclogin"] > span {
  display: inline-flex;
  align-items: center;
  font-size: 0;
}

a.btn[href$="/oidclogin"] > span::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  background: url("sagacity-dot-mark.svg") center / contain no-repeat;
}

a.btn[href$="/oidclogin"] > span::after {
  content: "Sign in with Sagacity Dot";
  font-size: 1.15rem;
  font-weight: 600;
}
