html {
    height: 100%;
    font-family: 'Roboto', sans-serif; /* Definindo a fonte padrão */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Definindo a fonte padrão */
    background: linear-gradient(to bottom, white, #045cfc) no-repeat center center;
    height: 100vh; /* Garante que o body ocupe 100% da altura da tela */
    display: flex; /* Utiliza flexbox para centralização */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
}

.logo-container-marca {
    text-align: center;
    width: 100%;
    position: relative;
    margin-bottom: 3%; /* Ajuste a margem inferior conforme necessário */
}

.logo-marca img {
    width: 100px;
    max-width: 100%;
    height: auto;
}

.login-box {
    position: relative;
    transform: scale(0.75); /* Reduz o tamanho em 25% */
    max-width: 470px; /* Largura da menor modal do Bootstrap */
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    background: whitesmoke;
    margin: auto; /* Garante que a .login-box esteja centralizada horizontalmente */
}

.login-box h2 {
    margin: 0 0 30px;
    color: #25D366;
    text-align: center;
}

.login-box .user-box {
    position: relative;
}

.login-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: black;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid black;
    outline: none;
    background: transparent;
    border-radius: 5px;
}

.user-box input::placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.login-box .user-box input:focus,
.login-box .user-box input:valid {
    background: #fff;
    border-bottom: 1px solid black;
    color: black;
}

.login-box .user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: black;
    pointer-events: none;
    transition: 0.5s;
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label {
    top: -25px;
    color: white;
    font-size: 10px;
}

/* Estilos para o botão "Entrar" */
.login-box form a,
.login-button {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background: #85c14a;
    border-radius: 5px;
    font-size: inherit;
    text-align: center;
    text-decoration: none;
    transition: 0.5s;
    margin-top: 2px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

small {
    font-family: inherit, "Times New Roman", serif;
    font-size: 14px;
}

.login-box a:hover,
.login-button:hover {
    background: #81adfe;
    color: #fff;
    border-radius: 5px;
}

.recover-password {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #007bff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.recover-password:hover {
    color: #0056b3;
}

.login-container {
    text-align: center;
    margin-top: 20px;
}

#whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

#whatsapp-button:hover {
    transform: scale(1.5);
}

#whatsapp-button img {
    width: 80px;
    height: auto;
}

.modal {
    text-align: center;
}

.modal-body {
    width: 100%;
    padding: 20px;
}

.modal-header {
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    background-color: #045cfc;
    font-size: 12px;
    margin-bottom: 10px;
    color: white;
    transition: background 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: #81adfe;
    color: white;
}

#exampleModal {
    position: fixed;
    margin-top: 5%;
}

/* Carrossel */
.carousel-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 10px;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 300px;
}

.carousel-item {
    display: none;
    height: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
}

/* Responsividade *******************************************************************************/

