* {
    margin: 0;
    padding: 0;
    font-family: montserrat;
}

/* HEADER */

header {
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 50px;
    background-color: #f5f5f5;
    align-items: center;
}

.logosgov {
    display: flex;
    align-items: end;
    gap: 40px;
}


/* LOGO + SERVIÃ‡OS */
.title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: calc(100vh - 50px - 20vh);
}

.logosigwhite {
    padding-left: 50px;
}

.logosigwhite img {
    width: 20vw;
    min-width: 350px;
    object-fit: contain;
    object-position: center;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-decoration: none;
}

.btitle {
    color: #1f6a3f;
    font-size: 16pt;
    font-weight: 600;
    text-align: end;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-right: 50px;
    background-color: #f5f5f5;
    border-radius: 50px 0px 0px 50px;
    display: flex;
    gap: 15px;
    justify-content: end;
}

.buttonsin1,
.buttonsin2,
.buttonsin3 {
    min-width: 310px;
    margin-right: 0;
}

.buttonsin1:hover {
    margin-left: -70px;
    width: 380px;
}

.buttonsin2:hover {
    margin-left: -70px;
    width: 380px;
}

.buttonsin3:hover {
    margin-left: -70px;
    width: 380px;
}

/* ACESSO AO SISTEMA */

.buttonarea {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    position: fixed;
}

.buttons2 {
    font-size: 1.2vw;
    font-weight: 600;
    background-color: RGB(245, 245, 245, 0.6);
    backdrop-filter: blur(10px);
    width: 100%;
    height: calc(20vh - 1px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 15px 15px 0 0;
    border-color: grey;
    border-style: solid;
    border-width: 1px 1px 0px 1px;
    color: #1f6a3f;
    gap: 10px;
    transition: transform 0.5s ease, height 0.5s ease;
}

.buttons2 i {
    font-size: 18pt;
}


.buttons2:hover {
    transform: translateY(-5vh);
    height: calc(25vh - 1px);
}

a {
    text-decoration: none;
}

@media screen and (max-width: 834px) {
    header {
        padding: 0 15px;
    }

    .logosigma img,
    .logosgov img {
        width: 80px;
    }

    .logosgov {
        gap: 15px;
    }

    #mainbody {
        height: calc(100vh - 50px);
        min-height: 850px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .title {
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding-top: 40px;
    }

    .btitle {
        padding: 10px 0;
        border-radius: 50px;
        justify-content: center;
    }

    .buttonsin1,
    .buttonsin2,
    .buttonsin3 {
        margin-left: 0;
        width: 310px;
    }

    .buttonarea {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 25px;
        width: 75%;
        padding: 0 0 30px 0;
        margin: 0 auto;
    }

    .buttons2 {
        border-radius: 20px;
        height: 150px;
        font-size: 12pt;
        flex-direction: column;
        text-align: center;
    }

    .buttons2:hover {
        transform: translateY(-0);
    }
}

@media screen and (max-width: 500px) {
    #mainbody {
        height: auto;
        gap: 50px;
    }

    .contbuttons,
    .buttons {
        width: 100%;
    }

    .container {
        position: relative;
        height: 100vh;
        width: 100%;
    }

    .logosigwhite {
        align-self: center;
    }

    .logosigwhite img {
        min-width: 300px;
    }

    .buttonsin1,
    .buttonsin2,
    .buttonsin3 {
        margin: 0 auto;
    }

    .buttonsin1 a,
    .buttonsin2 a,
    .buttonsin3 a {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btitle {
        font-size: 12pt;
        width: 85%;
        height: 25px;
        align-items: center;
    }

    .buttonarea {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 40px;
        width: 310px;
    }

    .buttons2 {
        height: 120px;
        width: 85%;
    }

    .buttons2:hover {
        transform: translateY(-0);
        height: 120px;
    }
}


/* Estilização padrão para o botão oficial do gov.br */
.br-sign-in {
    --button-radius: 100em;
    --button-xsmall: 24px;
    --button-small: 32px;
    --button-medium: 40px;
    --button-large: 48px;
    --button-size: var(--button-medium);
    align-items: center;
    background-color: transparent;
    border: 0;
    border-radius: var(--button-radius);
    color: var(--interactive);
    cursor: pointer;
    display: inline-flex;
    font-size: var(--font-size-scale-up-01);
    font-weight: var(--font-weight-semi-bold);
    height: var(--button-size);
    justify-content: center;
    overflow: hidden;
    padding: 0 var(--spacing-scale-3x);
    position: relative;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    width: 100%;
}

/* Efeito de hover no padrão do governo */
.br-sign-in:hover {
    background-color: #b8d5fa;
}

/* Ajuste de tamanho da logo oficial dentro do botão */
.br-sign-in img {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-left: 4px;
}