:root {
    --dg-verde: #146c43;
    --dg-verde-escuro: #0b3d26;
    --dg-fundo: #f3f6f4;
}

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--dg-fundo);
    font-size: 1.05rem;
    color: #1f2a24;
}

.acesso {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 42%) 1fr;
}

.acesso-marca {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem;
    color: #fff;
    background: linear-gradient(160deg, var(--dg-verde) 0%, var(--dg-verde-escuro) 100%);
}

/* Brasão em marca-d'água */
.acesso-marca::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 360px;
    height: 360px;
    background: url("../img/brasao.png") center / contain no-repeat;
    opacity: .08;
    pointer-events: none;
}

.acesso-brasao img {
    width: 88px;
    height: auto;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.acesso-orgao {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .85rem;
    opacity: .85;
}

.acesso-titulo {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.acesso-texto {
    max-width: 30rem;
    margin: 1rem 0 0;
    opacity: .85;
}

.acesso-conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.acesso-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 30px rgba(15, 40, 25, .08);
}

.acesso-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.acesso-card .form-control {
    min-height: 3.25rem;
    font-size: 1.1rem;
}

.acesso-card .form-control:focus {
    border-color: var(--dg-verde);
    box-shadow: 0 0 0 .25rem rgba(20, 108, 67, .2);
}

.btn-dengue {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--dg-verde);
    --bs-btn-border-color: var(--dg-verde);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--dg-verde-escuro);
    --bs-btn-hover-border-color: var(--dg-verde-escuro);
    --bs-btn-active-bg: var(--dg-verde-escuro);
    --bs-btn-disabled-bg: var(--dg-verde);
    --bs-btn-disabled-border-color: var(--dg-verde);
    min-height: 3.25rem;
    font-weight: 600;
}

.acesso-card a { color: var(--dg-verde); }

.btn-olho {
    min-width: 3.25rem;
}

.forca-senha {
    height: 6px;
    border-radius: 3px;
    background: #e5e9e7;
    overflow: hidden;
}

.forca-senha span {
    display: block;
    height: 100%;
    width: 0;
    transition: width .2s, background-color .2s;
}

.requisitos li { color: #6c757d; }
.requisitos li.ok { color: var(--dg-verde); }
.requisitos li.ok .bi::before { content: "\f26a"; } /* bi-check-circle-fill */

.acesso-rodape {
    margin: 1.5rem 0 0;
    font-size: .85rem;
    color: #6c757d;
    text-align: center;
}

@media (max-width: 991.98px) {
    .acesso { grid-template-columns: 1fr; }
    .acesso-marca {
        flex-direction: row;
        align-items: center;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    .acesso-marca::after { display: none; }
    .acesso-brasao img { width: 60px; padding: 5px; }
    .acesso-titulo { font-size: 1.25rem; }
    .acesso-orgao { font-size: .72rem; }
    .acesso-conteudo { justify-content: flex-start; padding-top: 1.5rem; }
    .acesso-card { padding: 1.75rem 1.25rem; }
}

/* ---------- Animações (2026-11-12) ---------- */
body { font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.acesso-marca { position: relative; overflow: hidden; }
.acesso-marca > *:not(.ac-bolhas):not(.ac-mosca) { position: relative; z-index: 2; }
.ac-bolhas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ac-bolhas span { position: absolute; bottom: -40px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .25); animation: ac-bolha 11s linear infinite; }
.ac-bolhas span:nth-child(1) { left: 8%; } .ac-bolhas span:nth-child(2) { left: 24%; width: 9px; height: 9px; animation-delay: 2s; animation-duration: 8s; }
.ac-bolhas span:nth-child(3) { left: 42%; width: 24px; height: 24px; animation-delay: 4s; } .ac-bolhas span:nth-child(4) { left: 60%; width: 11px; height: 11px; animation-delay: 1s; animation-duration: 9s; }
.ac-bolhas span:nth-child(5) { left: 76%; animation-delay: 6s; animation-duration: 12s; } .ac-bolhas span:nth-child(6) { left: 90%; width: 20px; height: 20px; animation-delay: 3s; }
@keyframes ac-bolha { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-110vh) translateX(16px); opacity: 0; } }
.ac-mosca { position: absolute; z-index: 1; width: 52px; left: 0; top: 0; animation: ac-voo 16s ease-in-out infinite; }
.ac-mosca .asa { transform-box: fill-box; transform-origin: 50% 100%; animation: ac-asa .08s linear infinite alternate; }
@keyframes ac-asa { to { transform: scaleY(.25); } }
@keyframes ac-voo {
  0% { transform: translate(-60px, 18vh) rotate(6deg); } 20% { transform: translate(14vw, 8vh) rotate(-8deg); }
  40% { transform: translate(28vw, 30vh) rotate(10deg); } 60% { transform: translate(10vw, 62vh) rotate(-6deg); }
  80% { transform: translate(30vw, 80vh) rotate(8deg); } 100% { transform: translate(-60px, 18vh) rotate(6deg); }
}
.acesso-brasao img { animation: ac-pula .7s .1s cubic-bezier(.2, .9, .3, 1.3) both; }
.acesso-orgao, .acesso-titulo, .acesso-texto { animation: ac-sobe .7s cubic-bezier(.2, .8, .2, 1) both; }
.acesso-titulo { animation-delay: .1s; } .acesso-texto { animation-delay: .2s; }
.acesso-card { animation: ac-sobe .7s .15s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ac-sobe { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ac-pula { from { opacity: 0; transform: scale(.6) rotate(-10deg); } to { opacity: 1; transform: none; } }
.acesso-card .btn-dengue { position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.acesso-card .btn-dengue:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(11, 61, 38, .8); }
.acesso-card .btn-dengue::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: ac-brilho 3.5s 1.2s ease-in-out infinite; }
@keyframes ac-brilho { 0% { left: -60%; } 35%, 100% { left: 130%; } }
.acesso-card .form-control:focus { transition: box-shadow .2s, border-color .2s; }
.acesso-card .alert-danger { animation: ac-treme .45s; }
@keyframes ac-treme { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .acesso *, .acesso *::after { animation: none !important; } .ac-mosca { display: none; } }
