:root {
    /* Paleta de cores do projeto */
    --azul-principal: rgba(13, 75, 196, 1);
    --azul-escuro: rgba(8, 15, 41, 1);
    --laranja-1: rgba(252, 67, 31, 1);
    --laranja-claro: rgba(248, 98, 50, 1);
    --verde: rgba(160, 223, 65, 1);
    --branco: rgba(235, 249, 252, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "PT Sans Caption", "Inter", 'Segoe UI', sans-serif;
    background-color: var(--azul-principal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    text-align: justify;
}

.esconder {
    display: none !important;
}

    @media (max-width: 1000px) { /* Ocultar elementos na versão mobile */
        .ocultar-mobile {
            display: none !important;
        }
    }

.login-container {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    padding: 16px 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--branco);
    flex: 1;
    max-width: 440px;
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease, background-color 0.3s ease;
}

/* Variações de cada card (apenas a borda superior) */
.side-candidatos {
    border-top: 8px solid var(--verde);
    box-shadow: 0 0 24px rgba(8, 15, 41, 0.50);
}

.side-empresas {
    border-top: 8px solid var(--laranja-1);
    box-shadow: 0 0 24px rgba(8, 15, 41, 0.50);
}

/* Títulos e textos dentro dos cards */
.title-group {
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
}

.side h2 {
    font-size: 2.5rem;
    color: var(--azul-escuro);
    margin-bottom: 0.5rem;
}

.side p {
    color: var(--azul-escuro);
    font-size: 1.25rem;
    line-height: 1.5;
    text-align: center;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 360px;
}

.btn {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 1.75rem;
    font-weight: bold !important;
    text-align: center;
    text-decoration: none;          
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--azul-escuro);      
    background-color: var(--azul-principal);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(8, 15, 41, 0.15);
}

.btn,
.btn:link,
.btn:visited {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;      /* ou 700 */
    font-family: "PT Sans Caption", "Inter", 'Segoe UI', sans-serif;
}

.btn:hover {
    background-color: #256d46;
}

.btn:hover {
    background-color: var(--azul-escuro);
    transform: translateY(-2px);
}

/* Botão verde (candidatos) */
.btn-verde {
    background-color: rgba(160, 223, 65, 0.75);
}

.btn-verde:hover {
    background-color: rgba(160, 223, 65, 0.25);
    transform: translateY(-2px);
}

/* Botão laranja (empresas) */
.btn-laranja {
    background-color: rgba(252, 67, 31, 0.75);
}

.btn-laranja:hover {
    background-color: rgba(252, 67, 31, 0.25);
    transform: translateY(-2px);
}

#aviso-unico {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.aviso-fundo {
    position: relative;
    background: var(--branco);
    color: #333333;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 75%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 12px 32px rgba(8, 15, 41, 0.25);
    animation: descerPopup 0.4s ease-out forwards;
}

.aviso-fundo h1 {
    text-align: left;
}

.bloco-descricoes {
    text-align: left;
    border-top: 1px solid #eee;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.bloco-descricoes h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #222;
}

.bloco-descricoes p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

#btnFecharAviso {
    position: absolute;
    top: 32px;
    right: 32px;
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    color: gray;
    transition: color 0.2s;
}

#btnFecharAviso:hover {
    color: var(--azul-escuro);
}

.alerta {
    color: var(--branco);
    background-color: var(--laranja-1);
    font-weight: bold;
    padding: 2px;
}

.link-destaque {
    color: var(--laranja-claro);
    font-weight: bold;
    text-decoration: underline;
}
/* Header */
header {
    background-color: var(--azul-escuro);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgbargba(8, 15, 41, 0.4);
    flex-shrink: 0;
    }
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--branco);
    font-size: 1.25rem;
    font-weight: bolder;
    }
.header-logo .logo-icon {
    font-size: 1.25rem;
    }
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    }
.empresa-nome {
    color: var(--branco);
    font-weight: bold;
    margin-right: 16px;
    }
.btn-sair {
    background-color: var(--laranja-1);
    color: var(--branco);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    }
.btn-sair:hover {
    background-color: var(--laranja-claro);
    transform: translatey(-1px);
    }

/* Footer */
.main-footer {
    background-color: var(--azul-principal);
    color: var(--branco);
    padding: 2rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-footer p {
    font-size: 0.85rem;
    color: var(--branco);
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--branco);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--branco);
}

