/* ==========================================================================
   Refinamentos visuais compartilhados (26PG)
   Camada aditiva: entra depois de style.css/client.css e só ajusta acabamento.
   ========================================================================== */

:root {
    --ink-strong: #0f2733;
    --ink-soft: #5a6b78;
    --focus-ring: rgba(0, 124, 184, 0.45);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Superfícies do navegador que ninguém desenha e todo mundo vê --- */
::selection {
    background: rgba(141, 233, 105, 0.45);
    color: #05202c;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar discreta, no tom da marca */
* {
    scrollbar-width: thin;
    scrollbar-color: #c3ccd4 transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #c3ccd4;
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: #a5b1bb;
    background-clip: content-box;
}

/* Foco visível e consistente (acessibilidade + acabamento) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 6px;
}

/* --- Botões com peso e resposta --- */
.btn {
    position: relative;
    transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
        background-color 0.18s ease;
    text-decoration: none;
    line-height: 1.3;
}

.btn-primary {
    box-shadow: 0 2px 6px rgba(0, 90, 135, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(0, 90, 135, 0.3);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

/* --- Formulários com hierarquia melhor --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    background: #fff;
    color: var(--ink-strong);
}

input::placeholder,
textarea::placeholder {
    color: #93a1ac;
}

input:disabled {
    cursor: not-allowed;
}

label {
    letter-spacing: 0.04em;
}

/* --- Cards: sombra com deslocamento real, não halo --- */
.card {
    box-shadow: 0 1px 2px rgba(15, 39, 51, 0.06), 0 6px 20px rgba(15, 39, 51, 0.06);
    border: 1px solid rgba(15, 39, 51, 0.04);
}

/* --- Página de autenticação (login/cadastro/senha) --- */
.login-wrapper {
    background:
        radial-gradient(90% 60% at 50% -10%, rgba(0, 124, 184, 0.16), transparent 70%),
        var(--background-color);
    padding: 32px 16px;
}

.login-box.card {
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(15, 39, 51, 0.06), 0 18px 44px rgba(15, 39, 51, 0.12);
    animation: sobe 0.5s var(--ease-out) both;
}

@keyframes sobe {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* O único logo disponível é para fundo escuro — então ele ganha um suporte escuro */
.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 16px;
    background: linear-gradient(150deg, #00699e 0%, #005a87 50%, #04293b 100%);
    box-shadow: 0 3px 8px rgba(4, 41, 59, 0.18), 0 12px 28px rgba(4, 41, 59, 0.2);
}

.auth-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.login-box .auth-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink-strong);
    margin: 0 0 4px;
    text-align: center;
    letter-spacing: -0.01em;
}

.login-box .auth-sub {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 0 0 24px;
}

.login-box .auth-alt {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef1f4;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.login-box .auth-alt a {
    font-weight: 700;
}

/* Mensagens de estado */
.alerta {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.alerta-erro {
    background: #fff1ee;
    color: #b02a10;
}

.alerta-ok {
    background: #e8faf0;
    color: #04663f;
}

.alerta-aviso {
    background: #fff7e6;
    color: #8a4a00;
}
