body {
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.alert {
    display: none;
    opacity: 0;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    position: fixed; /* Troquei de absolute para fixed */
    top: 50%; /* Centraliza verticalmente */
    left: 50%; /* Centraliza horizontalmente */
    transform: translate(-50%, -500%); /* Ajusta para manter no centro */
    z-index: 9999; /* Garante que fique acima de outros elementos */
    margin: 0 auto; /* Ajusta a margem */
}


/* Animação de fade-in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animação de fade-out */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Classe para exibir o alerta com fade-in */
.alert.show {
    display: block;
    animation: fadeIn 1s forwards;
}

/* Classe para ocultar o alerta com fade-out */
.alert.hide {
    display: block; /* Garante que o elemento permaneça visível durante o fade-out */
    animation: fadeOut 1s forwards;
}

/* Estilo específico para o #logout-alert */
#logout-alert {
    background-color: #4CAF50; /* Verde */
}

/* Estilo específico para o #unauthorized-alert */
#unauthorized-alert {
    background-color: #f44336; /* Vermelho */
}

.login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    gap: 1rem; /* Espaçamento simétrico entre os elementos internos */
}

.material-symbols-outlined {
    font-size: 48px;
    color: #4CAF50;
}

input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 200px; /* Define uma largura fixa para alinhar os botões */
    margin-top: 0.5rem;
}

button:hover {
    background-color: #45a049;
}
