/* Importação da fonte Poppins do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Variáveis CSS para fácil personalização de cores */
:root {
    --bg-dark-primary: #0F1C36; /* Azul marinho escuro principal */
    --bg-dark-secondary: #0C1A35; /* Azul marinho escuro secundário */
    --button-primary: #1E3F66; /* NOVO: Azul mais escuro para botões, harmonizando com o fundo */
    --button-hover: #16304D; /* NOVO: Azul ainda mais escuro para hover */
    --text-light: #E0E0E0; /* Texto claro para fundo escuro */
    --text-dark: #343a40; /* Texto escuro para fundo claro */
    --surface-light: #ffffff; /* Fundo do contêiner principal (branco) */
    --border-radius: 12px; /* Cantos mais arredondados */
    --shadow-light: rgba(0, 0, 0, 0.25); /* Sombra mais pronunciada */
    --shadow-dark: rgba(0, 0, 0, 0.5); /* Sombra para elementos no fundo escuro */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    /* Fundo em gradiente radial de azul marinho */
    background: radial-gradient(circle at top left, var(--bg-dark-primary) 0%, var(--bg-dark-secondary) 100%);
    color: var(--text-dark); /* Cor padrão do texto (mas será sobrescrito pelo container) */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal em mobile */
}

.container {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px var(--shadow-light); /* Sombra mais destacada */
    padding: 40px;
    margin: 20px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    animation: fadeIn 1s ease-out; /* Animação suave de entrada */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 40px;
}

.logo {
    max-width: 200px; /* Um pouco maior para destaque */
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px var(--shadow-light)); /* Sombra para a logo */
}

.page-header h1 {
    color: var(--text-dark); /* Cor escura para título dentro do container branco */
    font-size: 2.5em; /* Título maior */
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header p {
    color: #6c757d; /* Cinza suave para a descrição */
    font-size: 1.15em;
    max-width: 600px;
    margin: 0 auto;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Aumenta o espaço entre os botões */
    margin-bottom: 60px;
    padding: 0 10px; /* Pequeno padding para alinhar com container */
}

.system-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px; /* Aumenta o padding interno */
    background-color: var(--button-primary);
    color: var(--surface-light); /* Texto branco nos botões */
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.25em;
    font-weight: 600;
    transition: all 0.3s ease; /* Transição mais abrangente */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Sombra mais suave */
    min-height: 120px; /* Altura mínima maior */
    text-align: center;
    position: relative; /* Para possíveis ícones ou efeitos futuros */
    overflow: hidden; /* Esconde overflow de efeitos */
}

.system-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-8px); /* Efeito de "elevação" mais pronunciado */
    box-shadow: 0 12px 35px var(--shadow-light); /* Sombra mais forte no hover */
}

/* Efeito de brilho sutil ao passar o mouse */
.system-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.system-button:hover::before {
    opacity: 1;
}

.system-button span {
    display: block;
    font-size: 1.4em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.system-button small {
    display: block;
    font-size: 0.95em;
    opacity: 0.9; /* Um pouco mais visível */
}

.page-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef; /* Linha divisória mais clara */
    color: #888; /* Cinza médio para o footer */
    font-size: 0.9em;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 15px;
    }
    .page-header h1 {
        font-size: 2em;
    }
    .page-header p {
        font-size: 1.05em;
    }
    .system-button {
        padding: 25px;
        font-size: 1.1em;
        min-height: 100px;
    }
    .system-button span {
        font-size: 1.3em;
    }
    .button-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas pequenas */
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 15px;
        margin: 10px;
    }
    .page-header h1 {
        font-size: 1.8em;
    }
    .logo {
        max-width: 160px;
    }
    .page-header p {
        font-size: 0.95em;
    }
    .system-button {
        padding: 20px;
    }
}