/* membros.css — tema claro, alinhado ao main.css */

/* ── Auth ─────────────────────────────────────────────────── */
.auth-container {
    min-height: calc(100vh - 120px);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
    background: #f6f8fa;
}
.auth-box {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%; max-width: 420px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.auth-logo { font-size: 2.5rem; margin-bottom: .5rem; }
.auth-box h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; color: #1a1f2e; }
.auth-box > p { color: #57606a; font-size: .88rem; margin-bottom: 1.5rem; }

.auth-tabs {
    display: flex;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.tab-btn {
    flex: 1; padding: .6rem;
    border: none; background: #f6f8fa;
    color: #57606a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; font-size: .88rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.tab-btn.active { background: #0066cc; color: #fff; }

.auth-form { display: flex; flex-direction: column; gap: .6rem; text-align: left; }
.auth-form label { font-size: .8rem; font-weight: 600; color: #57606a; margin-bottom: .1rem; }
.auth-form input {
    padding: .75rem 1rem;
    border: 1px solid #d0d7de; border-radius: 8px;
    background: #fff; color: #1a1f2e;
    font-family: 'Montserrat', sans-serif; font-size: .9rem;
    outline: none; transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.auth-form input:focus { border-color: #0066cc; box-shadow: 0 0 0 3px rgba(0,102,204,.12); }
.auth-form button {
    padding: .8rem; background: #0066cc; color: #fff;
    border: none; border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: .95rem;
    cursor: pointer; margin-top: .35rem;
    transition: background .15s, transform .1s;
}
.auth-form button:hover { background: #0052a3; transform: translateY(-1px); }
.auth-form button:disabled { opacity: .7; cursor: default; transform: none; }
.form-erro { color: #cf222e; font-size: .82rem; min-height: 1.2em; text-align: center; }
.auth-fine { color: #57606a; font-size: .78rem; text-align: center; margin-top: .25rem; }

.auth-beneficios {
    display: flex; flex-direction: column; gap: .35rem;
    text-align: left; margin-bottom: 1.25rem;
    font-size: .82rem; color: #00875a; font-weight: 500;
}
.auth-beneficios span::before { content: "✓  "; font-weight: 700; }

/* ── Área logada ──────────────────────────────────────────── */
.membro-header {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    margin: 2rem 0 1.5rem;
    flex-wrap: wrap; gap: 1rem;
}
.membro-header h1 { font-size: 1.4rem; color: #1a1f2e; margin: 0; }
.membro-header p  { color: #57606a; margin: .25rem 0 0; font-size: .9rem; }
.btn-logout {
    padding: .4rem .9rem;
    border: 1px solid #d0d7de; background: #fff;
    color: #57606a; border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: .83rem; cursor: pointer;
    transition: border-color .15s, color .15s;
}
.btn-logout:hover { border-color: #cf222e; color: #cf222e; }

/* ── Stats ────────────────────────────────────────────────── */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
    background: #fff; border: 1px solid #d0d7de;
    border-radius: 12px; padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.stat-num { font-size: 1.75rem; font-weight: 700; color: #0066cc; line-height: 1; }
.stat-label { font-size: .72rem; color: #57606a; margin-top: .35rem; font-weight: 500; }

.section-title { font-size: 1.1rem; font-weight: 700; color: #1a1f2e; margin-bottom: 1.25rem; }

/* ── Seções por fabricante ────────────────────────────────── */
#lista-certs { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }

.fab-secao {
    border: 1px solid #d0d7de;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.fab-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--fab-bg, #f6f8fa);
    border-bottom: 1px solid #d0d7de;
    flex-wrap: wrap; gap: .75rem;
}
.fab-info { display: flex; align-items: center; gap: .75rem; }
.fab-icon { font-size: 1.5rem; line-height: 1; }
.fab-nome { font-size: 1rem; font-weight: 700; color: var(--fab-cor, #1a1f2e); }
.fab-desc { font-size: .75rem; color: #57606a; margin-top: .1rem; }
.fab-stats {
    display: flex; gap: 1rem;
    font-size: .8rem; font-weight: 600; color: #57606a;
}
.fab-stats span {
    background: #fff; border: 1px solid #d0d7de;
    padding: .2rem .65rem; border-radius: 20px;
}

.fab-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem; padding: 1.25rem;
}
.cert-card {
    background: #f6f8fa; border: 1px solid #d0d7de;
    border-radius: 10px; padding: 1.1rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    display: flex; flex-direction: column;
}
.cert-card:hover {
    border-color: var(--fab-cor, #0066cc);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
    background: #fff;
}
.cert-nivel {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #57606a; margin-bottom: .4rem;
}
.cert-nome { font-size: 1.1rem; font-weight: 700; color: #1a1f2e; margin-bottom: .2rem; }
.cert-full { font-size: .75rem; color: #57606a; margin-bottom: .65rem; line-height: 1.45; flex: 1; }
.cert-count {
    font-size: .8rem; font-weight: 700;
    color: var(--fab-cor, #0066cc);
    margin-bottom: .75rem;
}
.cert-btn {
    width: 100%; padding: .5rem;
    color: #fff; border: none; border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; font-size: .82rem;
    cursor: pointer; transition: opacity .15s;
}
.cert-btn:hover { opacity: .85; }

/* Cards em breve */
.cert-breve { opacity: .6; cursor: default; }
.cert-breve:hover { transform: none !important; box-shadow: none !important; border-color: #d0d7de !important; background: #f6f8fa !important; }
.cert-breve-badge {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #57606a;
    background: #eef1f4; border: 1px solid #d0d7de;
    border-radius: 20px; padding: .2rem .65rem;
    display: inline-block; margin-bottom: .65rem;
}
.cert-btn-breve {
    background: #d0d7de !important; color: #57606a !important;
    cursor: not-allowed !important; opacity: 1 !important;
}

/* ── Simulado ─────────────────────────────────────────────── */
.simulado-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap; gap: .75rem;
}
.simulado-header h2 { font-size: 1.05rem; color: #1a1f2e; margin: 0; }
.btn-fechar {
    padding: .4rem .9rem;
    border: 1px solid #d0d7de; background: #fff;
    color: #57606a; border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: .83rem; cursor: pointer;
}
.btn-fechar:hover { border-color: #cf222e; color: #cf222e; }

#simulado-container {
    background: #fff; border: 1px solid #d0d7de;
    border-radius: 12px; padding: 1.5rem;
    margin-bottom: 2rem;
}
.sim-progress { font-size: .83rem; color: #57606a; margin-bottom: 1rem; }
.sim-progress strong { color: #00875a; }
.sim-pergunta { font-size: .93rem; font-weight: 500; color: #1a1f2e; line-height: 1.65; margin-bottom: 1.25rem; }
.sim-img { max-width: 100%; border-radius: 6px; margin-bottom: 1rem; border: 1px solid #d0d7de; }
.sim-respostas { display: flex; flex-direction: column; gap: .5rem; }
.sim-resp {
    background: #f6f8fa; border: 1px solid #d0d7de; border-radius: 8px;
    padding: .75rem 1rem; font-size: .88rem; text-align: left;
    cursor: pointer; transition: border-color .15s, background .15s;
    font-family: 'Montserrat', sans-serif; color: #1a1f2e; line-height: 1.5;
}
.sim-resp:hover:not(:disabled) { border-color: #0066cc; background: #f0f6ff; }
.sim-resp.correta { background: #e6f4ec; border-color: #00875a; color: #00502e; font-weight: 600; }
.sim-resp.errada  { background: #fdf0f0; border-color: #cf222e; color: #6b1117; }
.sim-resp:disabled { cursor: default; }
.sim-feedback {
    margin-top: 1rem; padding: .75rem 1rem;
    border-radius: 8px; font-size: .88rem;
    font-weight: 500; line-height: 1.5;
}
.sim-feedback.certo  { background: #e6f4ec; color: #00502e; border: 1px solid #00875a; }
.sim-feedback.errado { background: #fdf0f0; color: #6b1117; border: 1px solid #cf222e; }
.sim-final { text-align: center; padding: 1.5rem; }
.sim-score { font-size: 3rem; font-weight: 700; color: #0066cc; line-height: 1; }
.sim-score-label { color: #57606a; margin: .35rem 0 1rem; }
.sim-final p { color: #1a1f2e; margin-bottom: 1.25rem; }

/* ── Toast ────────────────────────────────────────────────── */
.toast-bv {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    background: #00875a; color: #fff;
    padding: .85rem 1.5rem; border-radius: 10px;
    font-weight: 600; font-size: .9rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    white-space: nowrap;
    animation: slideUp .3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.loading { color: #57606a; font-size: .9rem; padding: 1rem 0; }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: 1fr; }
    .auth-box { padding: 1.75rem 1.25rem; }
    .membro-header { flex-direction: column; }
    .toast-bv { white-space: normal; max-width: 90vw; text-align: center; }
}
