/*
 * Tela de entrada do GLPI na identidade da HDT Energy, no mesmo desenho do login do HDT Daily:
 * um cartão central sobre a página quente; à esquerda o formulário, à direita o palco grafite com
 * a divisão em S, a seda animada, uma amostra da Central de TI em vidro e o Luneco.
 * No celular o palco vai para o topo e o formulário sobe por cima dele num cartão.
 * Regras da casa: só a ação principal tem cor; nenhuma borda colorida em cartão ou painel; nada
 * de pílula colorida; movimento só na vitrine e desligado com prefers-reduced-motion.
 * O HTML vem do gancho display_login (hook.php); tudo aqui só vale com ele na página.
 */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("/hdt-api/ui/fontes/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/hdt-api/ui/fontes/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/hdt-api/ui/fontes/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/hdt-api/ui/fontes/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/hdt-api/ui/fontes/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("/hdt-api/ui/fontes/outfit-700.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url("/hdt-api/ui/fontes/outfit-800.woff2") format("woff2"); }

/* o fundo mora no html: assim o palco pode ficar ATRÁS do conteúdo (z-index negativo) e ainda na frente do fundo */
html:has(.hdt-sso) {
    min-height: 100%;
    background:
        radial-gradient(46rem 30rem at 0% 0%, rgb(255 213 23 / .2), transparent 70%),
        radial-gradient(50rem 34rem at 100% 100%, rgb(98 108 112 / .18), transparent 70%),
        #f6f5f2;
    background-attachment: fixed;
}