@keyframes descerPopup {
    from {
        transform: translateY(-100vh);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Login Empresa */
.login-form {
    display: none;          /* esconde completamente */
    flex-direction: column; /* ou o layout que desejar quando visível */
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--branco);
    border-radius: 20px;
    box-shadow: 0 0 24px rgba(8, 15, 41,0.5);
}

.login-form.active {
    display: flex;          /* mostra quando a classe 'active' é adicionada */
}

/* Para o container do formulário dentro do card */
#empresaLoginForm {
    width: 100%;
    margin-top: 1rem;
}

/* Estilização do formulário em si */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#loginForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#loginForm .form-group label {
    color: var(--azul-escuro) !important;  /* ou a cor que desejar */
   font-size: 1.4rem; 
   font-weight: bold;
}

#loginForm .form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.4rem;
    padding: 16px;
}

#loginForm .btn {
    font-size: 1.75rem;
    padding: 8px;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    .side {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .aviso-fundo {
        padding: 30px 20px;
        width: 95%;
        max-width: 95%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .main-footer p {
        text-align: center;
    }
}

/* Logar_Trabalhador */

/* CPF CONTAINER */
.cpf-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    
    background-color: var(--branco);
    width: 100%;                 
    max-width: 440px;        /* Largura máxima  */
    padding: 32px 32px;      
    border-radius: 20px;
    margin: 1rem auto;
    
    border-top: 8px solid var(--verde); /* Cor de destaque */
    box-shadow: 0 0 24px rgba(8, 15, 41, 0.50);
    
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease, background-color 0.3s ease;
}

.cpf-container h2 {
    font-size: 2rem;
    color: var(--azul-escuro);
    margin-bottom: 0.5rem;
    text-align: center;
}

.cpf-container h3 {
    font-size: 1.5rem;
    color: var(--azul-principal);
    margin-bottom: 1rem;
    text-align: center;
}

.cpf-container h4 {
    font-size: 1.5rem;
    color: var(--azul-escuro);
    margin-bottom: 1rem;
    text-align: center;
}

.cpf-container hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

/* INPUT GROUP */
.input-group {
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
}

.cpf-input {
    width: 100%;
    padding: 16px;
    font-size: 1.5rem;
    border: 4px solid var(--azul-principal);
    border-radius: 999px;
    text-align: center;
    color: var(--azul-escuro);
    outline: none;
    transition: border-color 0.3s ease;
}

.cpf-input:focus {
    border-color: var(--azul-principal);
}

.status-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* MENSAGENS DE VALIDAÇÃO */
.validation-message {
    width: 100%;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.validation-message.neutral {
    background-color: var(--azul-principal);
    color: var(--branco);
}

.validation-details {
    width: 100%;
    margin-bottom: 1.5rem;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.validation-item.pending .icon {
    color: #999;
}

/* BOTÕES */
.submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--branco);
    background-color: var(--azul-principal);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(8, 15, 41, 0.25);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.submit-btn:not(:disabled):hover {
    background-color: var(--azul-escuro);
    transform: translateY(-2px);
}

/* BOTÕES DE TRANSPARÊNCIA */
.user-type-selection_staff {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 2rem auto;
}

.user-type-selection_staff a {
    text-decoration: none;
}

.user-type-selection_staff .btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--azul-escuro);
    background-color: var(--branco);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(8, 15, 41,0.15);
}

.user-type-selection_staff .btn:hover {
    background-color: rgba(235, 249, 252, 0.75);
    transform: translateY(-2px);
}

.nav-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
}

