/* --- ESTILOS GERAIS --- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 30px;
    box-sizing: border-box;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    position: relative; /* Referência para o alinhamento do logo interno */
}

#auth-container {
    text-align: center;
    max-width: 400px;
}

#protected-content {
    max-width: 1200px;
}

/* --- LOGO INTERNO DO CARD BRANCO --- */
.card-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.header-protected {
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: #333;
    margin: 0 0 10px 0;
}

p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* --- BLOCO DE RECADOS / AVISOS --- */
.notice-box {
    background-color: #f8fafc;
    border-left: 4px solid #0070f3;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.notice-title {
    font-size: 15px;
    font-weight: bold;
    color: #1e293b;
}

.notice-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-line;
}

/* --- SISTEMA DE GRADE (5 COLUNAS) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* --- CARD DE DOWNLOAD --- */
.download-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 15px;
    min-height: 36px;
}

.card-button {
    display: inline-block;
    width: 100%;
    background-color: #0070f3;
    color: white;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.card-button:hover {
    background-color: #0051a8;
}

/* Destaque para o card de suporte/whatsapp */
.download-card.suporte {
    border-color: #bbf7d0;
    background-color: #f8fafc;
}

.download-card.suporte .card-button {
    background-color: #25d366;
}

.download-card.suporte .card-button:hover {
    background-color: #1ebd58;
}

.footer-protected {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.logout-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

/* Classe essencial para ocultar as seções antes/depois do login */
.hidden {
    display: none !important;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
