/* ═══════════════════════════════════════════════════════════════════════
   Área do cliente no domínio principal (/cliente/) — login e painel.
   Prefixo ps- (portal site). O login reusa a paleta sp- da landing.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Login ─────────────────────────────────────────────────────────────── */
.ps-body {
    min-height: 100vh;
    background:
        radial-gradient(800px 400px at 85% -10%, rgba(59, 130, 246, .35), transparent 60%),
        radial-gradient(600px 340px at -10% 110%, rgba(37, 99, 235, .25), transparent 60%),
        linear-gradient(160deg, var(--sp-primaria) 0%, var(--sp-primaria-2) 100%);
}
.ps-centro {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--esp-7, 32px) var(--esp-4, 16px);
}
.ps-card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: var(--esp-7, 32px) var(--esp-7, 32px) var(--esp-6, 24px);
    box-shadow: 0 25px 60px rgba(2, 6, 23, .5);
}
.ps-brand {
    color: var(--sp-primaria) !important;
    justify-content: center;
    display: flex;
    margin-bottom: var(--esp-5, 20px);
}
.ps-card h1 {
    color: var(--sp-primaria);
    font-size: var(--fs-7, 1.4rem);
    text-align: center;
    margin-bottom: var(--esp-2, 8px);
}
.ps-sub {
    color: var(--sp-texto-suave);
    font-size: var(--fs-4, .9rem);
    text-align: center;
    margin-bottom: var(--esp-6, 24px);
}
.ps-card form { display: grid; gap: var(--esp-4, 16px); }
.ps-card form label {
    display: grid;
    gap: var(--esp-1, 4px);
    font-size: var(--fs-3, .82rem);
    font-weight: 600;
    color: var(--sp-primaria);
}
.ps-dica {
    font-weight: 400;
    color: var(--sp-texto-suave);
    font-size: var(--fs-2, .75rem);
}
.ps-alerta--ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
    margin-bottom: var(--esp-4, 16px);
}
.ps-card .sp-form-erro { margin-bottom: var(--esp-4, 16px); }

.ps-divisor {
    display: flex;
    align-items: center;
    gap: var(--esp-3, 12px);
    color: var(--sp-texto-suave);
    font-size: var(--fs-3, .82rem);
    margin: var(--esp-6, 24px) 0 var(--esp-4, 16px);
}
.ps-divisor::before,
.ps-divisor::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sp-borda);
}
.ps-escola-box {
    background: var(--sp-fundo-alt);
    border: 1px solid var(--sp-borda);
    border-radius: 14px;
    padding: var(--esp-4, 16px);
}
.ps-escola-box p {
    font-size: var(--fs-3, .82rem);
    color: var(--sp-texto);
    margin-bottom: var(--esp-3, 12px);
    line-height: 1.5;
}
.ps-escola-box form { display: grid; gap: var(--esp-3, 12px); }
.ps-escola-box .sp-modal__campo { background: #fff; }
.ps-rodape {
    display: block;
    text-align: center;
    margin-top: var(--esp-5, 20px);
    font-size: var(--fs-3, .82rem);
}
.ps-rodape a { color: var(--sp-texto-suave); text-decoration: none; }
.ps-rodape a:hover { color: var(--sp-acento-escuro); }

/* ── Painel ────────────────────────────────────────────────────────────── */
.ps-painel-body {
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.ps-header {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: var(--esp-3, 12px) 0;
    box-shadow: 0 6px 18px rgba(2, 6, 23, .25);
}
.ps-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--esp-3, 12px);
}
.ps-header__marca {
    display: flex;
    align-items: center;
    gap: var(--esp-3, 12px);
}
.ps-header__logo {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: var(--fs-6, 1.15rem);
    flex-shrink: 0;
}
.ps-header__brand { font-size: var(--fs-3, .82rem); color: #5b6777; }
.ps-header__brand strong { color: #60a5fa; }
.ps-header__escola { font-weight: 700; color: #fff; }
.ps-header__acoes {
    display: flex;
    align-items: center;
    gap: var(--esp-2, 8px);
}
.ps-painel-main { flex: 1; width: 100%; max-width: 1200px; margin-inline: auto; }
.ps-painel-footer {
    text-align: center;
    color: #5b6777;
    padding: var(--esp-5, 20px);
}
.ps-painel-footer a { color: #2563eb; }
