html, html[class] {
  --cpd-color-bg-action-primary-rest: #0B5F80 !important;
  --cpd-color-bg-action-primary-hovered: #0A4E69 !important;
  --cpd-color-bg-action-primary-pressed: #0C4155 !important;
}
.mx_Login_submit { background-color: #0B5F80 !important; border-color: #0B5F80 !important; color: #fff !important; }
.mx_Login_submit:hover { background-color: #0A4E69 !important; }
.mx_AuthPage_modal .mx_AuthHeader {
  background: linear-gradient(160deg, #07222E 0%, #0C4155 55%, #0B5F80 100%);
  border-radius: var(--cpd-space-6x) 0 0 var(--cpd-space-6x);
}
.mx_AuthHeaderLogo { padding: 0 8px; text-align: center; }
.mx_AuthHeaderLogo img { width: 120px; }
.mx_AuthHeaderLogo::after {
  content: "HASSMAR\A Messagerie sécurisée"; white-space: pre-line; display: block;
  margin-top: 18px; color: #FFFFFF; font-weight: 700; font-size: 15px; line-height: 1.6; letter-spacing: .06em;
}
.mx_AuthHeader .mx_AuthBody_language .mx_Dropdown_input,
.mx_AuthHeader .mx_AuthBody_language .mx_Dropdown_arrow { color: #FFFFFF; background: transparent; }
.mx_AuthBody .mx_ServerPicker { display: none; }
.mx_AuthFooter a[href*="matrix.org"] { display: none !important; }

/* Paramètres : onglet survolé ou sélectionné lisible */
.mx_TabbedView_tabLabel:hover,
.mx_TabbedView_tabLabel_active { background-color: #0B5F80 !important; }
.mx_TabbedView_tabLabel:hover, .mx_TabbedView_tabLabel:hover *,
.mx_TabbedView_tabLabel_active, .mx_TabbedView_tabLabel_active * { color: #FFFFFF !important; }
