/* Botões do tema preto: contraste claro igual à referência WG Esteira. */
:root {
  --montanha-dark-button-bg: #f3f0eb;
  --montanha-dark-button-text: #66635f;
  --montanha-dark-button-border: #f3f0eb;
}

html body .ui-button.ui-button--primary,
html body button.ui-button--primary,
html body #insideLoginSubmitClick,
html body #insideRegisterSubmitClick {
  border-color: var(--montanha-dark-button-border) !important;
  background: var(--montanha-dark-button-bg) !important;
  background-color: var(--montanha-dark-button-bg) !important;
  background-image: none !important;
  color: var(--montanha-dark-button-text) !important;
  -webkit-text-fill-color: var(--montanha-dark-button-text) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

html body .ui-button.ui-button--primary *,
html body button.ui-button--primary *,
html body #insideLoginSubmitClick *,
html body #insideRegisterSubmitClick * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  text-shadow: none !important;
}

html body #app [class*="_btn_"]:has(#loginClick) {
  border: 1px solid var(--montanha-dark-button-border) !important;
  background: var(--montanha-dark-button-bg) !important;
  background-color: var(--montanha-dark-button-bg) !important;
  background-image: none !important;
  color: var(--montanha-dark-button-text) !important;
  box-shadow: none !important;
}

html body #app #loginClick,
html body #app [class*="_btn_"]:has(#loginClick) * {
  color: var(--montanha-dark-button-text) !important;
  -webkit-text-fill-color: var(--montanha-dark-button-text) !important;
  text-shadow: none !important;
}

html body .montanha-submit-tip-anchor .tips {
  background: var(--montanha-dark-button-bg) !important;
  color: var(--montanha-dark-button-text) !important;
  border: 1px solid rgba(102, 99, 95, .22) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22) !important;
}

html body .montanha-submit-tip-anchor .tips::before {
  border-bottom-color: var(--montanha-dark-button-bg) !important;
}

/* Janela de Registro/Login: textos auxiliares claros no tema preto. */
html body .ui-dialog[class*="_loginRegisterDialog_"] [class*="_tabsLabel_"],
html body .ui-dialog[class*="_loginRegisterDialog_"] .login-register-tab-sub-title,
html body .ui-dialog[class*="_loginRegisterDialog_"] [class*="_agreeText_"],
html body .ui-dialog[class*="_loginRegisterDialog_"] [class*="_inner_"],
html body .ui-dialog[class*="_loginRegisterDialog_"] [class*="_remember_"],
html body .ui-dialog[class*="_loginRegisterDialog_"] [class*="_forget_"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* Navegação inferior: item Começar ativo e sua casa em branco. */
html body #app [class*="_main_gtdvm_"] .ui-tab--active,
html body #app [class*="_main_gtdvm_"] .ui-tab--active [class*="_text_"],
html body #app [class*="_main_gtdvm_"] .ui-tab--active svg,
html body #app [class*="_main_gtdvm_"] .ui-tab--active use {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

/* Cabeçalho: Login claro e Registro preto com contorno branco, como a referência. */
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#loginClick),
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#registerClickModal) {
  min-height: 28px !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  background-image: none !important;
}

html body #app [class*="_un-login_"] [class*="_btn_"]:has(#loginClick)::before,
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#loginClick)::after,
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#registerClickModal)::before,
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#registerClickModal)::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html body #app [class*="_un-login_"] [class*="_btn_"]:has(#loginClick) {
  border: 1px solid #f3f0eb !important;
  background: #f3f0eb !important;
  background-color: #f3f0eb !important;
}

html body #app [class*="_un-login_"] [class*="_btn_"]:has(#registerClickModal) {
  border: 1px solid #fff !important;
  background: #111 !important;
  background-color: #111 !important;
}

html body #app #loginClick,
html body #app #registerClickModal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body #app #loginClick {
  color: #5c5955 !important;
  -webkit-text-fill-color: #5c5955 !important;
}

html body #app #registerClickModal {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Ícone de mostrar/ocultar senha em branco. */
html body .ui-dialog[class*="_loginRegisterDialog_"] .ui-input__eye,
html body .ui-dialog[class*="_loginRegisterDialog_"] .ui-input__eye i,
html body .ui-dialog[class*="_loginRegisterDialog_"] .ui-input__eye svg,
html body .ui-dialog[class*="_loginRegisterDialog_"] .ui-input__eye path {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
  opacity: 1 !important;
}

/* Ícones das abas em branco, preservando transparências e detalhes do SVG. */
html body .ui-dialog[class*="_loginRegisterDialog_"] [class*="_tabsLabelIcon_"] {
  filter: none !important;
  color: #fff !important;
  opacity: 1 !important;
}

html body .ui-dialog[class*="_loginRegisterDialog_"] [class*="_tabsLabelIcon_"] rect {
  fill: transparent !important;
  stroke: none !important;
}

html body .ui-dialog[class*="_loginRegisterDialog_"] [class*="_tabsLabelIcon_"] path {
  fill: #fff !important;
  stroke: none !important;
  opacity: 1 !important;
}

/* O modal de download usa o ícone quadrado da própria MaresiaPG. */
html body #montanha-download-choice .montanha-choice-head img {
  object-fit: cover !important;
  object-position: left center !important;
}
