/* Fundo da página */
:root {
    --verde: #06CB3F
}
html{
    margin: 0;
    padding: 0 !important;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url('./img/bkg.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh; /* garante altura da viewport */
    overflow: auto; /* importante pro scroll do Swal não sumir */
}

/* Transparência sobre a imagem de fundo */

.logout-message {
    color: #27ae60;
    background: #ecf9f1;
    padding: 10px;
    border: 1px solid var(--verde);
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}


/* Container central fixo na viewport (não depende do body ter height fixo) */
.container {
    position: relative;
    z-index: 1;
    min-height: 70vh;
    max-height: 700px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5.5% auto;
    box-sizing: border-box;
}

/* Camada escura */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* antes tava "1200px" errado */
    background-color: rgba(0,0,0,0.6);
    z-index: 0;
}
/* Caixa do formulário */
.form-box {
    width: 350px;
    background-color: #163134a6;
    /* Transparência da caixa */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(6, 203, 62, 0.397);
    text-align: center;
    min-height: 75vh;
    max-height: 75vh;
    overflow-y: auto;
    /* Adiciona rolagem se necessário */
}

.login-h2 {
    color: var(--verde);
}

form div.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-left: 10px;
}

.login-form {
    margin-top: 30%;
    padding-top: 15px;
    overflow: hidden;
}

form div.radio-group label {
    margin-left: 5px;
    color: #e1efe9;
    font-weight: bold;
}


/* Estilo das abas */
.tab {
    overflow: hidden;
}

.tab button {
    background-color: #163134;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    width: 50%;
    border-radius: 0;
}

.tab button:hover {
    background-color: #163134;
}

.tab button.active {
    background-color: var(--verde);
}

.tabcontent {
    display: none;
    padding: 20px 0;
}

/* Estilo dos formulários */
input[type="text"],
input[type="password"],
input[type="email"] {
    text-align: center;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    display: inline-block;
    border: 1px solid #e1efe9;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    background-color: var(--verde);
    color: white;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}


/* Para telas menores */
@media (max-width: 600px) {
    .form-box {
        width: 90%;
    }
}

.success-message {
    position: fixed;
    bottom: 40px;
    left: 50%;
    /* Centraliza horizontalmente em relação à largura da página */
    transform: translateX(-50%);
    /* Move o elemento para a esquerda pela metade da sua largura */
    padding: 15px;
    background-color: var(--verde);
    /* Vermelho para erros */
    color: white;
    border-radius: 5px;
    z-index: 1000;
    /* Garante que o alerta fique acima de outros elementos */
    width: 300px;
    /* Largura fixa */
    text-align: center;
    /* Centraliza o texto dentro do box */
}

/* Mensagem de erro */
.error-message {
    position: fixed;
    bottom: 40px;
    left: 50%;
    /* Centraliza horizontalmente em relação à largura da página */
    transform: translateX(-50%);
    /* Move o elemento para a esquerda pela metade da sua largura */
    padding: 15px;
    background-color: #9a1515;
    /* Vermelho para erros */
    color: white;
    border-radius: 5px;
    z-index: 1000;
    /* Garante que o alerta fique acima de outros elementos */
    width: 300px;
    /* Largura fixa */
    text-align: center;
    /* Centraliza o texto dentro do box */
}


@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.blink {
    animation: blink 0.5s ease-in-out 0s 3;
    /* Pisca 3 vezes */
}

/* Estilos para a barra de rolagem */
::-webkit-scrollbar {
    width: 8px;
    /* Largura da barra de rolagem */
}

/* Fundo da barra de rolagem */
::-webkit-scrollbar-track {
    background-color: #E1EFE9;
    /* Verde claro */
    border-radius: 10px;
    /* Bordas arredondadas */
}

/* Cor do thumb (a parte que desliza) */
::-webkit-scrollbar-thumb {
    background-color: #163134;
    /* Verde escuro */
    border-radius: 10px;
    /* Bordas arredondadas */
    /* Bordas com espaço */
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    /* centraliza ícone + texto */
    gap: 8px;
    padding: 14px 18px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #06CB3F;
    /* verde Intelbras */
    color: white;
    transition: background 0.2s;
    text-align: center;
}

.btn-login:hover,
.button-env:hover {
    background-color: #05b838;
}

.btn-login i {
    font-size: 18px;
}

.modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: left;
}

.modal-content {
    animation: fadeIn 0.3s ease;
    color: #06CB3F;
    list-style: none;
}

.modal-content ul {
    list-style: none;
}

.modal-content p,
.modal-content li {
    font-size: 14px;
    color: #163134;
    text-indent: 15px;
}

.modal-content h2 {
    font-size: 16px;
}

h1 {
    font-size: 20px;
    text-align: center;
    color: #163134;
}

footer {
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkbox-group {
    color: white;
    margin-left: 10px;
    text-align: left;
}

.checkbox-group a {
    text-decoration: none;
    color: #06CB3F;
}

.checkbox-group a:hover {
    text-decoration: underline
}

/* remove esses hacks do swal2 */
html.swal2-shown,
body.swal2-shown,
html.swal2-height-auto,
body.swal2-height-auto {
    height: auto !important;
    overflow: auto !important;
    position: relative !important;
    width: auto !important;
    padding-right: 0 !important;
    margin: 0 !important;
}
