:root {
    --background: #16171a; /* Cor de fundo geral da página */
    --foreground: #f8fafc; /* Cor principal do texto */
    --bg-black: #141518;

    --card: #1b1c20; /* Fundo dos cartões/caixas */
    --card-foreground: #f8fafc; /* Texto dentro do cartão */

    --popover: #1b1c20; /* Fundo de popovers/modais/dropdowns */
    --popover-foreground: #f8fafc; /* Texto dentro do popover */

    --primary: #845ef7; /* Cor principal (botões, links, destaques) */
    --primary-foreground: #ffffff; /* Texto/ícone sobre a cor primária */

    --secondary: #1a1b1f; /* Cor secundária (fundos alternativos) */
    --secondary-foreground: #f8fafc; /* Texto sobre a cor secundária */

    --muted: #23242a; /* Cor neutra/suave (backgrounds apagados) */
    --muted-foreground: #838896; /* Texto em contexto "muted", menos contraste */

    --accent: #23242a; /* Cor de destaque leve (hover, badges, etc.) */
    --accent-foreground: #f8fafc; /* Texto sobre a cor de destaque */

    --destructive: #ef4444; /* Cor de erro/ação perigosa (excluir, alerta) */
    --destructive-foreground: #f8fafc; /* Texto sobre o botão de erro */

    --border: #26272b; /* Cor padrão das bordas */
    --input: #1a1b1f; /* Fundo de inputs, selects, textareas */
    --ring: #cbd5e1; /* Cor do foco (outline, highlights) */

    --radius: 8px; /* Raio padrão das bordas arredondadas */
    --max: 1440px; /* Largura máxima do container */
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: var(--bg-black);
    color: var(--foreground);
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    height: 100%;
}

main {
    min-height: calc(100vh - 160px); /* Ajuste para header e footer */
    padding-bottom: 40px;
}

b {
    font-weight: 700;
}

form {
    width: 100%;
}

header {
    border-bottom: 1px solid var(--border);
}

footer {
    background-color: #1a1b1f;
}

footer p {
    color: var(--muted-foreground);
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

h1 {
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

input {
    background-color: var(--input);
    padding: 12px;
    border-radius: var(--radius);
    width: 100%;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

a {
    color: var(--foreground);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.btn {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.btn:hover {
    color: var(--primary);
    background: var(--primary-foreground);
}

.btn-secondary {
    color: var(--primary-foreground);
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.btn-secondary img,
.btn img {
    width: 20px;
    height: 20px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 80px 80px;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.divisor {
    width: 100%;
    border: 1px solid var(--border);
    margin: 20px 0;
}

/* ==========================
   Responsividade
   ========================== */

@media (max-width: 1366px) {
    .container {
        padding: 50px 50px;
    }
    .container-header {
        padding: 20px 50px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 50px 40px;
    }
    .container-header {
        padding: 20px 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    .container-header {
        padding: 20px 20px;
    }

    footer p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 20px;
    }
    .container-header {
        padding: 20px 20px;
    }
}
