/* =========================================================
   LOGIN - Útil ERP (card + banner 60/40, invertido)
   ========================================================= */

/* Base */
html,
body {
    height: 100%;
}

body.hg-login {
    min-height: 100vh;
    margin: 0;
    background: #f4f6fb;
}

/* Layout */
.hg-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* mobile: 1 coluna */
}

/* Coluna do banner */
.hg-left {
    background: #ffffff;
    display: none;
    /* mobile: escondido */
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.hg-left img {
    max-width: 100%;
    height: auto;
}

/* Coluna do login */
.hg-right {
    width: 100%;
    padding: 32px 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    /* centraliza horizontal */
    justify-content: center;
    /* centraliza vertical */
}

/* Card */
.hg-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    padding: 26px;
    position: relative;
    /* necessário pro topo (chips) */
}

/* Cabeçalho do card */
.hg-logo {
    display: flex;
    justify-content: center;
    margin: 8px 0 14px;
}

.hg-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 14px;
}

/* Link "Esqueci minha senha" */
.hg-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.hg-links a {
    font-size: 13px;
}

/* Rodapé interno do card */
.hg-foot {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-top: 14px;
    line-height: 1.35;
}

/* Copyright abaixo do card */
.hg-copyright {
    width: 100%;
    max-width: 440px;
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    opacity: .9;
}

/* Alternância desktop/mobile dos formulários (seu padrão) */
.only-desktop {
    display: block;
}

.only-mobile {
    display: none;
}

@media (max-width: 768px) {
    .only-desktop {
        display: none;
    }

    .only-mobile {
        display: block;
    }
}

/* =========================================================
   Ações do topo do card (chips)
   ========================================================= */

.hg-topactions {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hg-chip {
    font-size: 12px;
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .06);
    background: rgba(244, 246, 251, 0.90);
    line-height: 1;
    cursor: pointer;
    outline: none;
}

.hg-chip:hover {
    color: #2d2d2d;
    text-decoration: none;
    border-color: rgba(0, 0, 0, .10);
}

/* WhatsApp (elegante, sem gritar) */
.hg-chip-wpp {
    color: #1f7a4f;
    border-color: rgba(31, 122, 79, .18);
    background: rgba(37, 211, 102, 0.10);
}

.hg-chip-wpp:hover {
    color: #155c3a;
    border-color: rgba(31, 122, 79, .30);
    background: rgba(37, 211, 102, 0.14);
}

/* =========================================================
   Breakpoints
   ========================================================= */

/* Desktop: 2 colunas, invertidas (login esquerda, banner direita) */
@media (min-width: 992px) {
    .hg-wrap {
        flex-direction: row-reverse;
        /* banner na direita */
    }

    .hg-left {
        display: flex;
        width: 60%;
    }

    .hg-right {
        width: 40%;
        padding: 40px;
    }
}

/* Mobile: altura confiável */
@media (max-width: 991px) {
    .hg-right {
        min-height: 100vh;
        min-height: 100svh;
        /* melhor em mobile moderno */
    }
}

/* Mobile pequeno: chips quebram linha sem bagunçar */
@media (max-width: 420px) {
    .hg-topactions {
        left: 14px;
        right: 14px;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* =========================================================
   Botão principal do login (harmoniza com o card)
   ========================================================= */

.hg-login .hg-card #btn-acessar {
    border-radius: 10px;
    /* acompanha o card */
    padding: 12px 14px;
    font-weight: 600;
    letter-spacing: .2px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}

/* Visual “moderno”, mas mantendo a identidade (roxo) */
.hg-login .hg-card #btn-acessar.btn-padrao {
    background: linear-gradient(135deg, #5a12bb 0%, #7a2fd1 100%);
}

/* Hover: leve, sem gritar */
.hg-login .hg-card #btn-acessar:hover {
    filter: brightness(1.03);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
    transform: translateY(-1px);
}

/* Clique */
.hg-login .hg-card #btn-acessar:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
}

/* Acessibilidade (foco) */
.hg-login .hg-card #btn-acessar:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 18, 187, .18), 0 10px 22px rgba(0, 0, 0, .10);
}