body:has(.hdt-sso) {
    --hdt-grafite: #313b3e;
    --hdt-amarelo: #ffd517;
    --hdt-texto: #272b2d;
    --hdt-suave: #525b5f;
    --hdt-apagado: #6d767a;
    --hdt-linha: #e7e3db;
    --hdt-saida: cubic-bezier(.16, 1, .3, 1);
    --hdt-mola: cubic-bezier(.34, 1.36, .64, 1);
    /* o cartão central: largura, altura e canto de cima à esquerda */
    --q-w: min(78rem, 100vw - 3rem);
    --q-h: min(47rem, 100dvh - 3rem);
    --q-x: calc((100vw - var(--q-w)) / 2);
    --q-y: calc((100dvh - var(--q-h)) / 2);
    --q-form: .45;
    position: relative;
    min-height: 100dvh;
    background: transparent !important;
    color: var(--hdt-texto);
    font-family: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
    --hdt-titulo: "Outfit", "Manrope", ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- casca do GLPI: some o logo, o cartão e o título "Login to your account" --- */
body:has(.hdt-sso) .glpi-logo,
body:has(.hdt-sso) .main-content-card > .card-header,
body:has(.hdt-sso) form > .row > .col-md-5 > .card-header {
    display: none !important;
}

/* o palco se posiciona pela página: nenhum ancestral dele pode ser posicionado nem ter
   transform, filter ou backdrop-filter (criariam um bloco de contenção e ele ficaria preso) */
body:has(.hdt-sso) .page-anonymous :has(> .hdt-palco),
body:has(.hdt-sso) .page-anonymous :has(.hdt-palco) {
    position: static !important;
}

body:has(.hdt-sso) .page-anonymous > .flex-fill {
    margin-top: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

body:has(.hdt-sso) .container-tight {
    max-width: 23rem !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 !important;
}

body:has(.hdt-sso) .main-content-card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body:has(.hdt-sso) .main-content-card > .card-body {
    padding: 0;
}

body:has(.hdt-sso) form > .row {
    margin: 0;
    flex-direction: column;
}

body:has(.hdt-sso) form > .row > * {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    padding: 0 !important; /* .px-2 do GLPI também é !important */
    text-align: left !important; /* a coluna do gancho vem com .text-center do GLPI */
    font-size: .9375rem;
}

body:has(.hdt-sso) form > .row > .col-auto:has(.hdt-sso) {
    order: -1;
}

/* usuário e senha locais: só quando "Acesso da TI" está aberto */
body:has(.hdt-sso) form > .row > .col-md-5 {
    display: none;
}

body:has(#hdt-local:checked) form > .row > .col-md-5 {
    display: block;
    margin-top: 1.1rem;
    animation: hdt-subir .5s var(--hdt-saida) backwards;
}

body:has(.hdt-sso) .form-label {
    margin-bottom: .3rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--hdt-suave);
}

body:has(.hdt-sso) .form-control,
body:has(.hdt-sso) .form-select {
    min-height: 2.75rem;
    border-radius: .8rem;
    border-color: #d5d0c6;
    background-color: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body:has(.hdt-sso) .form-control:focus,
body:has(.hdt-sso) .form-select:focus {
    border-color: var(--hdt-suave);
    box-shadow: 0 0 0 4px rgb(98 108 112 / .16);
}

body:has(.hdt-sso) .form-check-input:checked {
    background-color: var(--hdt-grafite);
    border-color: var(--hdt-grafite);
}

/* botão do formulário local: secundário (branco com contorno) quando há login Microsoft */
body:has(.hdt-sso) .btn-primary {
    height: 3rem;
    color: var(--hdt-texto);
    background: #fff;
    border: 1px solid #d5d0c6;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: none;
    transition: transform .24s var(--hdt-mola), background-color .14s ease, border-color .14s ease;
}

body:has(.hdt-sso) .btn-primary:hover {
    color: var(--hdt-texto);
    background: #f9f8f5;
    border-color: var(--hdt-apagado);
    transform: translateY(-1px);
}

body:has(.hdt-sso) .btn-primary:active {
    transform: scale(.98);
}

/* sem login Microsoft, entrar com usuário e senha é a ação principal: ganha a cor */
body:has(.hdt-sso):not(:has(.hdt-sso-botao)) .btn-primary,
.hdt-sso-botao {
    border: 0;
    background: var(--hdt-amarelo);
    color: #26303a !important;
    font-weight: 700;
    box-shadow: 0 14px 28px -12px rgb(255 213 23 / .95), inset 0 1px 0 rgb(255 255 255 / .5);
}

body:has(.hdt-sso):not(:has(.hdt-sso-botao)) .btn-primary:hover,
.hdt-sso-botao:hover {
    background: #ffdc3d;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -12px rgb(255 213 23 / 1), inset 0 1px 0 rgb(255 255 255 / .5);
}

body:has(.hdt-sso) .page-anonymous .text-center.text-muted {
    margin-top: 1.5rem !important;
    font-size: .7rem;
    text-align: left !important;
    color: var(--hdt-apagado) !important;
}

body:has(.hdt-sso) .page-anonymous .text-center.text-muted a {
    color: inherit;
}

/* --- coluna do formulário --- */
.hdt-sso-logo {
    display: block;
    height: 3.1rem;
    width: auto;
    margin: 0 0 1.6rem;
    animation: hdt-subir .7s var(--hdt-saida) .1s backwards;
}

.hdt-sso-titulo {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    color: var(--hdt-texto);
    animation: hdt-subir .7s var(--hdt-saida) .18s backwards;
}

.hdt-sso-titulo span {
    color: var(--hdt-amarelo);
}

.hdt-sso-sub {
    margin: .35rem 0 1.75rem;
    font-size: .95rem;
    color: var(--hdt-suave);
    animation: hdt-subir .7s var(--hdt-saida) .26s backwards;
}

.hdt-sso-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    height: 3.25rem;
    border-radius: 999px;
    font-size: 1rem;
    text-decoration: none !important;
    transition: transform .24s var(--hdt-mola), background-color .14s ease, box-shadow .2s ease;
    animation: hdt-subir .7s var(--hdt-saida) .34s backwards;
}

.hdt-sso-botao:active {
    transform: scale(.98);
}

.hdt-sso-botao:focus-visible,
.hdt-local-chave:focus-visible + .hdt-local-rotulo {
    outline: 2px solid var(--hdt-texto);
    outline-offset: 3px;
}

.hdt-sso-botao svg {
    width: 1.6rem;
    height: 1.6rem;
    padding: .2rem;
    border-radius: .35rem;
    background: #fff;
}

.hdt-sso-aviso {
    margin: 1.1rem 0 0;
    font-size: .84rem;
    line-height: 1.55;
    color: var(--hdt-suave);
    animation: hdt-subir .7s var(--hdt-saida) .42s backwards;
}

.hdt-sso-erro {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: .9rem;
    background: #fef3f2;
    color: #b42318;
    font-size: .875rem;
    animation: hdt-tremer .36s ease 1;
}

.hdt-local-chave {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hdt-local-rotulo {
    display: inline-block;
    margin-top: 1.1rem;
    font-size: .8rem;
    color: var(--hdt-apagado);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hdt-local-chave:checked + .hdt-local-rotulo {
    color: var(--hdt-texto);
}

/* --- palco: grafite com seda, título que gira, amostra em vidro e o Luneco --- */
.hdt-palco {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: 17rem;
    isolation: isolate;
    overflow: hidden;
    border-radius: 0 0 50% 50% / 0 0 2.6rem 2.6rem;
    background: linear-gradient(150deg, #2c3134, #16191b 70%);
    color: #fff;
    text-align: left;
    animation: hdt-abrir-y 1s var(--hdt-saida) backwards;
}

.hdt-palco-seda {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hdt-palco-seda.is-live {
    opacity: .9;
}

.hdt-palco-seda canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* véu escuro em cima, para o título ler bem sobre a seda */
.hdt-palco::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgb(21 24 26 / .85) 0%, rgb(21 24 26 / .35) 42%, rgb(21 24 26 / 0) 68%);
}

.hdt-palco-titulo {
    position: absolute;
    top: 1.6rem;
    left: 1.5rem;
    right: 38%;
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
}

/* cada palavra ocupa uma linha alta o bastante para a perna do p e do q não vazar na de baixo */
.hdt-palco-gira {
    display: block;
    height: 1.3em;
    margin: -.1em 0 -.14em;
    overflow: hidden;
}

.hdt-palco-gira > span {
    display: grid;
}

.hdt-palco-gira i {
    display: block;
    height: 1.3em;
    line-height: 1.3em;
    font-style: normal;
    white-space: nowrap;
}

.hdt-palco-resto {
    display: block;
    max-width: 21rem;
    margin-top: .2rem;
    font-size: .62em;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: rgb(255 255 255 / .6);
    animation: hdt-subir .8s var(--hdt-saida) .6s backwards;
}

.hdt-palco-resto b {
    color: var(--hdt-amarelo);
}

.hdt-tela,
.hdt-palco-rodape {
    display: none;
}

.hdt-luneco {
    position: absolute;
    right: 5%;
    bottom: -.9rem;
    height: 12.5rem;
    width: auto;
    filter: drop-shadow(0 22px 26px rgb(0 0 0 / .5));
    transform-origin: 50% 100%;
    animation: hdt-luneco-entra 1s var(--hdt-saida) .7s backwards;
}

/* celular e tablet em pé: o formulário sobe por cima do palco, num cartão */
@media (max-width: 63.99rem), (max-height: 39.99rem) {
    body:has(.hdt-sso) .page-anonymous {
        padding: 14.6rem 1rem 2rem;
    }

    body:has(.hdt-sso) .main-content-card {
        padding: 1.75rem 1.4rem 1.5rem;
        border-radius: 1.75rem;
        background: #fff;
        box-shadow: 0 30px 70px -30px rgb(22 25 27 / .5);
        animation: hdt-aparecer .8s ease .2s backwards;
    }

    body:has(.hdt-sso) .form-control,
    body:has(.hdt-sso) .form-select {
        font-size: 16px;
    }
}

/* computador: cartão central com o formulário à esquerda e o palco em S à direita */
@media (min-width: 64rem) and (min-height: 40rem) {
    /* a moldura do cartão: branca, com uma borda de vidro em volta e sombra longa */
    body:has(.hdt-sso)::before {
        content: "";
        position: fixed;
        z-index: -2;
        left: var(--q-x);
        top: var(--q-y);
        width: var(--q-w);
        height: var(--q-h);
        border-radius: 2rem;
        background: #fff;
        box-shadow: 0 0 0 .6rem rgb(255 255 255 / .5), 0 40px 90px -40px rgb(22 25 27 / .55);
        animation: hdt-aparecer .9s ease backwards;
    }

    body:has(.hdt-sso) .page-anonymous {
        position: fixed;
        left: var(--q-x);
        top: var(--q-y);
        width: calc(var(--q-w) * var(--q-form));
        height: var(--q-h);
        margin: 0;
        padding: 2.5rem 3rem;
        display: flex;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    body:has(.hdt-sso) .page-anonymous > .flex-fill {
        width: 100%;
        margin: auto 0 !important;
    }

    .hdt-palco {
        position: fixed;
        left: calc(var(--q-x) + var(--q-w) * var(--q-form));
        top: var(--q-y);
        right: auto;
        width: calc(var(--q-w) * (1 - var(--q-form)));
        height: var(--q-h);
        border-radius: 0 2rem 2rem 0;
        /* divisão em S do protótipo do Leonardo (a mesma do HDT Daily): sai do topo com canto
           arredondado, estufa para a esquerda, desce em diagonal e volta a ficar vertical no pé */
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none' width='100' height='100'%3E%3Cpath d='M100 0H20.5Q17.6 0 15.6 2.6C9 9.5 3 18 0.9 27C0 31 0 35 0 38C0 52 4 62 8.5 72C12.5 81 15.5 88 16.8 94C17.4 97 17.8 99 18 100H100Z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none' width='100' height='100'%3E%3Cpath d='M100 0H20.5Q17.6 0 15.6 2.6C9 9.5 3 18 0.9 27C0 31 0 35 0 38C0 52 4 62 8.5 72C12.5 81 15.5 88 16.8 94C17.4 97 17.8 99 18 100H100Z'/%3E%3C/svg%3E");
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        animation-name: hdt-abrir-x;
        animation-duration: 1.1s;
        animation-delay: .15s;
    }

    .hdt-palco-titulo {
        top: 3.1rem;
        left: 6.6rem;
        right: 2.5rem;
        font-size: 2.9rem;
    }

    .hdt-palco-resto {
        font-size: .58em;
    }

    /* amostra da Central de TI: um painel de vidro inclinado, com as linhas entrando uma a uma */
    .hdt-tela {
        position: absolute;
        left: 23%;
        top: 37%;
        display: block;
        width: 16.5rem;
        padding: .9rem .95rem 1rem;
        border-radius: 1.25rem;
        background: rgb(255 255 255 / .09);
        box-shadow: inset 0 0 0 1px rgb(255 255 255 / .13), 0 30px 50px -30px rgb(0 0 0 / .7);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        transform: perspective(60rem) rotateY(13deg) rotateX(4deg);
        transform-origin: 0 50%;
        animation: hdt-tela-entra 1.1s var(--hdt-saida) .75s backwards;
    }

    .hdt-tela-topo {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: .6rem;
        font-size: .82rem;
    }

    .hdt-tela-topo b {
        font-weight: 800;
        letter-spacing: -.01em;
    }

    .hdt-tela-topo span,
    .hdt-tela small {
        font-size: .66rem;
        color: rgb(255 255 255 / .55);
    }

    .hdt-tela ul {
        position: relative;
        display: grid;
        gap: .4rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* um realce claro percorre as linhas, como quem confere o inventário */
    .hdt-tela ul::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 2.6rem;
        border-radius: .8rem;
        background: rgb(255 255 255 / .1);
        animation: hdt-conferir 7s var(--hdt-saida) 2.2s infinite;
    }

    .hdt-tela li {
        position: relative;
        display: flex;
        align-items: center;
        gap: .6rem;
        height: 2.6rem;
        padding: 0 .55rem;
        border-radius: .8rem;
        animation: hdt-subir .6s var(--hdt-saida) backwards;
        animation-delay: calc(1.1s + var(--i) * .12s);
    }

    .hdt-tela-icone {
        flex: none;
        display: grid;
        place-items: center;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 50%;
        background: rgb(255 255 255 / .12);
    }

    .hdt-tela-icone svg {
        width: .9rem;
        height: .9rem;
    }

    .hdt-tela-texto {
        display: grid;
        min-width: 0;
        line-height: 1.25;
    }

    .hdt-tela-texto b {
        font-size: .74rem;
        font-weight: 600;
    }

    .hdt-tela-estado {
        margin-left: auto;
        font-size: .66rem;
        font-weight: 600;
        color: rgb(255 255 255 / .75);
    }

    .hdt-tela-pe {
        display: flex;
        align-items: center;
        gap: .6rem;
        margin-top: .75rem;
        padding-top: .7rem;
        border-top: 1px solid rgb(255 255 255 / .12);
        font-size: .7rem;
        color: rgb(255 255 255 / .7);
    }

    .hdt-tela-pe b {
        color: #fff;
        font-weight: 800;
    }

    .hdt-tela-pe svg {
        flex: none;
        width: 1.9rem;
        height: 1.9rem;
        transform: rotate(-90deg);
    }

    .hdt-tela-pe circle {
        fill: none;
        stroke: rgb(255 255 255 / .14);
        stroke-width: 4;
    }

    .hdt-tela-pe .hdt-tela-anel {
        stroke: var(--hdt-amarelo);
        stroke-linecap: round;
        stroke-dasharray: 88;
        stroke-dashoffset: 12.3;
        animation: hdt-anel 1.4s var(--hdt-saida) 1.6s backwards;
    }

    .hdt-luneco {
        right: 3.5%;
        bottom: -1.2rem;
        height: min(54%, 24rem);
        animation: hdt-luneco-entra 1s var(--hdt-saida) .9s backwards, hdt-balanco 6s ease-in-out 2.2s infinite;
    }

    .hdt-palco-rodape {
        position: absolute;
        left: 19.5%;
        bottom: 1.6rem;
        display: block;
        margin: 0;
        font-size: .7rem;
        color: rgb(255 255 255 / .5);
        animation: hdt-aparecer 1s ease 1.6s backwards;
    }
}

@keyframes hdt-subir {
    from { opacity: 0; transform: translateY(14px); }
}

@keyframes hdt-aparecer {
    from { opacity: 0; }
}

@keyframes hdt-tremer {
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@keyframes hdt-abrir-x {
    from { clip-path: inset(0 0 0 100%); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes hdt-abrir-y {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes hdt-luneco-entra {
    from { opacity: 0; transform: translateY(30%); }
}

@keyframes hdt-balanco {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg) translateY(-6px); }
}

@keyframes hdt-tela-entra {
    from { opacity: 0; transform: perspective(60rem) rotateY(28deg) rotateX(4deg) translateX(3rem); }
}

@keyframes hdt-anel {
    from { stroke-dashoffset: 88; }
}

@keyframes hdt-conferir {
    0%, 22% { transform: translateY(0); }
    33%, 55% { transform: translateY(3rem); }
    66%, 88% { transform: translateY(6rem); }
    100% { transform: translateY(0); }
}

@keyframes hdt-girar-palavra {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-1.3em); }
    50%, 70% { transform: translateY(-2.6em); }
    75%, 95% { transform: translateY(-3.9em); }
    100% { transform: translateY(-5.2em); }
}

@media (prefers-reduced-motion: no-preference) {
    .hdt-palco-gira > span {
        animation: hdt-girar-palavra 10s cubic-bezier(.7, 0, .2, 1) 1.4s infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(.hdt-sso)::before,
    body:has(.hdt-sso) *,
    body:has(.hdt-sso) *::before,
    body:has(.hdt-sso) *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* =============================================================================
   Coluna do formulário igual à do HDT Daily: logo com o nome do produto, uma
   linha de contexto, "Bem-vindo de volta.", botão da Microsoft com o símbolo num
   círculo branco e a seta, aviso de acesso restrito e os logos das empresas.
   ========================================================================== */
.hdt-sso-logo { display: none; }

.hdt-sso-marca {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0 0 3.5rem;
    animation: hdt-subir .7s var(--hdt-saida) .05s backwards;
}

.hdt-sso-marca img {
    width: 4rem;
    height: auto;
}

.hdt-sso-marca span {
    padding-left: .85rem;
    border-left: 1.5px solid #b9b4aa;
    font-family: var(--hdt-titulo);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.6;
    color: var(--hdt-texto);
}

.hdt-sso-sobre {
    margin: 0 0 .6rem;
    font-size: .84rem;
    color: var(--hdt-suave);
    animation: hdt-subir .7s var(--hdt-saida) .12s backwards;
}

.hdt-sso-titulo,
.hdt-palco-titulo {
    font-family: var(--hdt-titulo);
}

.hdt-sso-titulo {
    font-size: 3.1rem;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.hdt-sso-sub {
    margin: 1rem 0 1.9rem;
    font-size: 1rem;
    line-height: 1.6;
}

.hdt-sso-botao {
    justify-content: flex-start;
    gap: .9rem;
    height: 3.5rem;
    padding: 0 1.25rem 0 .4rem;
    font-family: var(--hdt-titulo);
    font-size: 1.02rem;
    background: radial-gradient(120% 130% at 18% 0%, rgb(255 248 220 / .55), transparent 52%), linear-gradient(180deg, #ffd517 0%, #f5c400 100%);
}

.hdt-sso-botao:hover {
    background: radial-gradient(120% 130% at 18% 0%, rgb(255 248 220 / .7), transparent 52%), linear-gradient(180deg, #ffdc3d 0%, #f5c400 100%);
}

.hdt-sso-ms {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgb(38 43 46 / .12);
}

.hdt-sso-botao .hdt-sso-ms svg {
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.hdt-sso-botao .hdt-sso-seta {
    width: 1.15rem;
    height: 1.15rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    transition: transform .3s var(--hdt-mola);
}

.hdt-sso-botao:hover .hdt-sso-seta {
    transform: translateX(4px);
}

.hdt-sso-aviso {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .9rem;
    font-size: .8rem;
}

.hdt-sso-aviso svg {
    width: .95rem;
    height: .95rem;
    flex: none;
}

/* logos do grupo: coloridos, todos do mesmo tamanho, com o nome ao lado (pílula neutra) */
.hdt-sso-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}

.hdt-sso-logos li {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding: .4rem .75rem .4rem .45rem;
    border: 1px solid #ece9e2;
    border-radius: 999px;
    background: #fff;
    animation: hdt-subir .5s var(--hdt-saida) backwards;
    animation-delay: calc(.9s + var(--i, 0) * .06s);
    transition: border-color .2s ease, transform .25s var(--hdt-saida), box-shadow .25s ease;
}

.hdt-sso-logos li:hover {
    border-color: #d6d1c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -12px rgb(38 43 46 / .35);
}

.hdt-sso-logos img {
    flex: none;
    width: 2.4rem;
    height: 1.75rem;
    object-fit: contain;
}

.hdt-sso-logos span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem;
    font-weight: 700;
    color: #3a4145;
}

/* com o formulário local aberto os logos saem, para a coluna não ficar comprida */
body:has(#hdt-local:checked) .hdt-sso-logos {
    display: none;
}

body:has(#hdt-local:checked) .hdt-sso-marca {
    margin-bottom: 1.75rem;
}

body:has(#hdt-local:checked) .hdt-sso-titulo {
    font-size: 2.4rem;
}

body:has(#hdt-local:checked) .hdt-sso-sub {
    margin: .6rem 0 1.1rem;
    font-size: .92rem;
}

body:has(.hdt-sso) .btn-primary {
    font-family: var(--hdt-titulo);
}

@media (min-width: 64rem) and (min-height: 40rem) {
    body:has(.hdt-sso) .page-anonymous {
        padding: 2.25rem 3.25rem;
    }

    body:has(.hdt-sso) .container-tight {
        max-width: 26rem !important;
        margin: 0;
    }

    .hdt-palco-titulo {
        font-size: 3.4rem;
    }

    .hdt-luneco {
        height: min(58%, 27rem);
    }
}

@media (max-width: 63.99rem), (max-height: 39.99rem) {
    .hdt-sso-marca {
        margin-bottom: 1.5rem;
    }

    .hdt-sso-titulo {
        font-size: 2.4rem;
    }

    .hdt-sso-logos {
        margin-top: 1.75rem;
    }
}
