/* Скрыть верхнее меню с надписью Self service password */
.navbar {
    display: none !important;
}


/* Уменьшить пустые отступы после удаления элементов */
.card-body {
    padding-top: 1rem !important;
}

/* Корпоративный логотип */
.logo {
    display: block !important;
    width: auto;
    max-width: 320px;
    max-height: 140px;
    margin: 1rem auto 1.5rem auto !important;
}

/* На мобильных устройствах */
@media (max-width: 768px) {
    .logo {
        max-width: 220px;
        max-height: 100px;
    }
}



/* Чёрный фон вместо фоновой картинки */
html,
body,
#background_url {
    background-color: #000 !important;
    background-image: none !important;
}

/* Убираем возможные повторения и растяжение изображения */
body {
    background: #000 !important;
}

/* Результаты выполнения операций */
.result.alert-success,
.result.alert-info,
.result.alert-warning,
.result.alert-danger {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 900px;
    margin: 1.5rem auto !important;
    padding: 1rem 1.25rem !important;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: center;
}

.result.alert-success {
    color: #0f5132 !important;
    background-color: #d1e7dd !important;
    border: 1px solid #badbcc !important;
}

.result.alert-danger {
    color: #842029 !important;
    background-color: #f8d7da !important;
    border: 1px solid #f5c2c7 !important;
}
/* =========================================================
   Компактная верхняя часть страницы
   ========================================================= */

/* Основной серый контейнер */
.container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Заголовок "Смена пароля сотрудника БАЗ" */
.container h1,
.container .card-title,
.container .page-header {
    margin-top: 0 !important;
    margin-bottom: 0.6rem !important;
}

/* Верхний зелёный заголовок */
.alert:first-child {
    padding: 0.65rem 1rem !important;
    margin-bottom: 0.7rem !important;
}

/* Логотип */
.logo {
    max-width: 250px !important;
    max-height: 85px !important;
    margin: 0.4rem auto 0.7rem auto !important;
}

/* Все информационные блоки */
.alert {
    padding: 0.65rem 1rem !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.25 !important;
}

/* Блок выбора действия — "Изменение пароля" */
.nav,
.nav-tabs,
.nav-pills {
    margin-bottom: 0.65rem !important;
}

.nav-link {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

/* Блок требований к паролю */
.password-policy,
.policy,
.alert-warning {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
}

/* Уплотняем строки требований */
.alert-warning ul,
.alert-warning p {
    margin-top: 0.15rem !important;
    margin-bottom: 0.15rem !important;
}

.alert-warning li {
    margin-bottom: 0.1rem !important;
    line-height: 1.2 !important;
}

/* Уменьшаем пустые интервалы между карточками */
.card {
    margin-bottom: 0.7rem !important;
}

.card-body {
    padding: 0.8rem 1rem !important;
}

/* Форма логина и паролей */
.form-group,
.mb-3 {
    margin-bottom: 0.55rem !important;
}

/* Компактный вариант для мобильных устройств */
@media (max-width: 768px) {
    .logo {
        max-width: 210px !important;
        max-height: 70px !important;
    }

    .alert {
        padding: 0.55rem 0.7rem !important;
    }

    .card-body {
        padding: 0.65rem !important;
    }
}
/* =========================================================
   Убрать лишний верхний отступ
   ========================================================= */

html, body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    padding-top: 0 !important;
}

/* Если верхнее меню скрыто, но оставляет место */
.navbar {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Основной контейнер страницы */
.container,
.container-fluid {
    margin-top: 0.2rem !important;
    padding-top: 0.2rem !important;
}

/* Заголовок */
h1 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    padding-top: 0 !important;
}

/* Логотип */
.logo {
    max-width: 230px !important;
    max-height: 70px !important;
    margin: 0.2rem auto 0.4rem auto !important;
}

/* Верхние информационные блоки */
.alert {
    padding: 0.55rem 0.9rem !important;
    margin-bottom: 0.45rem !important;
    line-height: 1.2 !important;
}

/* Карточки/блоки */
.card,
.card-body {
    margin-top: 0 !important;
}

.card-body {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
}

/* =========================================================
   Уменьшить шрифт подсказок по паролю
   ========================================================= */

.alert-warning,
.alert-danger,
.password-policy {
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
}

/* Заголовок блока требований */
.alert-warning strong,
.alert-danger strong,
.password-policy strong {
    font-size: 0.92rem !important;
}

/* Список требований */
.alert-warning ul,
.alert-danger ul,
.password-policy ul {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
    padding-left: 1.2rem !important;
}

.alert-warning li,
.alert-danger li,
.password-policy li {
    margin-bottom: 0.08rem !important;
    line-height: 1.15 !important;
    font-size: 0.88rem !important;
}
/* Уменьшаем вертикальные расстояния между верхними блоками */

/* Основная серая область */
.card-body {
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
}

/* Заголовок страницы */
.card-header {
    margin-bottom: 0 !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* Логотип */
.logo {
    max-height: 65px !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.45rem !important;
}

/* Зелёный блок «Изменение пароля» */
.nav,
.nav-tabs,
.nav-pills {
    margin-top: 0 !important;
    margin-bottom: 0.45rem !important;
}

/* Информационные сообщения */
.alert {
    margin-top: 0.35rem !important;
    margin-bottom: 0.45rem !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

/* Блок требований к паролю */
.card-body > .alert + .alert,
.password-policy,
.policy {
    margin-top: 0.35rem !important;
    margin-bottom: 0.45rem !important;
}

/* Убираем лишние отступы у строк и контейнеров */
.card-body > .row,
.card-body > div {
    margin-top: 0 !important;
}

/* Компактный верх страницы на компьютере */
@media (min-width: 768px) {
    .container {
        padding-top: 0.25rem !important;
    }

    .logo {
        margin-top: 0.25rem !important;
        margin-bottom: 0.35rem !important;
    }

    .alert {
        margin-bottom: 0.4rem !important;
    }
}
