/* --- GERAL E RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Um branco levemente acinzentado */
    color: #343a40; /* Cinza escuro para texto */
    line-height: 1.6;
}

/* --- CABEÇALHO --- */
header {
    background-color: #ffffff;
    color: #343a40;
    display: flex;
    padding: 15px 40px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #0d6efd; /* Azul principal */
}

header nav a {
    color: #343a40;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #0d6efd;
}

.btn-header {
    background-color: #0d6efd;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.btn-header:hover {
    background-color: #0b5ed7;
    color: white;
}

/* --- CONTEÚDO PRINCIPAL (Landing Page & Forms) --- */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.presentation h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.highlight {
    color: #0d6efd;
}

.intro {
    font-size: 1.25rem;
    color: #6c757d; /* Cinza secundário */
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #0d6efd;
    color: white;
}
.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* --- MODAL DE LOGIN --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.modal-form h2 {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

.modal-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* --- ESTILOS PARA FORMULÁRIOS GENÉRICOS (Cadastro, Nova Memória, etc) --- */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-container h1, .form-container h2 {
    text-align: center;
    margin-bottom: 25px;
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-container input, .form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .presentation h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* --- ESTILOS DA NOTIFICAÇÃO (TOAST) --- */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745; /* Verde sucesso */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- MENSAGENS DE FEEDBACK (ERRO/SUCESSO) --- */
.mensagem-erro {
    background-color: #f8d7da; /* Vermelho claro */
    color: #721c24; /* Vermelho escuro */
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.mensagem-sucesso {
    background-color: #d4edda; /* Verde claro */
    color: #155724; /* Verde escuro */
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}