/* ====== RESET E BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
}

/* ====== CABEÇALHO ====== */
.header {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
    background-color: #001b3a; /* cor de fundo caso a imagem não carregue */
    overflow: hidden;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* ====== ÁREA DO USUÁRIO ====== */
.user-container {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.sair-button {
    background: #b30000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.85rem;
}

.sair-button:hover {
    background: #ff0000;
}

/* ====== LINK DO LOGO ====== */
a.logo {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

a.logo i {
    font-size: 30px;
    color: inherit;
    margin-right: 8px;
}

.header a.logo img {
    max-height: 60px;
    height: auto;
    width: auto;
    display: block;
}

/* ====== MENSAGENS PADRÃO ====== */
.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 600px) {
    .user-container {
        position: static;
        background: rgba(0, 0, 0, 0.7);
        justify-content: center;
        text-align: center;
        margin-top: -5px;
    }

    .sair-button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}
