/* скрываем оригинальный img */
html body .mx_AuthHeader_logo img {
  display: none !important;
}

/* вставляем свой */
html body .mx_AuthHeader_logo {
  background-image: url("/img/matrix-logo.svg") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;

  width: 120px !important;
  height: 120px !important;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* затемнение */
html body .mx_AuthPage {
  background: rgba(0, 0, 0, 0.4) !important;
}

html body .mx_WelcomePage h1 {
  font-size: 0 !important;
}
/* Меняем на Waymark X */
html body .mx_WelcomePage h1::after {
  content: "Добро пожаловать в Waymark X!" !important;
  font-size: 24px;
}

/*Общий стиль как в Telegram */
/*Общий фон и тема*/
html body .mx_MatrixChat {
  background: #0e1621 !important;
  color: #e6e6e6 !important;
  }

/*Левая панель(список чатов)*/
html body .mx_LeftPanel {
  background: #17212b !important;
  border-right: none !important;
}

/*Чаты (как Telegram)*/
html body .mx_RoomTile {
  border-radius: 10px !important;
  margin: 4px 8px !important;
  padding: 10px !important;
  transition: background 0.2s ease;
}

html body .mx_RoomTile:hover {
  background: #2a3a4a !important;
}

html body .mx_RoomTile_selected {
  background: #2a3a4a !important;
}

/*Основной чат*/
html body .mx_RoomView {
  background: #0e1621 !important;
}

/*Сообщения*/
html body .mx_EventTile {
  background: transparent !important;
}

html body .mx_EventTile_content {
  background: #17212b !important;
  border-radius: 12px !important;
  padding: 10px !important;
  max-width: 60% !important;
}

/*Свои сообщения (как Telegram)*/
html body .mx_EventTile_sent .mx_EventTile_content {
  background: #2b5278 !important;
}

/*Поле ввода*/
html body .mx_MessageComposer {
  background: #17212b !important;
  border-radius: 10px !important;
  margin: 10px !important;
}

/*Кнопки*/
html body .mx_AccessibleButton {
  border-radius: 8px !important;
}

/*Скругления (важно для Telegram-стиля)*/
html body * {
  border-radius: 6px;
}

