/* PoliClinica Real - estilo comum das telas do paciente (Entrar, Minhas consultas) */
* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f4f7f6 0%, #e5eef4 100%);
    color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
}

.pagina {
    width: 100%;
    max-width: 520px;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.06);
    padding: 1.75rem 1.4rem;
    margin-bottom: 14px;
}

.centro { text-align: center; }

.logo {
    width: 160px;
    max-width: 60%;
    display: block;
    margin: 0 auto 1rem auto;
}

h1 {
    font-size: 1.35rem;
    margin: 0 0 0.35rem 0;
}

.sub {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 1.25rem 0;
}

.campo-grupo { margin-bottom: 14px; text-align: left; }

.campo-grupo label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.campo {
    width: 100%;
    height: 50px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

    .campo:focus {
        outline: none;
        border-color: #68CCAA;
        box-shadow: 0 0 0 3px rgba(10, 146, 68, 0.15);
    }

.aceite {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
    margin: 6px 0 16px 0;
}

    .aceite input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }

.botao {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0 16px;
}

/* Texto escuro sobre o #68CCAA: branco daria contraste 1,9:1 e sumiria no sol.
   Para voltar ao branco, troque por #2A7F63 o fundo e por #fff a cor. */
.botao-principal { background: #68CCAA; color: #0B3B2E; }
.botao-principal:disabled { opacity: 0.7; }
.botao-secundario { background: #f1f5f9; color: #475569; }

/* Contador de mensagens não lidas (botão "Mensagens") */
.contador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-left: 8px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.linha-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

    .linha-botoes > * { flex: 1 1 180px; }

.mensagem {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.4;
    margin-top: 12px;
    text-align: left;
}

.mensagem-erro { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.mensagem-ok { background: #F2FBF8; border: 1px solid #BFE9DA; color: #1F6B52; }
.mensagem-info { background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; }

.consulta {
    border: 1px solid #eef2f7;
    border-left: 4px solid #68CCAA;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: #f8fafc;
}

.consulta-topo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    align-items: baseline;
}

.consulta-dia { font-weight: 800; font-size: 1.05rem; }
.consulta-hora { color: #68CCAA; font-weight: 800; font-size: 1.15rem; }
.consulta-medico { font-weight: 600; margin-top: 6px; }
.consulta-esp { color: #64748b; font-size: 0.88rem; }

.selo {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 8px;
}

.selo-agendado { background: #fef9c3; color: #854d0e; }
.selo-confirmado { background: #D8F2E8; color: #1F6B52; }
.selo-clinica { background: #e0f2fe; color: #075985; }
.selo-outro { background: #f1f5f9; color: #475569; }

.consulta .linha-botoes .botao { min-height: 44px; font-size: 0.92rem; }

.rodape {
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 6px 0 24px 0;
}

    .rodape a { color: #64748b; }

/* Titular e dependentes: alterna de quem são as consultas mostradas */
.pessoas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px 0;
}

    .pessoas a {
        flex: 0 1 auto;
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #475569;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

        .pessoas a.atual {
            background: #68CCAA;
            border-color: #68CCAA;
            color: #0B3B2E;
        }

.oculto { display: none !important; }
