/* EGObooks branding for Bigcapital v0.25.42 (bc.egodetroit.com).
   Auth pages only (body.authentication). Selectors avoid the hashed sc-* class names. */

body.authentication,
body.authentication #root,
body.authentication #root > .App {
  background-color: #003646 !important;
}

/* Top logo: Bigcapital wordmark out, EGObooks in */
body.authentication #root > .App > div > div > div:has(> svg) > svg {
  display: none !important;
}
body.authentication #root > .App > div > div > div:has(> svg) {
  width: 300px;
  max-width: 80vw;
  height: 58px;
  margin: 0 auto 32px;
  background: url("/egobooks/egobooks_logo.svg") no-repeat center / contain;
}

/* Footer Bigcapital mark out */
body.authentication .bp4-icon-bigcapital {
  display: none !important;
}

/* Card */
body.authentication form {
  background-color: #002a37 !important;
}
body.authentication div:has(> form) {
  background-color: #002a37 !important;
  border-radius: 8px;
}

/* Primary button in EGO green */
body.authentication form button.bp4-fill,
body.authentication form button[type="submit"] {
  background-color: #bcd553 !important;
  background-image: none !important;
  color: #003646 !important;
  box-shadow: none !important;
}
body.authentication form button.bp4-fill .bp4-button-text {
  color: #003646 !important;
}

/* Links in green */
body.authentication a {
  color: #bcd553 !important;
}

/* Sign-ups are closed (server enforces SIGNUP_DISABLED): hide the link and the register form */
body.authentication p:has(> a[href="/auth/register"]) {
  display: none !important;
}
body.authentication form:has(input[name="first_name"]),
body.authentication form:has(input[name="firstName"]) {
  display: none !important;
}
