/* Visual da tela antiga de entrar / criar senha. Nao altera o envio. */

#conteudo_meio .aviso,
#conteudo_meio .aviso2 {
    float: none !important;
    width: auto !important;
    display: block;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 16px 16px;
    line-height: 1.45;
    font-size: 15px;
}
#conteudo_meio .aviso { background: #eef8ef; color: #146c2e; }
#conteudo_meio .aviso2 { background: #fff1f0; color: #9f1d1d; }

body:has(#form_login) #show_password,
body:has(.acesso-legado) #show_password {
    position: absolute !important;
    top: 2px !important;
    right: 4px !important;
    bottom: auto !important;
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 18px !important;
    line-height: 44px !important;
    background: transparent !important;
    border: 0 !important;
    z-index: 2;
}
body:has(#form_login) .form_direita2,
body:has(.acesso-legado) .form_direita2 {
    position: relative !important;
}
body:has(#form_login) #senha,
body:has(.acesso-legado) #senha {
    padding-right: 48px !important;
}
body:has(#form_login) #lembrar_senha,
body:has(.acesso-legado) #lembrar_senha {
    position: static !important;
    float: none !important;
    clear: both !important;
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    margin: 10px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
}
body:has(#form_login) #conteudo_meio label,
body:has(.acesso-legado) #conteudo_meio label {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
}
body:has(.acesso-legado) input[value="entrar"],
body[style*="background:none"] input[value="enviar"] {
    text-transform: capitalize !important;
}
body:has(#form_login) #conteudo_meio .g-recaptcha,
body:has(.acesso-legado) #conteudo_meio .g-recaptcha {
    clear: both !important;
    float: none !important;
    margin-left: 0 !important;
}
body:has(#form_login) img[src*="loading"],
body:has(.acesso-legado) img[src*="loading"] {
    max-height: 28px !important;
    width: auto !important;
    height: auto !important;
}

@media (max-width: 800px) {
    body:has(#form_login),
    body:has(.acesso-legado) {
        overflow-x: hidden;
    }
    body:has(#form_login) #centro,
    body:has(.acesso-legado) #centro,
    body:has(#form_login) #topo,
    body:has(.acesso-legado) #topo,
    body:has(#form_login) #topo_direita,
    body:has(.acesso-legado) #topo_direita,
    body:has(#form_login) #login_topo,
    body:has(.acesso-legado) #login_topo,
    body:has(#form_login) #conteudo,
    body:has(.acesso-legado) #conteudo,
    body:has(#form_login) #meio,
    body:has(.acesso-legado) #meio,
    body:has(#form_login) #esconde,
    body:has(.acesso-legado) #esconde,
    body:has(#form_login) #conteudo_meio,
    body:has(.acesso-legado) #conteudo_meio,
    body:has(#form_login) #rodape,
    body:has(.acesso-legado) #rodape,
    body:has(#form_login) address,
    body:has(.acesso-legado) address,
    body:has(#form_login) #rodape p,
    body:has(.acesso-legado) #rodape p {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    body:has(#form_login) #conteudo_meio,
    body:has(.acesso-legado) #conteudo_meio {
        padding: 8px 16px 28px !important;
    }
    body:has(#form_login) #conteudo_meio fieldset,
    body:has(.acesso-legado) #conteudo_meio fieldset {
        width: auto !important;
        margin: 0 0 16px !important;
        padding: 16px 14px 18px !important;
        border: 1px solid #eadfe4 !important;
        border-radius: 16px !important;
        background: #fff !important;
    }
    body:has(#form_login) #conteudo_meio legend,
    body:has(.acesso-legado) #conteudo_meio legend {
        float: none !important;
        display: block !important;
        width: auto !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        padding: 0 0 8px !important;
        margin: 0 !important;
    }
    body:has(#form_login) #conteudo_meio .form_esquerda,
    body:has(.acesso-legado) #conteudo_meio .form_esquerda,
    body:has(#form_login) #conteudo_meio .form_direita2,
    body:has(.acesso-legado) #conteudo_meio .form_direita2 {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
        height: auto !important;
    }
    body:has(#form_login) #conteudo_meio .form_esquerda,
    body:has(.acesso-legado) #conteudo_meio .form_esquerda {
        margin-top: 12px !important;
    }
    body:has(#form_login) #conteudo_meio input.formulario,
    body:has(.acesso-legado) #conteudo_meio input.formulario,
    body:has(#form_login) #conteudo_meio input[type="text"],
    body:has(.acesso-legado) #conteudo_meio input[type="text"],
    body:has(#form_login) #conteudo_meio input[type="password"],
    body:has(.acesso-legado) #conteudo_meio input[type="password"] {
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        border: 1.5px solid #d9c8d0 !important;
        border-radius: 12px !important;
        padding: 0 12px !important;
    }
    body:has(#form_login) #conteudo_meio input.botao,
    body:has(.acesso-legado) #conteudo_meio input.botao,
    body:has(#form_login) #conteudo_meio input[type="submit"],
    body:has(.acesso-legado) #conteudo_meio input[type="submit"] {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        height: 48px !important;
        margin: 16px 0 0 !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #600038 !important;
        color: #fff !important;
        font-weight: 700 !important;
        font-size: 16px !important;
    }
    body:has(#form_login) #conteudo_meio .g-recaptcha,
    body:has(.acesso-legado) #conteudo_meio .g-recaptcha {
        float: none !important;
        margin: 16px 0 0 !important;
        transform: scale(.92);
        transform-origin: left top;
    }
    body:has(#form_login) #conteudo_meio #lembrar_senha,
    body:has(.acesso-legado) #conteudo_meio #lembrar_senha {
        display: inline-flex;
        align-items: center;
        margin-top: 10px;
        min-height: 44px;
    }
    body:has(#form_login) #topo img,
    body:has(.acesso-legado) #topo img {
        max-width: 70%;
        height: auto;
    }
}

body[style*="background:none"] {
    margin: 0;
    background: #fff !important;
    color: #2a0018;
    font-family: "Segoe UI", system-ui, sans-serif;
    overflow-x: hidden;
}
body[style*="background:none"] > div {
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box;
    max-width: 100%;
}
body[style*="background:none"] form,
body[style*="background:none"] fieldset,
body[style*="background:none"] .lista_form2,
body[style*="background:none"] .form_esquerda,
body[style*="background:none"] .lista_form2 > div,
body[style*="background:none"] .centraliza {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}
body[style*="background:none"] fieldset {
    border: 1px solid #eadfe4;
    border-radius: 16px;
    padding: 14px;
    margin: 8px 0 0 !important;
}
body[style*="background:none"] legend {
    white-space: normal;
    line-height: 1.4;
    padding: 0 6px;
}
body[style*="background:none"] label {
    display: block !important;
    float: none !important;
    width: auto !important;
    text-align: left !important;
    margin: 4px 0 6px !important;
}
body[style*="background:none"] p.centraliza {
    text-align: center !important;
    line-height: 1.45;
    margin: 0 0 12px !important;
}
body[style*="background:none"] input[type="text"],
body[style*="background:none"] input[type="password"],
body[style*="background:none"] input.formulario {
    width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    border: 1.5px solid #d9c8d0 !important;
    border-radius: 12px !important;
    padding: 0 12px !important;
}
body[style*="background:none"] input[type="submit"],
body[style*="background:none"] input.botao {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: 48px !important;
    margin: 14px 0 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #600038 !important;
    color: #fff !important;
    font-weight: 700 !important;
}
body[style*="background:none"] .aviso,
body[style*="background:none"] .aviso2 {
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 12px;
    line-height: 1.45;
}
body[style*="background:none"] .aviso2 { background: #fff1f0; color: #9f1d1d; }

@media (min-width: 801px) {
    body:has(#form_login) #conteudo_meio,
    body:has(.acesso-legado) #conteudo_meio {
        width: 480px !important;
        max-width: 480px !important;
        margin: 24px auto 40px !important;
        float: none !important;
        padding: 8px 4px 24px !important;
        box-sizing: border-box !important;
    }
    body:has(#form_login) #conteudo_meio fieldset,
    body:has(.acesso-legado) #conteudo_meio fieldset {
        width: auto !important;
        margin: 0 0 16px !important;
        padding: 16px 16px 18px !important;
        border: 1px solid #eadfe4 !important;
        border-radius: 16px !important;
        background: #fff !important;
    }
    body:has(#form_login) #conteudo_meio legend,
    body:has(.acesso-legado) #conteudo_meio legend {
        float: none !important;
        display: block !important;
        width: auto !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }
    body:has(#form_login) #conteudo_meio .form_esquerda,
    body:has(.acesso-legado) #conteudo_meio .form_esquerda,
    body:has(#form_login) #conteudo_meio .form_direita2,
    body:has(.acesso-legado) #conteudo_meio .form_direita2 {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
        height: auto !important;
        overflow: visible !important;
    }
    body:has(#form_login) #conteudo_meio input.formulario,
    body:has(.acesso-legado) #conteudo_meio input.formulario,
    body:has(#form_login) #conteudo_meio input[type="password"],
    body:has(.acesso-legado) #conteudo_meio input[type="password"],
    body:has(#form_login) #conteudo_meio input[type="text"],
    body:has(.acesso-legado) #conteudo_meio input[type="text"] {
        width: 100% !important;
        height: 48px !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        border: 1.5px solid #d9c8d0 !important;
        border-radius: 12px !important;
        padding: 0 12px !important;
    }
    body:has(#form_login) #conteudo_meio input[type="submit"],
    body:has(.acesso-legado) #conteudo_meio input[type="submit"] {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: 48px !important;
        margin: 16px 0 0 !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #600038 !important;
        color: #fff !important;
        font-weight: 700 !important;
    }
    body:has(#form_login) #conteudo_meio .g-recaptcha {
        float: none !important;
        margin: 16px 0 0 !important;
    }
}

/* So nas paginas marcadas. Boletos tambem usa id form_criar_senha. */
body:has(.acesso-ja),
body:has(.acesso-token) {
    background: #f6f1f4 !important;
}
body:has(.acesso-ja) #form_login {
    display: none !important;
}
body:has(.acesso-ja) #conteudo_meio,
body:has(.acesso-token) #conteudo_meio {
    width: min(440px, calc(100% - 32px)) !important;
    max-width: 440px !important;
    margin: 12px auto 36px !important;
    float: none !important;
    padding: 22px 18px 24px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 24px !important;
    box-shadow: 0 16px 40px rgba(42, 0, 24, .08) !important;
}
body:has(.acesso-ja) #conteudo_meio legend,
body:has(.acesso-ja) #conteudo_meio legend span,
body:has(.acesso-token) #conteudo_meio legend,
body:has(.acesso-token) #conteudo_meio legend span {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    line-height: 1.4 !important;
    text-align: center !important;
}
body:has(.acesso-ja) #conteudo_meio .form_direita2,
body:has(.acesso-ja) #conteudo_meio .form_esquerda,
body:has(.acesso-token) #conteudo_meio .form_direita2,
body:has(.acesso-token) #conteudo_meio .form_esquerda {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
}
body:has(.acesso-ja) #conteudo_meio input[type="text"],
body:has(.acesso-token) #conteudo_meio input[type="text"],
body:has(.acesso-token) #conteudo_meio input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
body:has(.acesso-ja) #form_criar_senha input[type="submit"],
body:has(.acesso-token) #form_criar_senha input[type="submit"] {
    text-transform: capitalize !important;
    margin-left: 0 !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}
body:has(.acesso-ja) #rodape,
body:has(.acesso-ja) #rodape address,
body:has(.acesso-ja) #rodape p,
body:has(.acesso-token) #rodape,
body:has(.acesso-token) #rodape address,
body:has(.acesso-token) #rodape p {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    width: auto !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    height: auto !important;
    text-align: center !important;
}
.acesso-token { display: none; }
.acesso-ja {
    max-width: 440px;
    margin: 16px auto 0;
    padding: 0 16px;
    text-align: center;
}
.acesso-ja a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #600038;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

/* Recuperacao por e-mail que ainda usa token. */
body[style*="background:none"] {
    background: #f6f1f4 !important;
}
body[style*="background:none"]::before {
    content: "";
    display: block;
    width: 148px;
    height: 42px;
    margin: 28px auto 0;
    background: url("https://cliente.argo.com.vc/home/assets/images/logo_argo.png?v=2") center/contain no-repeat;
}
body[style*="background:none"] > div[style*="margin:10px"] {
    width: min(440px, calc(100% - 32px)) !important;
    max-width: 440px !important;
    margin: 16px auto 40px !important;
    padding: 22px 18px 24px !important;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(42, 0, 24, .08);
    box-sizing: border-box !important;
}
body[style*="background:none"] > div > p.fonte12 {
    display: none !important;
}
body[style*="background:none"] input[type="submit"] {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    float: none !important;
}
body[style*="background:none"] p.vermelho,
body[style*="background:none"] legend,
body[style*="background:none"] legend span {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
}
body[style*="background:none"] .lista_form2,
body[style*="background:none"] .lista_form2 > div {
    width: 100% !important;
    max-width: 100% !important;
}
body[style*="background:none"] input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
}

/* Cadastro: um cartao so, o atalho fica embaixo do formulario. */
body:has(.acesso-ja) {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
    background: #f3eef1 !important;
}
body:has(.acesso-ja) #centro { display: contents; }
body:has(.acesso-ja) #topo { order: 1; margin-top: 8px !important; margin-bottom: 0 !important; background: transparent !important; }
body:has(.acesso-ja) #conteudo { order: 2; }
body:has(.acesso-ja) .acesso-ja { order: 3; }
body:has(.acesso-ja) #rodape { order: 4; }
body:has(.acesso-ja) #meio,
body:has(.acesso-ja) #conteudo {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: transparent !important;
}
body:has(.acesso-ja) #conteudo_meio {
    margin-top: 8px !important;
    border: 0 !important;
}
body:has(.acesso-ja) #conteudo_meio fieldset {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body:has(.acesso-ja) #conteudo_meio legend,
body:has(.acesso-ja) #conteudo_meio legend span {
    color: #2a0018 !important;
    text-align: left !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
body:has(.acesso-ja) #conteudo_meio legend span {
    display: block !important;
    margin-top: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #5c4a55 !important;
}
body:has(.acesso-ja) #form_criar_senha input[type="submit"] {
    text-transform: none !important;
    font-size: 16px !important;
    letter-spacing: 0 !important;
}
body:has(.acesso-ja) .acesso-ja {
    max-width: 440px;
    margin: 4px auto 28px;
    padding: 0 16px;
    text-align: center;
}
body:has(.acesso-ja) .acesso-ja a {
    background: transparent;
    color: #600038 !important;
    font-weight: 700;
    min-height: 40px;
    padding: 0;
    border-radius: 0;
}
body:has(.acesso-ja) #rodape,
body:has(.acesso-ja) #rodape address,
body:has(.acesso-ja) #rodape p {
    max-width: 520px !important;
    line-height: 1.6 !important;
    padding-bottom: 28px !important;
    color: #6d5a64 !important;
}

body:has(#form_login) #conteudo_meio #form_criar_senha fieldset {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
