/* ==========================================================================
   CSS Finalizado para Hotspot - tema_cadastro.css
   @version 2.1 - Cores dinâmicas e rodapé com cores fixas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variáveis Globais e Reset
   -------------------------------------------------------------------------- */
:root {
    /* Estas variáveis são os valores PADRÃO, mas serão substituídas
       pelas cores definidas no hotspot_header.php */
    --laranja-principal: #de5904;
    --laranja-secundario: #f7811a;
    
    --cinza: #545454;
    --branco: #ffffff;
    --cinza-claro: #f5f5f5;
    --cinza-borda: #e0e0e0;

    /* Cores para feedback de validação e alertas */
    --cor-sucesso-bg: #d4edda;
    --cor-sucesso-borda: #c3e6cb;
    --cor-sucesso-texto: #155724;
    --cor-erro-bg: #f8d7da;
    --cor-erro-borda: #f5c6cb;
    --cor-erro-texto: #721c24;
    --cor-perigo-texto: #dc3545; /* Para mensagens de erro em formulários */

    /* Cores fixas para a marca OLLI Tecnologia */
    --cor-olli-vermelho: #bd0b0b;
    --cor-olli-preto: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cinza-claro);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--cinza);
    text-align: center;
}


/* --------------------------------------------------------------------------
   Estrutura Principal do Hotspot (Wrappers, Header, Content)
   -------------------------------------------------------------------------- */

.hotspot-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hotspot-header {
    margin-bottom: 30px;
    text-align: center;
}
.hotspot-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}
.hotspot-header h1 {
    color: var(--laranja-principal);
    font-size: 2em;
    font-weight: bold;
    margin: 0 0 5px 0;
}
.hotspot-header p {
    font-size: 1em;
    color: var(--cinza);
    margin-bottom: 0;
}

.hotspot-main-content {
    background-color: var(--branco);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    width: 100%;
    border: 1px solid var(--cinza-borda);
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Estilos de Formulário
   -------------------------------------------------------------------------- */
.hotspot-form-container {
    width: 100%;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cinza);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--cinza-borda);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--laranja-secundario);
    box-shadow: 0 0 0 3px rgba(247, 129, 26, 0.2);
}

.btn-hotspot-primary {
    background-color: var(--laranja-principal);
    color: var(--branco);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
}
/* ***** INÍCIO DA ALTERAÇÃO 1 ***** */
.btn-hotspot-primary:hover {
    background-color: var(--laranja-secundario); /* Agora usa a variável dinâmica */
    transform: translateY(-1px);
}
/* ***** FIM DA ALTERAÇÃO 1 ***** */

.btn-hotspot-primary:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.form-footer {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Mensagens de Erro e Spinner
   -------------------------------------------------------------------------- */

.error-message {
    color: var(--cor-perigo-texto);
    font-size: 0.875em;
    margin-top: 5px;
    min-height: 1.2em;
    display: block;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: .15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: .7s linear infinite spinner-border;
}
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Footer da Página
   -------------------------------------------------------------------------- */
.hotspot-footer {
    margin-top: 25px;
    font-size: 0.85em;
    color: #666;
    text-align: center;
    width: 100%;
}
.hotspot-footer a {
    color: var(--laranja-principal);
    font-weight: bold;
    text-decoration: none;
}
.hotspot-footer a:hover {
    text-decoration: underline;
}

/* ***** INÍCIO DA ALTERAÇÃO 2 ***** */
/* Novas regras para as cores fixas da marca OLLI Tecnologia no rodapé */
.ollitecnologia-link .olli {
    color: var(--cor-olli-vermelho);
}
.ollitecnologia-link .tecnologia {
    color: var(--cor-olli-preto);
}
/* ***** FIM DA ALTERAÇÃO 2 ***** */

/* --------------------------------------------------------------------------
   Responsividade
   -------------------------------------------------------------------------- */
@media (max-width: 500px) {
    .hotspot-wrapper {
        padding: 15px;
        justify-content: flex-start;
    }
    .hotspot-main-content {
        padding: 20px;
    }
    .hotspot-header h1 {
        font-size: 1.8em;
    }
}
