/* IPHOTEL — identidade visual para o Elastic */

/* Login: área de até 280 × 80 px, sem deformar a imagem. */
body.task-login #logo {
    width: 280px;
    height: 80px;
    max-width: calc(100vw - 32px);
    max-height: 80px;
    object-fit: contain;
}

/* Menu: somente o símbolo, sem deformação. */
#layout-menu .popover-header img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    box-sizing: content-box;
    padding: 3px;
}

/* Menu estreito do Elastic: telas entre 481 e 1024 px. */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    #layout-menu .popover-header img {
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
    }
}

/* Preservar as cores da marca também no modo escuro. */
html.dark-mode #logo {
    opacity: 1;
}


/* Login IPHOTEL: fundo fixo, independentemente do tema escolhido. */
body.task-login,
body.task-login #layout,
body.task-login #layout-content {
    background-color: #21292c;
    color: #c5d1d3;
}

/* Rodape e informacoes complementares do login. */
body.task-login #login-footer {
    color: #c5d1d3;
}

body.task-login #login-footer > div {
    background-color: #374549;
    color: #c5d1d3;
}

/* Preservar as cores do logo. */
body.task-login #logo {
    opacity: 1;
}
