* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow-x: hidden;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 12px;
    background-image: url(../imagens/wallpaper.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    margin: 0;
    padding: 24px 16px;
}

div#login {
    position: relative;
    left: auto;
    top: auto;
    width: min(600px, 100%);
    height: auto;
    margin: 0;
    background-color: transparent;
    z-index: 20;
}

div#publicidade_login_imagem {
    position: absolute;
    display: none;
    z-index: 1;
    pointer-events: auto;
    max-width: calc(100vw - 32px);
    max-height: 42vh;
}

#login #logo {
    position: relative;
    height: auto;
    margin: 10px 0 24px;
    text-align: center;
}

#login #logo img {
    display: block;
    width: 550px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

#login #logo_believe {
    position: relative;
    height: 1px;
    margin: -180px 0 180px 460px;
    z-index: 11;
}

#login #form {
    position: relative;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 30px;
    height: auto;
    background-color: transparent;
    border-radius: 12px;
    z-index: 10;
}

#form #form_empresa,
#form #form_user {
    position: static;
    width: auto;
    height: auto;
    margin: 20px 0 0;
}

#form #form_seta {
    position: absolute;
    height: 1px;
    width: 1px;
    margin-top: 20px;
    margin-left: 630px;
    z-index: 11;
}

div#login_fundo {
    position: absolute;
    left: 100%;
    top: 100%;
    width: 600px;
    height: 40px;
    margin: -135px -600px;
    background-color: transparent;
    font-family: "Myriad Hebrew", "Segoe UI", Helvetica, sans-serif;
    color: #fff;
    font-size: 18px;
}

#form p {
    font-size: 1.2em;
    line-height: 1.4em;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    width: 180px;
    height: 41px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

#form_empresa > div,
#form_user > div {
    margin: 10px 0 !important;
}

#form_empresa select,
#form_empresa input[type="text"] {
    display: block;
    width: 100% !important;
    max-width: 200px;
}

#form_empresa input[type="image"] {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

#form_user .input_container,
#form_user #input_container {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding: 0;
    margin: 0;
}

#form_user input[type="text"],
#form_user input[type="password"] {
    display: block;
    width: 100% !important;
    max-width: 320px;
    padding-left: 38px !important;
}

#form_user input[type="password"] {
    padding-right: 38px !important;
}

#form_user .input_img,
#form_user #input_img {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

#togglePasswordIcon {
    position: absolute !important;
    top: 12px !important;
    right: 10px !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer;
    opacity: 0.7;
    z-index: 1;
}

#togglePasswordIcon:hover {
    opacity: 1;
}

#bds_pessoais_form {
    margin: 5px 0 !important;
    padding: 10px 0 !important;
    text-align: left;
}

#bds_pessoais_form form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#bds_pessoais_form input[type="text"] {
    width: 120px !important;
    height: 36px;
}

#bds_pessoais_form button {
    min-height: 36px;
}

.login-password-link {
    display: block;
    margin: 8px 0 0;
    color: white;
    font-size: 15px;
    text-align: center;
}

#bds_pessoais {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 30;
    width: min(280px, calc(100vw - 30px));
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-align: left;
    max-height: calc(100vh - 30px);
    overflow: auto;
}

@media (min-width: 901px) {
    div#publicidade_login_imagem {
        display: block;
    }
}

#bds_pessoais .bds_lista {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 80px);
    overflow: auto;
}

#bds_pessoais .bds_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #ddd;
    width: 100%;
    min-width: 0;
}

#bds_pessoais .bds_item > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    body {
        justify-content: flex-start;
        padding-top: 20px;
        padding-bottom: calc(28vh + 30px);
    }

    div#login {
        width: min(440px, 100%);
    }

    #login #logo {
        margin: 0 0 18px;
    }

    #login #form {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #form #form_empresa,
    #form #form_user {
        margin-top: 0;
    }

    #form #form_user {
        margin-top: 8px;
    }

    #form_empresa select,
    #form_empresa input[type="text"],
    #form_empresa input[type="image"] {
        max-width: 100%;
    }

    #form_user input[type="text"],
    #form_user input[type="password"] {
        max-width: none;
    }

    #form_user .input_container,
    #form_user #input_container {
        max-width: none;
    }

    #bds_pessoais_form {
        margin-top: 10px !important;
    }

    #bds_pessoais_form input[type="text"] {
        flex: 1 1 110px;
        min-width: 0;
    }

    #bds_pessoais_form button {
        flex: 0 0 auto;
    }

    #bds_pessoais {
        position: relative;
        top: auto;
        left: auto;
        width: min(440px, 100%);
        max-height: none;
    }

    #bds_pessoais .bds_lista {
        max-height: none;
    }

    div#publicidade_login_imagem {
        position: fixed;
        left: 50% !important;
        top: auto !important;
        bottom: 10px;
        width: min(90vw, 440px) !important;
        height: auto !important;
        max-width: 90vw;
        max-height: 28vh;
        transform: translateX(-50%);
        z-index: 25;
    }

    div#publicidade_login_imagem img {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-height: 28vh;
    }
}

@media (max-width: 600px) {
    div#publicidade_login_imagem {
        display: none;
    }
}

@media (max-width: 360px) {
    body {
        padding-right: 10px;
        padding-left: 10px;
    }

    #bds_pessoais_form form {
        gap: 6px;
    }

    #bds_pessoais_form input[type="text"] {
        flex-basis: 90px;
    }
}
