/* Фоновое изображение на всю страницу */
body,
html,
main.view {
  background-image: url('../custom/lenta.png') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  min-height: 100vh !important;
}

/* Убираем белый фон */
md-content#loginContent {
  background: transparent !important;
  box-shadow: none !important;
}

.sg-logo {
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Логотип по центру */
.sg-logo div.layout-row {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.sg-logo img {
  content: url('../custom/logo.svg') !important;
  max-width: 200px !important;
  margin: 0 auto !important;
}

/* Надпись под логотипом */
.sg-logo div.layout-row::after {
  content: 'Добро пожаловать в корпоративную почту АО КЕЛЕТ' !important;
  display: block !important;
  color: rgb(33, 89, 57) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  margin-top: 16px !important;
  text-align: center !important;
  width: 100% !important;
}

/* Цвет блока с формой — светлее чтобы текст был виден */
.sg-login {
  background-color: rgba(33, 89, 57, 0.75) !important;
}

/* Делаем текст в форме белым для читаемости */
.sg-login label,
.sg-login input,
.sg-login .md-select-value,
.sg-login md-icon {
  color: white !important;
}

.sg-login .md-input {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: white !important;
}

/* Скрываем кнопку info */
button[aria-label="О системе"] {
  display: none !important;
}

/* Блок НАША МИССИЯ */
#mission-block {
  position: fixed !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60% !important;
  text-align: center !important;
  padding: 10px 20px !important;
  z-index: 999 !important;
}

.mission-title {
  font-size: 20px !important;
  font-weight: bold !important;
  font-style: italic !important;
  color: #333 !important;
  border-bottom: 2px solid red !important;
  border-top: 2px solid red !important;
  padding: 5px 0 !important;
  margin-bottom: 10px !important;
}

.mission-text {
  font-size: 14px !important;
  color: #333 !important;
  line-height: 1.8 !important;
}

.mission-green {
  color: rgb(33, 89, 57) !important;
  font-weight: bold !important;
}
/* Мобильная версия */
@media (max-width: 768px) {
  /* Фон */
  body, html, main.view {
    background-position: center top !important;
  }

  /* Скрываем блок миссии на мобильных — слишком много места занимает */
  #mission-block {
    display: none !important;
  }
  main.view {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
  }

  md-content#loginContent {
    width: 100% !important;
    margin-top: 30vh !important;
  }

  /* Логотип по центру сверху */
  .sg-logo {
    padding: 20px 0 10px 0 !important;
    min-height: auto !important;
    background: rgba(0, 0, 0, 0.25) !important;
  }

  .sg-logo img {
    max-width: 140px !important;
    margin: 0 auto !important;
    filter: brightness(0) invert(1)!important;
  }

  /* Надпись под логотипом меньше */
  .sg-logo div.layout-row::after {
    font-size: 12px !important;
    padding: 0 15px !important;
    margin-top: 8px !important;
    color: white !important;
  }

  /* Зелёный блок с формой на всю ширину */
  .sg-login {
    border-radius: 12px 12px 0 0 !important;
    padding: 10px !important;
  }

  /* Форма — убираем лишние отступы */
  #loginContent {
    border-radius: 12px 12px 0 0 !important;
  }

  /* Поля ввода */
  .sg-login .md-input {
    font-size: 16px !important;
  }

  /* Кнопка входа крупнее */
  .sg-login .md-fab {
    width: 56px !important;
    height: 56px !important;
  }
}