@media (max-width: 800px) {
    .login-box {
        transform: scale(0.75); /* Reduz o tamanho em 25% */
    max-width: 400px; /* Largura da menor modal do Bootstrap */
        padding: 20px; /* Reduz o padding */
        margin: 0px; /* Centraliza novamente */
        margin-bottom: 70px;
         margin: auto; /* Garante que a .login-box esteja centralizada horizontalmente */
    }

    .logo img {
        width: 50%; /* Ajusta proporcionalmente a logo */
        height: auto;
        zoom: 80%;
    }

    #whatsapp-button img {
        width: 60px;
    }

    #exampleModal {
        margin-top: 15%;
        margin-left: -2%;
    }

    .carousel-wrapper {
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
        gap: 10px;
    }

    .carousel-container {
        flex: 1;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        max-width: 100%;
    }

    .carousel-inner {
        position: relative;
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 500px) {
    .login-box {
         transform: scale(0.75); /* Reduz o tamanho em 25% */
        max-width: 350px; /* Largura da menor modal do Bootstrap */
        aspect-ratio: 0.8; /* Mais retangular em telas muito pequenas */
         margin: auto; /* Garante que a .login-box esteja centralizada horizontalmente */
    }

    .logo img {
        width: 70%; /* Ajusta proporcionalmente a logo */
        height: auto;
    }

    .modal-content {
        width: 90%;
    }

    #exampleModal {
        margin-top: 20%;
        margin-left: auto;
        margin-right: auto; /* Centraliza o modal */
    }

    .carousel-wrapper {
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
        gap: 10px;
    }

    .carousel-container {
        flex: 1;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        max-width: 100%;
    }

    .carousel-inner {
        position: relative;
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 400px) {
    .login-box {
       transform: scale(0.75); /* Reduz o tamanho em 25% */
        max-width: 300px; /* Largura da menor modal do Bootstrap */
        aspect-ratio: 0.8; /* Mais retangular em telas muito pequenas */
         margin: auto; /* Garante que a .login-box esteja centralizada horizontalmente */
    }

    .logo img {
        width: 70%; /* Ajusta proporcionalmente a logo */
        height: auto;
    }

    .modal-content {
        width: 90%;
    }

    #exampleModal {
        margin-top: 20%;
        margin-left: auto;
        margin-right: auto; /* Centraliza o modal */
    }

    .carousel-wrapper {
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
        gap: 10px;
    }

    .carousel-container {
        flex: 1;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        max-width: 100%;
    }

    .carousel-inner {
        position: relative;
        width: 100%;
        height: 150px;
    }

    #whatsapp-button img {
        width: 40px;
    }
}



/* Modal de erro - Centralização completa */
/* Centralizando a modal na tela */
#errorModal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

/* Estilizando o conteúdo da modal */
#errorModal .modal-content {
    border-radius: 10px !important;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6) !important;
    background-color: white !important;
}

/* Título centralizado */
#errorModal .modal-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

#errorModal .modal-title {
    margin: 0 !important;
    font-size: 18px !important;
}

/* Corpo da modal */
#errorModal .modal-body {
    padding: 20px !important;
    text-align: center !important;
}

/* Rodapé */
#errorModal .modal-footer {
    display: flex !important;
    justify-content: center !important;
}

/* Botão */
#errorModal .btn-secondary {
    background-color: #85c14a !important;
    color: white !important;
    font-size: 14px;
}

/* Ajustes para telas pequenas */
@media (max-width: 700px) {
    #errorModal .modal-dialog {
        transform: scale(0.85); /* Reduz o tamanho da modal em 15% */
        max-width: 100%; /* Largura maior para telas pequenas */
        margin: 0 auto; /* Centraliza a modal horizontalmente */
    }

    #errorModal .modal-header,
    #errorModal .modal-footer {
        padding: 10px; /* Reduz o padding do cabeçalho e rodapé para economizar espaço */
    }

    #errorModal .modal-title {
        font-size: 16px; /* Ajusta o tamanho da fonte do título */
    }

    #errorModal .modal-body {
        font-size: 14px; /* Ajusta o tamanho da fonte do conteúdo */
        padding: 15px; /* Reduz o padding */
    }

    #errorModal .btn-secondary {
        font-size: 14px; /* Ajusta o tamanho da fonte do botão */
        padding: 10px 20px; /* Ajusta o padding do botão */
    }
}

@media (max-width: 500px) {
    #errorModal .modal-dialog {
        transform: scale(0.8); /* Reduz o tamanho da modal em 20% */
        max-width: 100%; /* Largura maior para telas muito pequenas */
        margin: 0 auto; /* Centraliza a modal horizontalmente */
    }

    #errorModal .modal-header,
    #errorModal .modal-footer {
        padding: 8px; /* Reduz o padding do cabeçalho e rodapé */
    }

    #errorModal .modal-title {
        font-size: 14px; /* Ajusta o tamanho da fonte do título */
    }

    #errorModal .modal-body {
        font-size: 12px; /* Ajusta o tamanho da fonte do conteúdo */
        padding: 10px; /* Ajusta o padding do conteúdo */
    }

    #errorModal .btn-secondary {
        font-size: 12px; /* Ajusta o tamanho da fonte do botão */
        padding: 8px 15px; /* Ajusta o padding do botão */
    }
}

