/* Темно-зеленая кнопка входа */
#rcmloginsubmit,
.button.mainaction,
button.button.mainaction.submit {
  background: #1f4d36 !important;
  border-color: #1f4d36 !important;
  color: #ffffff !important;
}

#rcmloginsubmit:hover,
#rcmloginsubmit:focus,
.button.mainaction:hover,
.button.mainaction:focus,
button.button.mainaction.submit:hover,
button.button.mainaction.submit:focus {
  background: #173b2a !important;
  border-color: #173b2a !important;
  color: #ffffff !important;
}

/* Немного подкрашиваем активные элементы формы */
.form-control:focus,
input.form-control:focus {
  border-color: #1f4d36 !important;
  box-shadow: 0 0 0 0.2rem rgba(31, 77, 54, 0.15) !important;
}

/* Подпись под кнопкой */
#login-footer {
  color: #4b5b52 !important;
}

/* Toggle "Remember me" */
.custom-switch .custom-control-label::before,
label.custom-control-label::before {
  background-color: #cfd8d3 !important;
  border-color: #cfd8d3 !important;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before,
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #1f4d36 !important;
  border-color: #1f4d36 !important;
}

.custom-switch .custom-control-label::after,
label.custom-control-label::after {
  background-color: #ffffff !important;
}

.custom-switch .custom-control-input:focus ~ .custom-control-label::before,
.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(31, 77, 54, 0.15) !important;
}

/* Логотип слева сверху */
#layout-menu #logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
}

/* Watermark для светлой темы */
body::before {
  background-image: url('/skins/elastic/images/logo-light.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 260px auto !important;
  filter: grayscale(100%) brightness(0.7) !important;
  opacity: 0.08 !important;
}

/* Watermark для тёмной темы */
html.dark-mode body::before,
body.dark-mode::before {
  background-image: url('/skins/elastic/images/logo-dark.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 260px auto !important;
  filter: grayscale(100%) invert(1) brightness(1.6) contrast(0.7) !important;
  opacity: 0.08 !important;
}

:root {
  --brand-logo-url: url("/skins/elastic/branding/logo-light.svg");
}

body::before {
  background-image: var(--brand-logo-url) !important;
}

/* Логотипы в интерфейсе и на логине */
img#logo {
  max-width: 100% !important;
  height: auto !important;
}

/* Watermark в основном интерфейсе */
body::before {
  background-image: var(--brand-logo-url) !important;
}

/* Если используешь логотип как фон где-то ещё */
.brand-logo-bg {
  background-image: var(--brand-logo-url) !important;
}

#password-toggle-btn {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  opacity: .75 !important;
}

#password-toggle-btn:hover {
  opacity: 1 !important;
}

/* Иконка глаза в стиле штатных icon.* */
#password-toggle-btn::before {
  content: "\f06e";
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 22px !important;
  color: #6b7280 !important;
  display: block !important;
  text-align: center !important;
}

#password-toggle-btn.active::before {
  content: "\f070";
}

html.dark-mode #password-toggle-btn::before,
body.dark-mode #password-toggle-btn::before {
  color: #9ca3af !important;
}
