/**
 * Estilos CSS para o Sistema de Proteção por Senha
 * Autor: Manus AI
 * Versão: 1.0
 */

/* Estilos para o overlay de proteção */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: blur(5px);
}

/* Modal de senha */
#password-overlay > div {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Título do modal */
#password-overlay h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Texto descritivo */
#password-overlay p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

/* Campo de entrada de senha */
#password-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

#password-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Mensagem de erro */
#error-message {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    padding: 10px;
    background: #fdf2f2;
    border-radius: 5px;
    border: 1px solid #fecaca;
}

/* Botões */
#password-overlay button {
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 100px;
}

#submit-password {
    background: #007cba;
    color: white;
}

#submit-password:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

#cancel-access {
    background: #6c757d;
    color: white;
}

#cancel-access:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Mensagem de sucesso */
.password-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10001;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: successSlideIn 0.3s ease-out;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 480px) {
    #password-overlay > div {
        padding: 30px 20px;
        margin: 20px;
    }
    
    #password-overlay h2 {
        font-size: 20px;
    }
    
    #password-overlay button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Estilos para botão de logout (opcional) */
.password-logout-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.password-logout-btn:hover {
    background: #c82333;
}