.nav-btn {
    border-radius: 8px;
    padding: 11px 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.primary-row .nav-btn {
    font-size: 0.9rem;
    padding: 16px 20px;
}

.nav-btn.outline {
    background-color: var(--branco);
    color: var(--azul-escuro);
    border: 2px solid rgba(13, 75, 196, 0.5);
}

.nav-btn.outline:hover {
    background-color: var(--azul-principal);
    color: var(--branco);
}

.nav-btn.active {
    background-color: var(--azul-escuro);
    color: var(--branco);
    border: 4px solid var(--azul-escuro);
}

.nav-btn.orange {
    background-color: rgba(252, 67, 31, 0.75);
    color: var(--branco);
    border: 2px solid rgba(252, 67, 31, 0.75);
}

.nav-btn.orange:hover {
    background-color: var(--laranja-1);
    border-color: var(--laranja-1);
}

.nav-btn.solid-blue {
    background-color: rgba(8, 15, 41, 0.75);
    color: var(--branco);
    border: 2px solid rgba(8, 15, 41, 0.75);
}

.nav-btn.solid-blue:hover {
    background-color: var(--azul-escuro);
    border-color: var(--azul-escuro);
}

.nav-btn.solid-green {
    background-color: rgba(160, 223, 65, 0.75);
    color: var(--branco);
    border: 2px solid rgba(160, 223, 65, 0.75);
}

.nav-btn.solid-green:hover {
    background-color: var(--verde);
    border-color: var(--verde);
}

/* STATUS TEMPO */
#status {
    background-color: var(--laranja-1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .cpf-container {
        max-width: 90%;
        padding: 2rem 1.5rem;
    }
    
    .user-type-selection_staff {
        max-width: 90%;
    }
}

/* Ajustes para mobile (dentro da @media (max-width: 768px) já existente ou adicionando esta) */
@media (max-width: 768px) {
    /* Container do aviso ocupa toda a largura com margens laterais seguras */
    .aviso-fundo {
        width: 90%;
        max-width: 90%;
        padding: 24px 20px;          /* mais espaçamento interno */
        border-radius: 12px;         /* cantos um pouco menos arredondados para aproveitar espaço */
        max-height: 90vh;            /* um pouco mais de altura disponível */
    }

    /* Títulos principais */
    .aviso-fundo h1 {
        font-size: 1.8rem;           /* reduzido para caber melhor */
        margin-bottom: 0.25rem;
    }

    .aviso-fundo h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    /* Blocos de descrição */
    .bloco-descricoes {
        padding: 16px 12px;          /* menos padding lateral para aproveitar espaço */
    }

    .bloco-descricoes h3 {
        font-size: 1rem;             /* títulos dos blocos um pouco menores */
        margin-bottom: 4px;
    }

    .bloco-descricoes p {
        font-size: 0.85rem;          /* texto dos parágrafos mais compacto */
        line-height: 1.4;
        text-align: left;            /* alinhamento à esquerda é mais legível em telas pequenas */
        word-break: break-word;      /* evita que palavras longas quebrem o layout */
    }

    /* Rodapé do popup */
    .popup-rodape {
        font-size: 0.8rem;
        padding: 0 8px;
    }

    /* Botão de fechar – maior área de toque e posicionamento mais adequado */
    #btnFecharAviso {
        top: 16px;
        right: 16px;
        font-size: 2.2rem;           /* maior para toque fácil */
        padding: 4px 8px;            /* área de toque extra */
        line-height: 1;
        background: rgba(0,0,0,0.05); /* leve fundo para destacar se sobrepor texto */
        border-radius: 8px;
    }

    /* Ajuste no espaçamento entre os blocos */
    .bloco-descricoes br {
        display: none;               /* remove as quebras de linha extras no mobile */
    }

    .bloco-descricoes h3 + p {
        margin-top: 2px;
    }

    .bloco-descricoes h3 {
        margin-top: 12px;
    }

    .bloco-descricoes h3:first-of-type {
        margin-top: 0;
    }

    /* Link do rodapé fica com tamanho adequado */
    .link-destaque {
        font-size: inherit;
    }

    .site-header {
        height: auto;
        padding: 16px;
        flex-direction: column;      /* Empilha logo e header-right verticalmente */
        align-items: flex-start;     /* Alinhamento à esquerda */
        gap: 16px;
    }

    .header-right {
        width: 100%;
        flex-direction: column;      /* Cada item em uma linha */
        align-items: flex-start;
        gap: 12px;                   /* Espaçamento vertical entre os itens */
    }

    .header-right p {
        margin: 0;
        font-size: 0.95rem;          /* Leve redução, mas mantém leitura confortável */
        line-height: 1.4;
    }

    /* E-mail: permite quebra de linha para não vazar */
    #userEmail {
        max-width: 100%;
        white-space: normal;         /* Permite a quebra natural */
        overflow-wrap: break-word;   /* Quebra palavras muito longas */
        word-break: break-word;
    }

    /* Botão ocupando toda a largura (opcional, mas fica mais fácil de tocar) */
    .btn-sair {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        text-align: center;
        box-sizing: border-box;
    }
}

    /* Ajuste fino para telas muito pequenas (ex: 360px) */
    @media (max-width: 480px) {
        .aviso-fundo {
            padding: 20px 16px;
        }

        .aviso-fundo h1 {
            font-size: 1.5rem;
        }

        .aviso-fundo h2 {
            font-size: 1rem;
        }

        .bloco-descricoes p {
            font-size: 0.8rem;
        }

        #btnFecharAviso {
            top: 12px;
            right: 12px;
            font-size: 2rem;
        }
    }
}

