/* ============================================================
   UtraCampo — tela de login (painel e app do técnico)
   Foto de fundo recolorida na paleta UTRATECH (azul-marinho + brilho laranja),
   cartão laranja translúcido centralizado.
   ============================================================ */
.acesso {
    --acesso-cartao: rgba(214, 128, 18, .86);
    --acesso-botao: #0B1B55;
    --acesso-botao-hover: #13277A;
    position: fixed; inset: 0; z-index: 30;
    display: flex; align-items: center; justify-content: center;
    padding: 24px max(24px, 7vw);
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(44px + env(safe-area-inset-bottom));
    /* Camadas, de cima para baixo:
       brilho laranja · escurecimento para o cartão ficar legível ·
       azul-marinho em modo "color" (a foto assume o tom da marca, mantendo luz e detalhes) · a foto */
    background:
        radial-gradient(ellipse at 15% 100%, rgba(242, 140, 27, .45), rgba(242, 140, 27, 0) 55%),
        linear-gradient(115deg, rgba(5, 11, 36, .30) 0%, rgba(5, 11, 36, .55) 60%, rgba(5, 11, 36, .75) 100%),
        linear-gradient(#0B1B55, #0B1B55),
        url('/assets/img/fundo-login.webp?v=1') center / cover no-repeat;
    background-blend-mode: normal, normal, color, normal;
    background-color: #0C1A4A;
    font-family: Raleway, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-y: auto;
}

.acesso-cartao {
    width: 100%; max-width: 360px;
    background: var(--acesso-cartao);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 22px 22px 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    color: #fff;
}

.acesso-logo { display: block; width: 100%; max-width: 270px; margin: 0 auto 12px; border-radius: 4px; }
.acesso-sistema { text-align: center; margin-bottom: 18px; line-height: 1.15; }
.acesso-sistema strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.acesso-sistema span { font-size: 13px; color: rgba(255,255,255,.9); }

.acesso-campo { position: relative; display: block; margin-bottom: 12px; }
.acesso-campo svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; fill: #111827; pointer-events: none;
}
.acesso .acesso-campo input {
    width: 100%; height: 46px;
    padding: 0 12px 0 42px;
    border: 2px solid transparent; border-radius: 8px;
    background: #fff; color: #111827;
    font: inherit; font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12);
}
.acesso .acesso-campo input::placeholder { color: #6B7280; }
.acesso .acesso-campo input:focus { outline: none; border-color: var(--acesso-botao); }

.acesso-esqueci {
    display: block; margin: 4px auto 14px; padding: 4px;
    background: none; border: 0; color: #fff; font: inherit; font-size: 14px;
    cursor: pointer; text-decoration: none;
}
.acesso-esqueci:hover { text-decoration: underline; }
.acesso-dica {
    background: rgba(11, 27, 85, .35); border-radius: 8px;
    padding: 9px 12px; margin: -6px 0 14px; font-size: 13px; line-height: 1.4; text-align: center;
}

.acesso-erro {
    background: #FEE2E2; color: #991B1B; border-radius: 8px;
    padding: 9px 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; text-align: center;
}
.acesso-erro:empty { display: none; }

.acesso-botao {
    display: block; width: 88%; margin: 0 auto; height: 46px;
    border: 0; border-radius: 999px;
    background: var(--acesso-botao); color: #fff;
    font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.acesso-botao:hover { background: var(--acesso-botao-hover); }
.acesso-botao:disabled { opacity: .7; cursor: default; }

.acesso-extra { margin-top: 14px; text-align: center; font-size: 13px; }
.acesso-extra a { color: #fff; font-weight: 600; }

.acesso-rodape {
    position: fixed; z-index: 31; left: 16px; bottom: calc(12px + env(safe-area-inset-bottom));
    font-size: 12px; color: rgba(255, 255, 255, .75); font-style: italic;
    font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.acesso-rodape strong { font-style: normal; color: #fff; }

/* Celular: cartão centralizado */
@media (max-width: 720px) {
    .acesso { padding-left: 20px; padding-right: 20px; }
    .acesso-cartao { max-width: 400px; padding: 22px 20px 20px; }
}
/* Tela baixa (celular deitado): começa do topo e rola */
@media (max-height: 560px) {
    .acesso { align-items: flex-start; }
    .acesso-logo { max-width: 180px; margin-bottom: 12px; }
}
